[syslog-ng]syslog-ng configure and tcp_wrappers

José Pedro Oliveira syslog-ng@lists.balabit.hu
Tue, 19 Oct 2004 21:18:39 +0100


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig5D2EBC289ECA71490AA88F80
Content-Type: multipart/mixed;
 boundary="------------050500040902060409090800"

This is a multi-part message in MIME format.
--------------050500040902060409090800
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

Right now syslog-ng is built using the dynamic tcp_wrappers
library.

   $ ldd syslog-ng
       libnsl.so.1 => /lib/libnsl.so.1 (0x0583f000)
       libresolv.so.2 => /lib/libresolv.so.2 (0x0029d000)
       libwrap.so.0 => /usr/lib/libwrap.so.0 (0x00d87000)
                       ^^^^^^^^
       libc.so.6 => /lib/tls/libc.so.6 (0x00bcb000)
       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00bb3000)

In some configurations the /usr/lib directory may not be
available (eg: mount by nfs) when the daemon is started.
Would it be possible to modify the syslog-ng configure file
to use the static tcp_wrappers library instead?

A possible patch is attached. Note that it may not be
the best solution as I am not a autotools expert
(it does work in Red Hat/Fedora distros though).

Thanks in advance,
jpo
-- 
José Pedro Oliveira
* mailto: jpo@di.uminho.pt * http://gsd.di.uminho.pt/~jpo *
* gpg fingerprint = F9B6 8D87 859D 1C94 48F0 84C0 9749 9EB5 91BD 851B *

--------------050500040902060409090800
Content-Type: text/x-patch;
 name="syslog-ng-1.6.5.configure.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="syslog-ng-1.6.5.configure.patch"

diff -ruN syslog-ng-1.6.5/configure syslog-ng-1.6.5-patched/configure
--- syslog-ng-1.6.5/configure	2004-08-05 12:53:15.000000000 +0100
+++ syslog-ng-1.6.5-patched/configure	2004-09-01 22:37:31.000000000 +0100
@@ -6944,7 +6944,7 @@
 if test "${blb_cv_c_lwrap+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  for libwrap in "-lwrap" "/usr/local/lib/libwrap.a"; do
+  for libwrap in "/usr/lib/libwrap.a" "-lwrap" "/usr/local/lib/libwrap.a"; do
 	LIBS="$old_LIBS $libwrap"
 
 	cat >conftest.$ac_ext <<_ACEOF

--------------050500040902060409090800--

--------------enig5D2EBC289ECA71490AA88F80
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBdXakl0metZG9hRsRAkcZAKCJQ48Y+hp4+cu6eBZ32GE/EdD4SQCg7qHU
uMwiV72wNclJuyBUvQBD/LI=
=ENRP
-----END PGP SIGNATURE-----

--------------enig5D2EBC289ECA71490AA88F80--