bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M4 1.4.14 on AIX 7.1BETA


From: Bruno Haible
Subject: Re: M4 1.4.14 on AIX 7.1BETA
Date: Fri, 30 Jul 2010 23:09:18 +0200
User-agent: KMail/1.9.9

Hello Rainer,

Rainer Tammer wrote:
> 1. libm
> 
> Some tests need libm (sample):
> 
>         xlc  -g   -o test-asin test-asin.o ../gllib/libgnu.a
> ld: 0711-317 ERROR: Undefined symbol: .asin
> ld: 0711-317 ERROR: Undefined symbol: asin

This is caused by an assumption that gnulib/m4/mathfunc.m4 makes,
that asin() will be in libm if and only if pow() is in libm. This is not
true here:

  checking whether pow can be used without linking with libm... yes

So, can you please test whether the functions are in libm individually?
With this shell code:

  for func in acos asin atan atan2 cbrt copysign cos cosh erf erfc exp \
              fmod hypot j0 j1 jn lgamma log log10 log1p pow remainder \
              sin sinh sqrt tan tanh y0 y1 yn; do
    (echo '#include <math.h>'; echo "double (*funcptr)() = (double 
(*)())$func;"; echo 'int main() {}') > conftest.c
    if xlc conftest.c > /dev/null 2>/dev/null; then
      echo "$func is in libc"
    else
      echo "$func requires libm"
    fi
  done

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]