[multicat-devel] Build issue: undefined reference to clock_nanosleep

Jörg Krause joerg.krause at embedded.rocks
Sun Mar 20 00:28:00 CET 2016


The uClibc can be configured to be build without clock_nanosleep()
support (UCLIBC_HAS_ADVANCED_REALTIME is not set). The ADI GNU
toolchain [1] for the Blackfin target architecture uses a uClibc built
with UCLIBC_HAS_ADVANCED_REALTIME unset and therefore has no supprt for
clock_nanosleep().

As multicat does not check for clock_nanosleep() and
sets HAVE_CLOCK_NANOSLEEP unconditionally if __APPLE__ is not defined,
the build with this toolchain fails:

  util.c:243: undefined reference to `_clock_nanosleep'

The proper way to handle this issue would be to add a check for
clock_nanosleep().

[1] https://sourceforge.net/projects/adi-toolchain/files/

Best regards
Jörg Krause


More information about the multicat-devel mailing list