[syslog-ng] 3.4 head on FreeBSD

Peter Czanik czanik at balabit.hu
Wed Dec 12 18:18:14 CET 2012


On 12/10/2012 10:54 AM, Peter Czanik wrote:
> Hello,
>
> 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
> './'`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
> gmake[4]: *** [libafsocket_notls_la-afinet-dest.lo] Error 1
> gmake[4]: Leaving directory
> `/root/syslog-ng-devel/work/syslog-ng-3.4.0alpha3/modules/afsocket'
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory
> `/root/syslog-ng-devel/work/syslog-ng-3.4.0alpha3/modules/afsocket'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
> `/root/syslog-ng-devel/work/syslog-ng-3.4.0alpha3/modules'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/root/syslog-ng-devel/work/syslog-ng-3.4.0alpha3'
> gmake: *** [all] Error 2
> *** [do-build] Error code 1

And this patch from Algernon solves the compile problem:

https://github.com/algernon/syslog-ng/commit/04387b2f373337bb582acb68eb4facbc4f5b471f.patch

With this patch the beta has the green light also from FreeBSD :)
Bye,

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




More information about the syslog-ng mailing list