[syslog-ng] 3.2 alpha 2 build error

syslogng at feystorm.net syslogng at feystorm.net
Tue Sep 7 20:53:33 CEST 2010


Nevermind, kinda. It looks like balabit keeps its own modified version 
of the libdbi code. In this case, I think that code should be packaged 
with syslog-ng as its really not libdbi anymore, but a fork. At the 
least it should have its own name and release package (the only place I 
could find it was git).

Also I have a problem with the balabit libdbi-drivers as well. There was 
a patch floating around the internet for the oracle drivers which 
performs a commit on every insert, and it appears the balabit code has 
this patch applied (OCI_COMMIT_ON_SUCCESS, line 306 of dbd_oracle.c). 
Forcing users of the to commit on every insert is a really bad practice 
as it seriously degrades database performance.

-Patrick

Sent: Martedì 7 Settembre 2010 11.29.40
From: syslogng at feystorm.net
To: Syslog-ng users' and developers' mailing list 
<syslog-ng at lists.balabit.hu>
Subject: Re: [syslog-ng] 3.2 alpha 2 build error
> Bazsi, what version of libdbi should work? I just downloaded the very 
> latest version (0.8.4) and I get the same errors Matthew does.
>
> -Patrick
>
> Sent: Giovedì 2 Settembre 2010 9.28.43
> From: Balazs Scheidler <bazsi at balabit.hu>
> To: Syslog-ng users' and developers' mailing list 
> <syslog-ng at lists.balabit.hu>
> Subject: Re: [syslog-ng] 3.2 alpha 2 build error
>> 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.
>>
>>   
> ------------------------------------------------------------------------
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100907/a06cd962/attachment-0001.htm 


More information about the syslog-ng mailing list