Jim Meyering <[EMAIL PROTECTED]> wrote: > Eric Blake <[EMAIL PROTECTED]> wrote: > >> According to Eric Blake on 4/12/2008 6:47 AM: >> | Aha. Solaris 10 has a buggy math.h - it defines NAN and HUGE_VAL >> | incorrectly (to the value of the builtin function address, and not the >> | result of calling the function), which totally explains the compiler error >> | message. >> >> I'm committing this. Can you give it a try? > > Thanks. Didn't work. > This might help ;-) Just pushed. > Trying again... > > * m4/math_h.m4 (gl_MATH_H): Fix typos.
Yep. That fixed the compile errors. However, now one of the test programs fails to link: (sorry, don't have time to dig for a few hours) gcc -std=gnu99 -O -Wl,-z,ignore -o test-sys_socket test-sys_socket.o libtests.a ../lib/libcoreutils.a libtests.a -lnsl -lsocket -lm Undefined first referenced symbol in file __builtin_isnan test-strtod.o ld: fatal: Symbol referencing errors. No output written to test-strtod collect2: ld returned 1 exit status make[5]: *** [test-strtod] Error 1