Linking check-0.9.14's static library libcheck.a on Freebsd 10 gives undefined references as seen below...
/usr/local/lib/libcheck.a(check_msg.o): In function open_tmp_file':
/usr/home/nahnig/check-0.9.14/src/check_msg.c:238: warning: warning: tempnam() possibly used unsafely; consider using mkstemp()
/usr/local/lib/libcheck.a(check.o): In function
tcase_create':
/usr/home/nahnig/check-0.9.14/src/check.c:142: undefined reference to floor'
/usr/local/lib/libcheck.a(check.o): In function
tcase_set_timeout':
/usr/home/nahnig/check-0.9.14/src/check.c:261: undefined reference to floor'
/usr/local/lib/libcheck.a(check.o): In function
check_get_clockid':
/usr/home/nahnig/check-0.9.14/src/check.c:528: undefined reference to timer_create'
/usr/home/nahnig/check-0.9.14/src/check.c:530: undefined reference to
timer_delete'
/usr/local/lib/libcheck.a(check_run.o): In function tcase_run_tfun_fork':
/usr/home/nahnig/check-0.9.14/src/check_run.c:452: undefined reference to
timer_create'
/usr/home/nahnig/check-0.9.14/src/check_run.c:460: undefined reference to timer_settime'
/usr/home/nahnig/check-0.9.14/src/check_run.c:474: undefined reference to
timer_delete'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: [all] Error 1
gmake[1]: Leaving directory `/usr/home/nahnig/Sysfuzz/tests'
gmake: [all] Error 2
However linking the shared library does not produce undefined references. The linking problem does not affect Mac OSX 10.10 and I have yet to try and see if the issue affects linux.
I do not know much about static libraries, so I started looking up how they work and how this might be affecting your project.
Are you including other libraries into your project, perhaps the realtime (rt) or math (m) libraries? According to this description of linker order issues with static libraries:
http://stackoverflow.com/questions/45135/linker-order-gcc
perhaps your project needs to include the rt and math libraries (if it already does) after it lists libcheck.a. Take a look at that page and see if any of the answers are helpful. If they are, maybe reply back and let me know what you found.