bug-gnulib
[Top][All Lists]
Advanced

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

Re: strtod.c compilation failure on i386/Solaris 10


From: Jim Meyering
Subject: Re: strtod.c compilation failure on i386/Solaris 10
Date: Sat, 12 Apr 2008 18:25:19 +0200

Jim Meyering <address@hidden> wrote:

> Eric Blake <address@hidden> 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




reply via email to

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