[syslog-ng] 3.4 head on FreeBSD

Gergely Nagy algernon at balabit.hu
Mon Dec 10 11:27:36 CET 2012


Peter Czanik <czanik at balabit.hu> writes:

> /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 
> './'`afinet-dest.c
> 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

This will be a bit tricky to fix, but a quick workaround is to guard the
typedef in afinet-dest.h with an #ifndef libnet_t (or something similar).

> root at fb91:/root/syslog-ng-devel # /usr/local/etc/rc.d/syslog-ng onerestart
> syslog_ng not running? (check /var/run/syslog.pid).
> 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

This is interesting, on 9.1RC3, uname -r should return 9.1RC3, which
should trigger the follow-freq(1) stuff. I'll try to double check the
logic.

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

ACK.

-- 
|8]



More information about the syslog-ng mailing list