build: Fix undefined pthread reference.#440
Conversation
|
Can one of the admins verify this patch? |
|
ok to test |
|
@orbea is slibtool the default on gentoo? if so it might be worth adding Gentoo to the CI nodes pool. |
No, its currently being worked one for future integration. Whether it becomes the default or remains just an option in the future I am not sure. This issue tracks current slibtool issues found in gentoo: https://bugs.gentoo.org/765709 Most, but not all issues are the result of GNU libtool silently hiding bugs for so long... |
|
retest this please |
|
@orbea thanks for the pointer. slibtools seems to be available in different distributions so perhaps we can just enable a build with it to avoid regression in future. |
|
Looks good, thanks for that patch, and to Fabio for reviewing. |
Ah, cannot but to relate to this, especially since downstreams tend to (perhaps also related: #323 (comment)) |
The most important fix in this release is that we no longer log errors inside the signal handler in loop_poll.c This could cause an application hang in some circumstances. Changelog is as follows: doxygen2man: print structure descriptions (ClusterLabs/libqb#443) Fix pthread returns (ClusterLabs/libqb#444) poll: Don't log in a signal handler (ClusterLabs/libqb#447) Bump library version for v2.0.4 Implement heap based timer list (ClusterLabs/libqb#439) build: Fix undefined pthread reference. (ClusterLabs/libqb#440) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
When using slibtool (https://github.com/midipix-project/slibtool) instead of GNU libtool the build fails with undefined references to pthread.
This works with GNU libtool because it silently filters out
-no-undefinedwhile slibtool does not.This can be easily fixed by added
$(PTHREAD_CFLAGS)and$(PTHREAD_LIBS)where applicable.Also see this downstream issue: https://bugs.gentoo.org/775605