-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poco does not build on AIX #4742
Comments
@Enc-EE , thank you for reporting this issue. Unfortunately none of the maintainers has access to an AIX system. Would you be so kind and prepare a pull request with fixes for the branch |
@matejk
To get the right types I had to specify these two things. |
@Enc-EE Thank you. I'll trigger compile and test actions. |
@Enc-EE, these defines seem to be AIX specific when compiling with gcc. IMO it make sense to add them to |
I think such an option has to be set globally. But maybe there are some other workarounds and other users like to use 32 bit. (Maybe excluding the net project) |
OK, I'll merge it as it is. |
Describe the bug
Poco does not build on AIX
To Reproduce
Expected behavior
Poco should build on AIX
Please add relevant environment information:
AIX: 7.3
CMake: 3.16.0
GCC: 11.2.0
Additional information
I'm trying to build with cmake on AIX and get some errors.
I also tried to fix them.
First Problem
The function
prctl(PR_SET_NAME, ...)
as well as its alternativepthread_setname_np
are not available on AIX.I fixed it by excluding these methods on AIX:
Foundation/src/Thread_POSIX.cpp
Should the whole method be excluded on AIX?
There might be tests failing. Didn't know how to run them
Second Problem
Turns out this is related to not correctly adding the -pthread flag.
I fixed this by doing this in Foundation/CMakeLists.txt starting at Line 160:
https://stackoverflow.com/questions/1620918/cmake-and-libpthread
I don't know why this is happening/working. Maybe this also concerns other modules/flags/libraries.
Third Problem
This is also a problem here: #4604
I replaced signal with sigaction method.
I'm not completely sure whether this is correct.
Can someone review these modifications? I'm sure there is still some work to do.
The text was updated successfully, but these errors were encountered: