bug-inetutils
[Top][All Lists]
Advanced

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

Re: [bug-inetutils] Compile problems on Solaris


From: Johannes Fleischer
Subject: Re: [bug-inetutils] Compile problems on Solaris
Date: Thu, 01 Dec 2005 17:59:36 +0100

Thanks for your response,

>   i tried to compile the inetutils on Solaris 8 (i used the version
>   from cvs, as the 1.4.2 package did not compile also).
>
>Thank you for the bug report, you can ignore the warnings for now.  So
>to the core of the problem:
>
>   gcc -DHAVE_CONFIG_H -I. -I. -I..  -DPATH_TTY_PFX=\"/dev/\" 
> -DPATH_DEVNULL=\"/dev
>   /null\"  -I../headers -I../lib    -g -O2 -c localhost.c
>   In file included from localhost.c:35:
>   /usr/include/sys/socket.h:52: error: two or more data types in declaration 
> speci
>   fiers
>   /usr/include/sys/socket.h:52: error: two or more data types in declaration 
> speci
>   fiers
>   /usr/include/sys/socket.h:61: error: syntax error before numeric constant
>   In file included from localhost.c:35:
>   /usr/include/sys/socket.h:293: error: syntax error before numeric constant
>   /usr/include/sys/socket.h:305: error: syntax error before '}' token
>   /usr/include/sys/socket.h:371: error: syntax error before numeric constant
>   /usr/include/sys/socket.h:374: error: syntax error before '}' token
>   /usr/include/sys/socket.h:443: error: syntax error before numeric constant
>   /usr/include/sys/socket.h:444: error: syntax error before numeric constant
>   /usr/include/sys/socket.h:457: error: syntax error before numeric constant
>   /usr/include/sys/socket.h:458: error: syntax error before numeric constant
>   In file included from localhost.c:37:
>   /usr/include/netdb.h:308: error: syntax error before numeric constant
>
>Not knowing what socket.h looks like, it seems that socket.h is simply
>broken on Solaris, maybe it uses non-standard C features.  What
>version of gcc did you use?  Maybe it is due to a old version of gcc. 


It's gcc 4.0.1 
(gcc -v shows:
Using built-in specs.
Target: sparc-sun-solaris2.8
Configured with: /build/rpm/BUILD/gcc-4.0.1/configure --prefix=/usr/local 
--with-gxx-include-dir=/usr/local/include/c++ --disable-shared --disable-nls 
--with-cpu=ultrasparc --enable-languages=c,c++ --enable-threads 
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 4.0.1)

Kind Regards,

Johannes Fleischer







reply via email to

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