[syslog-ng] syslog-ng 1.1.9

Nicholas Merrill lists@mojo.calyx.net
Wed, 28 Apr 1999 12:15:12 -0400 (EDT)


On Wed, 28 Apr 1999, Balazs Scheidler wrote:

> > I'm attempting to compile the new syslog-ng 1.1.9, but not
> > getting too far- When I try to compile libol0.1.7 on FreeBSD
> > 3.0 RELEASE I get:
> > 
> > [root@host libol-0.1.7]# make
> > Making all in utils
> > Making all in src
> > /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
> > -I/usr/src/libol-0.1.7/src -I.     -Wall -g -c format.c
> > rm -f .libs/format.lo
> > gcc -DHAVE_CONFIG_H -I. -I/usr/src/libol-0.1.7/src -I. -Wall -g -c  -fPIC
> > -DPIC format.c -o .libs/format.lo
> > In file included from format.c:32:
> > /usr/include/netinet/in.h:275: parse error before `u_char'
> > /usr/include/netinet/in.h:275: warning: no semicolon at end of struct or
> > union
> > /usr/include/netinet/in.h:276: warning: data definition has no type or
> > storage class
> > /usr/include/netinet/in.h:277: parse error before `sin_port'
> > /usr/include/netinet/in.h:277: warning: data definition has no type or
> > storage class
> > /usr/include/netinet/in.h:280: parse error before `}'
> > *** Error code 1
> 
> as it seems, netinet/in.h has a dependency on other headers, and doesn't
> include it automatically. Try adding an
> 
> #include <sys/socket.h>
> 
> before <netinet/in.h>
> 
> -- 
> Bazsi

Hmm that actually seemed to make it worse:

[root@host libol-0.1.7]# make
Making all in utils
Making all in src
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I/usr/src/libol-0.1.7/src -I.     -Wall -g -c format.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I/usr/src/libol-0.1.7/src -I. -Wall -g -c  -fPIC
-DPIC format.c -o .libs/format.lo
In file included from format.c:33:
/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
/usr/include/sys/socket.h:142: parse error before `}'
/usr/include/sys/socket.h:150: parse error before `u_short'
/usr/include/sys/socket.h:150: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:151: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:266: parse error before `caddr_t'
/usr/include/sys/socket.h:266: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:267: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:269: parse error before `msg_iovlen'
/usr/include/sys/socket.h:269: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:270: parse error before `msg_control'
/usr/include/sys/socket.h:270: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:271: parse error before `msg_controllen'
/usr/include/sys/socket.h:271: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:273: parse error before `}'
/usr/include/sys/socket.h:293: parse error before `u_int'
/usr/include/sys/socket.h:293: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:297: parse error before `}'
/usr/include/sys/socket.h:314: parse error before `pid_t'
/usr/include/sys/socket.h:314: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:315: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:316: parse error before `cmcred_euid'
/usr/include/sys/socket.h:316: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:317: parse error before `cmcred_gid'
/usr/include/sys/socket.h:317: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:319: parse error before `cmcred_groups'
/usr/include/sys/socket.h:319: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:320: parse error before `}'
/usr/include/sys/socket.h:343: parse error before `u_short'
/usr/include/sys/socket.h:343: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:345: parse error before `}'
/usr/include/sys/socket.h:351: parse error before `caddr_t'
/usr/include/sys/socket.h:351: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:355: parse error before `msg_accrights'
/usr/include/sys/socket.h:355: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:357: parse error before `}'
/usr/include/sys/socket.h:378: parse error before `recv'
/usr/include/sys/socket.h:378: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:379: parse error before `recvfrom'
/usr/include/sys/socket.h:379: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:380: parse error before `recvmsg'
/usr/include/sys/socket.h:380: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:381: parse error before `send'
/usr/include/sys/socket.h:381: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:382: parse error before `sendto'
/usr/include/sys/socket.h:383: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:384: parse error before `sendmsg'
/usr/include/sys/socket.h:384: warning: data definition has no type or
storage class
In file included from format.c:34:
/usr/include/netinet/in.h:275: parse error before `u_char'
/usr/include/netinet/in.h:275: warning: no semicolon at end of struct or
union
/usr/include/netinet/in.h:276: warning: data definition has no type or
storage class
/usr/include/netinet/in.h:277: parse error before `sin_port'
/usr/include/netinet/in.h:277: warning: data definition has no type or
storage class
/usr/include/netinet/in.h:280: parse error before `}'
*** Error code 1

Stop.
*** Error code 1

Stop.


----------------------------------------------------------------------------
Nicholas Merrill       http://www.calyx.net            Voice: 212-966-1900
President / CEO        http://www.calyx.nl             Fax  : 212-966-3965
Calyx Internet Access  13 Laight St. NYC, NY 10013     Email: nick@calyx.net
----------------------------------------------------------------------------