[syslog-ng] 3.2 alpha 2 build error

Matthew Hall mhall at mhcomputing.net
Fri Aug 20 03:44:27 CEST 2010


More information. When I compiled it by hand, it cannot find its libraries.

I checked /etc/ld.so.conf.d/ and /usr/local/lib is included as expected 
for Debian and Ubuntu, and the library exists also.

megahall at ubuntu:~/syslog-ng-3.2alpha2$ sudo find / -iname libsyslog-ng.so.0 -print
/home/megahall/syslog-ng-3.2alpha2/src/.libs/libsyslog-ng.so.0
/usr/local/lib/libsyslog-ng.so.0
megahall at ubuntu:~/syslog-ng-3.2alpha2$ pdbtool
pdbtool: error while loading shared libraries: libsyslog-ng.so.0: cannot open shared object file: No such file or directory
megahall at ubuntu:~/syslog-ng-3.2alpha2$ 

Enabling these options made no difference:

--enable-shared --enable-dynamic-linking

nm indicates that the library has symbols so it's not corrupt.

file indicates that the arch is valid so it wasn't misbuilt for 32 bit.

/usr/local/lib/libsyslog-ng.so.0.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

Not sure what to try next on this one.

Matthew.

On Thu, Aug 19, 2010 at 06:25:55PM -0700, Matthew Hall wrote:
> More information.
> 
> Host OS is Kubuntu 10.04 LTS.
> 
> Version of libdbi0 is 0.8.2-3.
> 
> Builds successfully with --disable-sql added to configure in debian/rules.
> 
> However packaging will fail with the following:
> 
> dpkg-shlibdeps: error: couldn't find library libsyslog-ng.so.0 needed by debian/syslog-ng/bin/pdbtool (ELF format: 'elf64-x86-64'; RPATH: '//lib://lib/syslog-ng').
> Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
> To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
> dh_shlibdeps: dpkg-shlibdeps -Tdebian/syslog-ng.substvars debian/syslog-ng/sbin/syslog-ng debian/syslog-ng/bin/loggen debian/syslog-ng/bin/pdbtool returned exit code 2
> make: *** [binary-arch] Error 9
> 
> Matthew.
> 
> On Thu, Aug 19, 2010 at 06:16:39PM -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)
> > 
> > ______________________________________________________________________________
> > 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
> > 
> ______________________________________________________________________________
> 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
> 


More information about the syslog-ng mailing list