|
From: Not S. <un...@cr...> - 2025-10-03 14:50:55
|
Oops, forgot to include this appears to be happening on Tcl9.1a0 Testing with Tcl 9.0.2 -- compiles fine. Regards, David F -----Original Message----- From: Not <un...@cr...> To: naviserver-devel <nav...@li...> Date: Friday, 3 October 2025 3:43 PM BST Subject: FreeBSD 14 - ld: error: undefined reference: round Greetings, trying to compile the latest GCC commit and many others. OS: FreeBSD 14.3 (Stable) GCC: GNU Make 4.4.1 Clang: FreeBSD clang version 19.1.7 NaviServer compilation issue using git commit: 2f6fce6 cc -O2 -L../nsthread -L../nsd -L../nsdb -o nsd main.o libnsd.so -lz -lcrypt -lnsthread -L/srv/~scrap/tcl9.1a0/unix -ltcl9.1 -L/srv/~scrap/tcl9.1a0/unix -lssl -lcrypt o -lthr -Wl,-rpath,:/srv/navi/lib -Wl,-rpath,:/srv/tcl/lib ld: error: undefined reference: round >>> referenced by libnsd.so (disallowed by --no-allow-shlib-undefined) cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [../include/Makefile.module:162: nsd] Error 1 gmake[1]: Leaving directory '/srv/~scrap/naviserver/nsd' gmake: *** [Makefile:34: all] Error 1 Passing: --allow-shlib-undefined breaks too gmake LDFLAGS="-Wl,--allow-shlib-undefined" install ld: error: unable to find library -lnsthread cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [../include/Makefile.module:162: nsd] Error 1 Regards, David F |