Re: gnome-libs build fails



Hi,

I've worked out what the problem is - lines like these:

/* needed for sigaction under 'gcc -ansi -pedantic' on GNU/Linux */
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE 1
#endif

Unfortunately, while it may indeed be necesary to prevent warnings on Linux,
it doesn't even build on my FreeBSD box.  Surely something like this should be
done with autoconf, rather that hard coded #defines.

The code occurs at:

 * gnome-libs/libgnorba/goad.c, line 9
 * gnome-libs/zvt/subshell.c, line 23
 * gnome-libs/zvt/gnome-pty-helper.c, line 31

Lyndon

On Thu, Jan 07, 1999 at 12:55:42PM +1300, Lyndon Drake wrote:
> Hi,
> 
> gnome-libs 0.99.2 and cvs from 10 minutes ago fails to build on FreeBSD 2.2.7.
> >From looking at the header files, it seems that the definitions for things
> like u_char aren't seen by the compiler, but I can't work out why not.
> FWIW, gnome-libs 0.99.1 compiled without errors.
> 
> Any suggestions would be appreciated.
> 
> Lyndon
> 
> 
> 
> 
> gcc28 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/home/lyndon/include -I/home/lyndon/include -I/usr/X11R6/include -I/home/lyndon//lib/glib/include -I/home/lyndon//include -I/home/lyndon/include -I/usr/X11R6/include -I/home/lyndon//lib/glib/include -I/home/lyndon//include -I/home/lyndon//include -I/usr/X11R6/include -DGNOMESBINDIR=\"/home/lyndon/sbin\" -I/home/lyndon/include -I/usr/X11R6/include -I/home/lyndon//lib/glib/include -I/home/lyndon//include -g -O2 -Wall -Wno-unused -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wp,-MD,.deps/subshell.p -c -fPIC -DPIC subshell.c
> In file included from subshell-includes.h:50,
>                  from subshell.c:29:
> /usr/include/sys/socket.h:137: parse error before `u_char'
> /usr/include/sys/socket.h:137: warning: no semicolon at end of struct or union
> /usr/include/sys/socket.h:138: warning: type defaults to `int' in declaration of `sa_family'
> /usr/include/sys/socket.h:138: warning: data definition has no type or storage class
> /usr/include/sys/socket.h:140: parse error before `}'
> /usr/include/sys/socket.h:147: parse error before `u_short'
> /usr/include/sys/socket.h:147: warning: no semicolon at end of struct or union
> /usr/include/sys/socket.h:148: warning: type defaults to `int' in declaration of `sp_protocol'
> /usr/include/sys/socket.h:148: warning: data definition has no type or storage class
> /usr/include/sys/socket.h:260: parse error before `u_int'
> /usr/include/sys/socket.h:260: warning: no semicolon at end of struct or union
> /usr/include/sys/socket.h:262: parse error before `msg_iovlen'
> /usr/include/sys/socket.h:262: warning: type defaults to `int' in declaration of `msg_iovlen'
> /usr/include/sys/socket.h:262: warning: data definition has no type or storage class
> /usr/include/sys/socket.h:264: parse error before `msg_controllen'
> /usr/include/sys/socket.h:264: warning: type defaults to `int' in declaration of `msg_controllen'
> /usr/include/sys/socket.h:264: warning: data definition has no type or storage class
> /usr/include/sys/socket.h:266: parse error before `}'
> /usr/include/sys/socket.h:286: parse error before `u_int'
> /usr/include/sys/socket.h:286: warning: no semicolon at end of struct or union
> /usr/include/sys/socket.h:290: parse error before `}'
> /usr/include/sys/socket.h:312: parse error before `u_short'
> /usr/include/sys/socket.h:312: warning: no semicolon at end of struct or union
> /usr/include/sys/socket.h:314: parse error before `}'
> In file included from subshell.c:112:
> /usr/include/sys/un.h:48: parse error before `u_char'
> /usr/include/sys/un.h:48: warning: no semicolon at end of struct or union
> /usr/include/sys/un.h:49: warning: type defaults to `int' in declaration of `sun_family'
> /usr/include/sys/un.h:49: warning: data definition has no type or storage class
> /usr/include/sys/un.h:51: parse error before `}'
> subshell.c: In function `receive_fd':
> subshell.c:131: storage size of `msg' isn't known
> subshell.c:141: sizeof applied to an incomplete type
> subshell.c:144: sizeof applied to an incomplete type
> subshell.c:149: `u_char' undeclared (first use in this function)
> subshell.c:149: (Each undeclared identifier is reported only once
> subshell.c:149: for each function it appears in.)
> subshell.c:149: parse error before `)'
> subshell.c:149: arithmetic on pointer to an incomplete type
> subshell.c:150: warning: control reaches end of non-void function
> make[2]: *** [subshell.lo] Error 1
> make[2]: Leaving directory `/usr/home/lyndon/src/cvs-stuff/gnome-libs/zvt'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/home/lyndon/src/cvs-stuff/gnome-libs'
> make: *** [all-recursive-am] Error 2
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



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