12.1 amd64 and i386. Part of build log: ld: error: src/kvilib/libkvilib.so.5.0.0: undefined reference to pthread_create c++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. *** Error code 1 But build fine with USE_GCC=yes (lang/gcc9) in irc/kvirc/Makefile.
Moin moin could you provide a more complete build log? mfg Tobias
Created attachment 209915 [details] Build log (1 151 214 Bytes size)
Moin moin I cannot reproduce this in poudriere in a 12.1-stable@amd64 jail. mfg Tobias
(In reply to Tobias C. Berner from comment #3) Same behavior on 3 different 12.1-p1 (releng/12, not stable/12) hosts: i386 and 2 amd64. What other information I can show?
VVD, is this still an issue for you?
(In reply to Tobias C. Berner from comment #5) > VVD, is this still an issue for you? Yes.
As discussed on IRC recently, this can be fixed by supplying Threads::Threads to the appropriate cmake link target. Todo: 1) figure out what leads to that target being used / optionify or disable it 2) fix the target upstream mfg Tobias
(In reply to Tobias C. Berner from comment #7) What I have to change in sources to test this?
Same error with KVIrc 5.0.0-73: ld: error: src/kvilib/libkvilib.so.5.0.1: undefined reference to pthread_create c++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.
(In reply to VVD from comment #9) You can try to add this patch https://people.freebsd.org/~tcberner/patches/patch-src_kvilib_CMakeLists.txt [maybe it does no longer apply to this version though]. mfg Tobias
(In reply to Tobias C. Berner from comment #10) Build and work fine! Thanks!
(In reply to Tobias C. Berner from comment #10) I thought you committed this patch: > https://people.freebsd.org/~tcberner/patches/patch-src_kvilib_CMakeLists.txt Build fails without it.
A commit references this bug: Author: tcberner Date: Wed Aug 5 18:07:44 UTC 2020 New revision: 544236 URL: https://svnweb.freebsd.org/changeset/ports/544236 Log: irc/kvirc: link to thread library - when building outside of poudriere kvirc can fail linking - it is not quite clear yet why this is required PR: 242305 Reported by: VVD <vvd@unislabs.com> Changes: head/irc/kvirc/files/patch-src_kvilib_CMakeLists.txt
Thanks!