pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Error building m4 on Solaris 10
Gerardo Santana Gómez Garrido wrote:
> On 4/25/08, Adam Hoka <adam.hoka%gmail.com@localhost> wrote:
> > Hi!
> >
> >
>
> Hey Adam,
>
> > Gerardo Santana Gómez Garrido wrote:
> >
> > > This is the error message:
> > >
> > > gcc -std=gnu99 -I. -O -MT strtod.o -MD -MP -MF .deps/strtod.Tpo
> > > -c -o strtod.o strtod.c
> > > strtod.c: In function `rpl_strtod':
> > > strtod.c:155: error: incompatible types in assignment
> > > strtod.c:170: error: incompatible types in assignment
> > > strtod.c:257: error: wrong type argument to unary minus
> > > *** Error code 1
> > >
> > > The lines in question are:
> > >
> > > 155: num = HUGE_VAL;
> > > 170: num = NAN;
> > > 257: return negative ? -HUGE_VAL : HUGE_VAL;
> > >
> > >
> > > --
> > > Gerardo Santana
> >
> >
> > Could you give us more information?
> > which package (gnu m4?), compiler version etc.
>
> Sure! Thanks.
>
> It was this package:
> /usr/pkgsrc/devel/m4
>
>
> $ gcc -v
> Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
> Configured with:
> /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure
> --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as
> --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
> --enable-shared
> Thread model: posix
> gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
>
>
> $ uname -a
> SunOS since 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V440
>
>
> using pkgsrc-2008Q1
> --
> Gerardo Santana
Hi!
Try changing
#include <math.h>
to
#include <iso/math_c99.h>
in strtod.c
--
Adam
Home |
Main Index |
Thread Index |
Old Index