|
From: | Tom G. Christensen |
Subject: | Re: Build errors on Solaris 2.6 & 7 |
Date: | Sun, 13 Jan 2013 18:11:35 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12 |
On 01/13/2013 06:54 AM, Paul Eggert wrote:
On 01/12/2013 02:49 AM, Tom G. Christensen wrote:I think the test still needs to be buildable. ... For Solaris 8& 9 it needs to link with libsocket to get these functionsI installed into gnulib the following, which I hope fixes the above:
It does but with one little wrinkle.Solaris < 8 also lacks struct if_nameindex in the system <net/if.h> and this caused a build error on Solaris 7 when I ran the build with gcc 3.4.6.
depbase=`echo test-net_if.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\gcc -std=gnu99 -DHAVE_CONFIG_H -I. -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./.. -I../gllib -I./../gllib -I/usr/tgcware/include -D _REENTRANT -g -O2 -MT test-net_if.o -MD -MP -MF $depbase.Tpo -c -o test-net_if.o test-net_if.c &&\
mv -f $depbase.Tpo $depbase.Po test-net_if.c:23: error: storage size of `ni' isn't known make[4]: *** [test-net_if.o] Error 1It turns out that if I use gcc 4.0 or later this error goes away but I think the proper fix would be to wrap the definition in !HAVE_NET_IF_H || HAVE_IF_NAMEINDEX same as the code that uses it.
-tgc
[Prev in Thread] | Current Thread | [Next in Thread] |