[syslog-ng] 3.4 head on FreeBSD

Peter Czanik czanik at balabit.hu
Mon Dec 10 10:54:17 CET 2012


While trying to compile on FreeBSD 9.1, I ran into this problem:

/bin/sh ../../libtool  --tag=CC   --mode=compile cc -std=gnu99 
-DHAVE_CONFIG_H -I. -I../..  -I../../lib -I../../lib  -D_REENTRANT 
-I/usr/local/include/glib-2.0   -I/usr/local/include/eventlog 
-I/usr/local/include   -I/usr/local/include 
-I../../lib/ivykis/lib/include -I../../lib/ivykis/lib/include 
-I../../lib/ivykis/modules/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64  -O2 -pipe -I/usr/local/include/libnet116 
-I/usr/local/include -fno-strict-aliasing -Wall -g -pthread -MT 
libafsocket_notls_la-afinet-dest.lo -MD -MP -MF 
.deps/libafsocket_notls_la-afinet-dest.Tpo -c -o 
libafsocket_notls_la-afinet-dest.lo `test -f 'afinet-dest.c' || echo 
libtool: compile:  cc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../lib 
-I../../lib -D_REENTRANT -I/usr/local/include/glib-2.0 
-I/usr/local/include/eventlog -I/usr/local/include -I/usr/local/include 
-I../../lib/ivykis/lib/include -I../../lib/ivykis/lib/include 
-I../../lib/ivykis/modules/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -pipe -I/usr/local/include/libnet116 
-I/usr/local/include -fno-strict-aliasing -Wall -g -pthread -MT 
libafsocket_notls_la-afinet-dest.lo -MD -MP -MF 
.deps/libafsocket_notls_la-afinet-dest.Tpo -c afinet-dest.c  -fPIC -DPIC 
-o .libs/libafsocket_notls_la-afinet-dest.o
In file included from /usr/local/include/libnet116/libnet.h:120,
                  from afinet-dest.c:43:
/usr/local/include/libnet116/./libnet/libnet-structures.h:235: error: 
redefinition of typedef 'libnet_t'
afinet-dest.h:35: error: previous declaration of 'libnet_t' was here
gmake[4]: *** [libafsocket_notls_la-afinet-dest.lo] Error 1
gmake[4]: Leaving directory 
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory 
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
gmake: *** [all] Error 2
*** [do-build] Error code 1

Disabling libnet support results in a successful build, but it can't be 

root at fb91:/root/syslog-ng-devel # /usr/local/etc/rc.d/syslog-ng onerestart
syslog_ng not running? (check /var/run/syslog.pid).
Starting syslog_ng.
WARNING: Configuration file format is too old, syslog-ng is running in 
compatibility mode Please update it to use the syslog-ng 3.4 format at 
your time of convinience, compatibility mode can operate less 
efficiently in some cases. To upgrade the configuration, please review 
the warnings about incompatible changes printed by syslog-ng, and once 
completed change the @version header at the top of the configuration file.;
Unable to determine how to monitor this fd, follow_freq() not set and it 
is not possible to poll it with the current ivykis polling method, try 
changing IV_EXCLUDE_POLL_METHOD environment variable; fd='11'
Error initializing log_reader, closing fd; fd='11'
Error initializing message pipeline;
/usr/local/etc/rc.d/syslog-ng: WARNING: failed to start syslog_ng

FreeBSD installs syslog-ng-3.4.0alpha3/scl/syslog-ng.conf by default, so 
it needs a version bump.

It can easily be fixed by me. But system() is now in C instead of shell 

Peter Czanik (CzP) <czanik at balabit.hu>
BalaBit IT Security / syslog-ng upstream

More information about the syslog-ng mailing list