[syslog-ng] syslog-ng 1.1.9

Balazs Scheidler bazsi@balabit.hu
Wed, 28 Apr 1999 10:22:48 +0200


> 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
PGP key: http://www.balabit.hu/pgpkey.txt, or finger bazsi@balabit.hu