Only libcompat.a is installed. As a result it can't be used in shared libraries: > /usr/local/bin/ld: /usr/lib/libcompat.a(ftime.o): relocation R_X86_64_PC32 against symbol `__stack_chk_guard@@FBSD_1.0' can not be used when making a shared object; recompile with -fPIC There is no easy solution when the ftime(3) is used from a shared library. Problem found in science/siconos which has a missing symbol ftime(3) in libsicanos_external.so and adding -lcompat causes the above error.
Created attachment 238156 [details] patch
Konstantin, Maybe you can commit or approve this patch? Thanks, Yuri
I do not think we want to ship the libcompat.so (it should be versioned, but still we do not want to ship it). Might be ftime(3) should be moved to libc. E.g. it is provided by glibc. There I do not have strong objections. Meantime you can replace use of ftime(3) by gettimeofdate(2).
I have created a PR to move ftime to libc: https://reviews.freebsd.org/D39994