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