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, 29 Jan 2013 17:34:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12

On 01/28/2013 11:56 PM, Paul Eggert wrote:
On 01/28/13 12:12, Tom G. Christensen wrote:
It works for Solaris 7-10 but fails on Solaris 2.6 in the same way as before.

OK, please try the following patch instead.
It fixes that particular problem the same way as before,
but I'm hoping that when combined with the double-inclusion patch
that this approach will put us on the right road towards
fixing the problem.

It breaks 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:30,
                 from /usr/include/sys/select.h:16,
                 from ./sys/select.h:33,
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:27,
                 from ./sys/socket.h:51,
                 from accept4.c:20:
./sys/select.h:551: error: expected declaration specifiers or '...' before 'fd_set' ./sys/select.h:551: error: expected declaration specifiers or '...' before 'fd_set' ./sys/select.h:551: 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]