Open Enc-EE opened 2 days ago
@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 main
. Next release (1.14) is planned to be released soon and your PR could make it to be include in that release.
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.cppShould 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: https://github.com/pocoproject/poco/issues/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.