subshell.c revisited (Was: Re: New Gnome-libs compile error)



Hi Miguel,

the previous problem somehow sorted out except the latest gnome-libs
(0.99.7) still bombs on FreeBSD (4.0) without patching:

[asmodai@daemon] (21) # make
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support                     
-I../intl -I../intl             -I/usr/local/include -I/usr/X11R6/include
-I/usr/local/lib/glib/include -I/usr/local/include                         
 -I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include
-I/usr/local/include -I/usr/X11R6/include                                  
 -DGNOMESBINDIR=\""/usr/local/sbin"\"  -I/usr/X11R6/include
-I/usr/local/lib/glib/include -I/usr/local/include  -g -O2 -Wall
-Wno-unused -c subshell.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H
-I../support -I../support -I../intl -I../intl -I/usr/local/include
-I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include
-I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include
-I/usr/local/include -I/usr/X11R6/include
-DGNOMESBINDIR=\"/usr/local/sbin\" -I/usr/X11R6/include
-I/usr/local/lib/glib/include -I/usr/local/include -g -O2 -Wall -Wno-unused
-c -fPIC -DPIC subshell.c -o subshell.lo
subshell.c: In function `receive_fd':
subshell.c:158: storage size of `recvfd' isn't known
subshell.c:160: `I_RECVFD' undeclared (first use this function)
subshell.c:160: (Each undeclared identifier is reported only once
subshell.c:160: for each function it appears in.)
subshell.c:164: warning: control reaches end of non-void function
*** Error code 1

So when we compare this to the previous error, we got rid of the dat
problem, but are still stuck with recvfd/I_RECVFD

config.log gives this about sendmsg:

configure:6246: checking for Unix98 sendmsg
configure:6264: gcc -o conftest -g -O2 -Wall -Wno-unused  
-I/usr/X11R6/include -I/usr/local/lib/gli
b/include -I/usr/local/include  conftest.c -lm  1>&5
In file included from configure:6251:
/usr/include/sys/socket.h:139: parse error before `u_char'
/usr/include/sys/socket.h:139: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:140: warning: data definition has no type or
storage class

[ snip of about 30-40 lines of parse errors and warning all from socket.h ]

Looking at Vladimir's suggestion of changing configure.in I notice that
.7's configure.in still has the header files reversed.

I then looked at style(9) again, and according to these guidelines
sys/types.h always precedes network related header files and user header
files, which makes sense as types.h defines system data types.

After making these changes gnome-libs compiled completely, save for a
decent number of warnings about redefinitions of IN_STDLIB_H if I recall
correctly. Will log the build again and see what is al going `wrong'.

---
Jeroen Ruigrok van der Werven        join #FreeBSD on Undernet
asmodai(at)wxs.nl       Time is merely a residue of Reality...
Network/Security Specialist      <http://home.wxs.nl/~asmodai>
*BSD: Powered by Knowledge & Know-how <http://www.freebsd.org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]