Re: skalibs: how to properly detect posix_spawnp() when using uclibc-ng?

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Fri, 12 Aug 2016 12:23:20 +0200

On 12/08/2016 10:48, Eric Le Bihan wrote:
> Unfortunately, it does not work. The modification assumes that the
> check for clock_gettime() will result in $rt_lib being set to -lrt, but
> it is not the case for uclibc-ng, where this function is available in
> the C runtime:
>
> ```
> $ nm i686-buildroot-linux-uclibc/sysroot/lib/librt-1.0.14.so \
> | grep clock_gettime
> 00002308 T clock_gettime
> 00002308 t __GI_clock_gettime
> $ nm i686-buildroot-linux-uclibc/sysroot/lib/libuClibc-1.0.14.so \
> | grep clock_gettime
> 0000d5dd T clock_gettime
> ```

  This has to be the mother of all idiotic setups, and there's a special
place in hell for people who decide that clock_gettime should be *both*
in libc and in librt (it's not as if you needed a specific thread-safe
version), *and* that posix_spawn() should be in librt when clock_gettime()
is in libc.
  But the saddest thing is, it's still conforming.

  I need a more invasive patch. Going to work on it.

-- 
  Laurent
Received on Fri Aug 12 2016 - 10:23:20 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC