[syslog-ng] libdbi wrongly recognized in latest git source
Peter Eckel
Lists at Eckel-EDV.de
Wed Feb 11 19:40:30 CET 2009
Hi,
when building syslog-ng from the latest git source, I found a
problem with libdbi that occurs on my Redhat ES 5.2 systems that
do not have libdbi installed (neither have my customer's systems):
>commit 6ca874d7ea362e4f0286245542f7ea601743c72d
>Author: Balazs Scheidler <bazsi at balabit.hu>
>Date: Mon Feb 9 11:44:09 2009 +0100
>
>[configure] added kludge to recognize libdbi without an installed dbi.pc file
>
>libdbi does not always install a pkg-config file, work without one, assuming
>it was installed to the default location.
Unfortunately configure now also recognizes libdbi if it is not
installed at all:
[sec at linux1 sbin]$ rpmquery libdbi
package libdbi is not installed
[sec at linux1 sbin]$ rpmquery libdbi-devel
package libdbi-devel is not installed
[sec at linux1 syslog-ng.git]$ ./configure --disable-ssl
--disable-sql --disable-ipv6 --enable-pcre
--prefix=/opt/sec/local CFLAGS=-I/opt/sec/local/include LDFLAGS=-L/opt/sec/local/lib
[...]
checking for dlsym in -ldl... (cached) yes
checking for LIBDBI... no
checking for LIBDBI... yes
checking for LIBNET... which: no libnet-config in (/opt/CollabNet_Subversion/bin:/opt/sec/local/bin:/usr/kerberos/bin:/opt/sec/local/bin:/opt/CollabNet_Subversion/bin:/usr/local/bin:/bin:/usr/bin:/home/sec/bin)
no
[...]
[sec at linux1 syslog-ng.git]$ make
[...]
gcc -I/opt/sec/local/include -Wall -L/opt/sec/local/lib -o
syslog-ng main.o libsyslog-ng.a -lrt -lnsl -Wl,-Bstatic -lfl
-L/lib -lglib-2.0 -L/opt/sec/local/lib -levtlog
-L/usr/kerberos/lib -lssl -lcrypto -ldl -lz -lz -lwrap
-lpcre -Wl,-Bdynamic -ldbi -ldl
/usr/bin/ld: cannot find -ldbi
collect2: ld returned 1 exit status
make[2]: *** [syslog-ng] Error 1
make[2]: Leaving directory `/home/sec/syslog-ng.git/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sec/syslog-ng.git'
make: *** [all] Error 2
The latest 3.0.1 tarball worked fine.
Peter.
More information about the syslog-ng
mailing list