On 01/21/2013 07:58 AM, Paul Eggert wrote:
Oh, my. I guess it's time to try a more-drastic fix.
Does the following work for you?
Unfortunately not.
It works for Solaris 7-10 but still fails in the same way on Solaris 2.6.
depbase=`echo dtotimespec.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
dtotimespec.o -MD -MP -MF $depbase.Tpo -c -o dtotimespec.o dtotimespe
c.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from
/usr/tgcware/gcc-4.3.6/lib/gcc/sparc-sun-solaris2.6/4.3.6/include-fixed/sys/signal.h:132,
from
/usr/tgcware/gcc-4.3.6/lib/gcc/sparc-sun-solaris2.6/4.3.6/include-fixed/signal.h:27,
from ./signal.h:52,
from ./sys/select.h:78,
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 /usr/include/sys/time.h:71,
from ./sys/time.h:38,
from
/usr/tgcware/gcc-4.3.6/lib/gcc/sparc-sun-solaris2.6/4.3.6/include-fixed/time.h:102,
from ./time.h:39,
from timespec.h:22,
from dtotimespec.c:25:
/usr/include/sys/siginfo.h:229: error: expected specifier-qualifier-list
before 'timestruc_t'
/usr/include/sys/siginfo.h:284: error: expected specifier-qualifier-list
before 'timestruc_t'
make[4]: *** [dtotimespec.o] Error 1
This is the include chain:
gnulib <time.h> -> system <time.h> -> gnulib <sys/time.h> -> system
<sys/time.h> -> gnulib <sys/types.h> -> system <sys/types.h> -> returns
to gnulib <sys/types.h> -> gnulib <sys/select.h> -> system
<sys/select.h> -> returns to gnulib <sys/select.h> -> gnulib <signal.h>
-> system <signal.h> -> system <sys/signal.h> -> system <sys/siginfo.h>
Preprocessed source for reference:
http://jupiterrise.com/tmp/dtotimespec.i
http://jupiterrise.com/tmp/unpatched-dtotimespec.i
-tgc