[syslog-ng] pdbtool patternize update and my syslog-ng 3.2 branch

Balazs Scheidler bazsi at balabit.hu
Wed Sep 29 11:06:18 CEST 2010


On Mon, 2010-09-27 at 09:57 -0700, Matthew Hall wrote:
> Sorry for delayed replies. I've gotten a bad liver infection.
> 
> I also used the same OS as Martin with GYP's 3.2 patternize branch.
> 
> I get a zillion library dependencies in pdbtool which will render it 
> nonportable. There must be some Debian specific secrets or some other 
> trick to this. Or maybe the 3.2 binaries will have way more shlibdeps 
> than the 3.1 binaries. I don't know at all.
> 
> Matthew.
> 
> ./configure --prefix=/home/megahall/sng-3.2
> --enable-debug --enable-ssl --enable-mixed-linking --enable-ipv6
> --enable-tcp-wrapper --enable-spoof-source --enable-sql=false
> --enable-linux-caps --enable-pcre
> 
> 	linux-vdso.so.1 =>  (0x00007fffd0f39000)
> 	libsyslog-ng.so.0 => /home/megahall/sng-3.2/lib/libsyslog-ng.so.0 (0x00007f3a96010000)
> 	libdbparser.so => /home/megahall/sng-3.2/lib/syslog-ng/libdbparser.so (0x00007f3a95dfc000)
> 	librt.so.1 => /lib/librt.so.1 (0x00007f3a95be3000)
> 	libnsl.so.1 => /lib/libnsl.so.1 (0x00007f3a959c9000)
> 	libuuid.so.1 => /lib/libuuid.so.1 (0x00007f3a957c4000)
> 	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f3a955bf000)
> 	libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00007f3a952e1000)
> 	libevtlog.so.0 => /usr/lib/libevtlog.so.0 (0x00007f3a950dc000)
> 	libpcre.so.3 => /lib/libpcre.so.3 (0x00007f3a94ead000)
> 	libcap.so.2 => /lib/libcap.so.2 (0x00007f3a94ca8000)
> 	libdl.so.2 => /lib/libdl.so.2 (0x00007f3a94aa4000)
> 	libpthread.so.0 => /lib/libpthread.so.0 (0x00007f3a94886000)
> 	libc.so.6 => /lib/libc.so.6 (0x00007f3a94503000)
> 	/lib64/ld-linux-x86-64.so.2 (0x00007f3a96295000)
> 	libattr.so.1 => /lib/libattr.so.1 (0x00007f3a942fd000)

If you can install the static versions of these libraries:

$GLIB_LIBS $EVTLOG_LIBS $PCRE_LIBS $REGEX_LIBS

Then those dependencies will be statically linked into the
syslog-ng/pdbtool binary, but libsyslog-ng.so will always be linked
dynamically. Not to mention that even pdbtool tries to load plugins.

So as of right now, you can't move the binaries to different boxes.

But I have good news as well, I've integrated gyp's patches to mainline,
cleaned them up, removed memory leaks and also decreased memory usage a
lot.

So you don't need gyp's tree, it is enough to use the mainline.


-- 
Bazsi



More information about the syslog-ng mailing list