On 01/28/2013 02:08 AM, Paul Eggert wrote:
On 01/22/2013 11:40 AM, Tom G. Christensen wrote:
It makes it worse, now it fails for Solaris< 10.
OK, let's try a different tack. If memory serves Bruno Haible said
a while ago that we'd eventually have to do this, so let's give it
a try. Attached is a patch against the current gnulib -- can you try it?
It may not work, but any problems it has should be easier to fix than
what we've been running into already. Thanks.
It works for Solaris 7-10 but fails on Solaris 2.6 in the same way as
before.
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:92,
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:30,
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
If I workaround the problem and add the necessary defines to gnulib
<sys/select.h> the testsuite completes with good results (using GNU
libiconv):
=======================
7 of 1065 tests failed
(61 tests were not run)
=======================
===================
All 30 tests passed
===================
-tgc