[syslog-ng] 3.2 alpha 2 build error

Balazs Scheidler bazsi at balabit.hu
Thu Sep 2 17:28:43 CEST 2010


On Thu, 2010-08-19 at 18:16 -0700, Matthew Hall wrote:
> When building using debian/rules binary on 3.2 alpha 2 my build fails 
> here. Any advice on this one?
> 
> Thanks,
> Matthew.
> 
> /bin/bash ../../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../src -I.. -DENABLE_SQL=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/eventlog     -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -Wall -MT libafsql_la-afsql.lo -MD -MP -MF .deps/libafsql_la-afsql.Tpo -c -o libafsql_la-afsql.lo `test -f 'afsql.c' || echo './'`afsql.c
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I.. -DENABLE_SQL=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/eventlog -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -MT libafsql_la-afsql.lo -MD -MP -MF .deps/libafsql_la-afsql.Tpo -c afsql.c  -fPIC -DPIC -o .libs/libafsql_la-afsql.o
> afsql.c:120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbi_instance’
> afsql.c: In function ‘afsql_dd_insert_db’:
> afsql.c:583: warning: implicit declaration of function ‘dbi_conn_new_r’
> afsql.c:583: error: ‘dbi_instance’ undeclared (first use in this function)
> afsql.c:583: error: (Each undeclared identifier is reported only once
> afsql.c:583: error: for each function it appears in.)
> afsql.c: In function ‘afsql_dd_init’:
> afsql.c:1007: warning: implicit declaration of function ‘dbi_initialize_r’
> afsql.c:1007: error: ‘dbi_instance’ undeclared (first use in this function)
> 

This is caused by a too old libdbi. Either disable sql support, or
upgrade libdbi.

-- 
Bazsi



More information about the syslog-ng mailing list