kakwa / uts-server

Micro RFC 3161 Time-Stamp server written in C.
http://uts-server.readthedocs.org/en/latest/
MIT License
75 stars 21 forks source link

FreeBSD CLang problem #5

Closed abrca closed 7 years ago

abrca commented 7 years ago

Compiling statically linked executable (as described in issue #4 ), ends with error:

[100%] Linking C executable uts-server /usr/bin/ld: undefined reference to symbol `__register_frame_info@@GCC_3.0' (try adding -lgcc_s) //lib/libgcc_s.so.1: could not read symbols: Bad value c++: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1

FreeBSD 11.0, CLang 3.8.0. Using gcc 4.9.4 - compiles ok.

kakwa commented 7 years ago

using the new -DLINK_GCC_S=ON (switch enable linking against gcc_s) the problem is fixed.

abrca commented 7 years ago

in CMakeLists.txt duplicate options LINKDL:

option(LINKDL "dynamicaly link dl" OFF) option(LINKDL "dynamicaly link gcc_s" OFF)

second must be LINK_GCC_S ?

kakwa commented 7 years ago

yes, fixing it