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 functions
I 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 1
It 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