Closed dnsmichi closed 7 years ago
Tested -lpthread
on CentOS 7 and ran in to this clang issue: https://access.redhat.com/solutions/3037411
Fixed with additional change (a33ebac92c2b3a976a0c73721dc95ac04ae87413) and was able to compile.
Should I open a new Issue for the clang/C++11 features mis-detection and workaround? Or bundle it in with this clang related compilation issue?
System information:
Platform: CentOS Linux
Platform version: 7 (Core)
Kernel: Linux
Kernel version: 3.10.0-514.10.2.el7.x86_64
Architecture: x86_64
Build information:
Compiler: Clang 3.4.2
A new PR based on your fix would be nice, no need for an extra issue :)
Expected Behavior
clang++ builds Icinga 2.
Current Behavior
Build fails with clang++.
Possible Solution
Modify CMakeLists.txt to include
-lpthread
. I need to verify that this builds on macOS and variants then too.Steps to Reproduce (for bugs)
Build the current git master w/ baaef9
Context
Use clang++ instead of gcc on Fedora 25.
Your Environment
icinga2 --version
):