bug-gnulib
[Top][All Lists]
Advanced

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

Re: Build errors on Solaris 2.6 & 7


From: Tom G. Christensen
Subject: Re: Build errors on Solaris 2.6 & 7
Date: Tue, 22 Jan 2013 20:40:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12

On 01/22/2013 08:43 AM, Paul Eggert wrote:
On 01/21/2013 12:53 PM, Tom G. Christensen wrote:
It works for Solaris 7-10 but still fails in the same way on Solaris 2.6.

OK, thanks, how about this slightly-revised patch?

It makes it worse, now it fails for Solaris < 10.

From Solaris 2.6:
depbase=`echo accept4.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC -DEXEEXT=\"\" -I. -I.. -DGNULIB_STRICT_CHECKING= 1 -I../intl -I/usr/tgcware/include -D_REENTRANT -g -O2 -MT accept4.o -MD -MP -MF $depbase.Tpo -c -o accept4.o accept4.c &&\
        mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/sys/time.h:405,
                 from ./sys/time.h:38,
                 from /usr/include/sys/select.h:16,
                 from ./sys/select.h:27,
from /usr/tgcware/gcc-4.3.6/lib/gcc/sparc-sun-solaris2.6/4.3.6/include-fixed/sys/types.h:431,
                 from ./sys/types.h:28,
                 from ./sys/socket.h:51,
                 from accept4.c:20:
./sys/select.h:506: error: expected declaration specifiers or '...' before 'fd_set' ./sys/select.h:506: error: expected declaration specifiers or '...' before 'fd_set' ./sys/select.h:506: error: expected declaration specifiers or '...' before 'fd_set'
make[4]: *** [accept4.o] Error 1

The error is the same on Solaris 7 & 9.

Preprocessed source for reference:
http://jupiterrise.com/tmp/sol26-accept4.i
http://jupiterrise.com/tmp/sol9-accept4.i

-tgc



reply via email to

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