Nate Campi writes:
On Fri, Apr 26, 2002 at 09:51:04AM +0200, Balazs Scheidler wrote:
On Thu, Apr 25, 2002 at 01:49:45PM -0400, Ed Ravin wrote:
I think the fix is that the test program should define "allow_severity" and "deny_severity", since those are required to be in the user program for it to compile successfully. Can you check this configure.in patch if it does autodetect your -lwrap ? (after patching you need to run autoconf)
I'm trying to figure out if the FAQ needs something about compiling in tcp wrappers support. Does the configure process work now when compiling it? I'm sure someone knows and I don't have to try myself.
We don't need an FAQ entry, we need a configure script that works :-) I just tried to build 1.5.18 as follows, on NetBSD 1.5.2: untar file apply Baszi's patch posted to the list recently:
Try this patch (and regenerate your configure script using autoconf ) diff -u -r1.49 configure.in --- configure.in 29 May 2002 10:24:42 -0000 1.49 +++ configure.in 30 May 2002 15:43:42 -0000 @@ -190,7 +190,7 @@ if test "x$enable_tcp_wrapper" = "xyes"; then AC_CHECK_HEADERS(tcpd.h) dnl AC_CHECK_LIB(wrap, hosts_access) - if test $blb_cv_c_lwrap = "xyes"; then + if test "x$blb_cv_c_lwrap" = "xyes"; then LIBS="$LIBS -lwrap" fi fi
ran "autoconf" ran "configure --prefix=/blah --enable-tcp-wrapper --with-libol=$PWD/../libol-3.3" Got all sorts of grief - the first configure failed, with: config.status: cannot find input file: utils/Makefile.in But re-iterating configure got farther, and then I get: gcc -g -O2 -Wall -I/var/home/elr/tmp/libol-0.3.3/src -D_GNU_SOURCE -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o -lfl /var/home/elr/tmp/libol-0.3.3/src/.libs/libol.a afinet.o: In function `do_open_afinet_connection': /var/home/elr/tmp/syslog-ng-1.5.18/src/afinet.c:223: undefined reference to `request_init' /var/home/elr/tmp/syslog-ng-1.5.18/src/afinet.c:224: undefined reference to `sock_host' /var/home/elr/tmp/syslog-ng-1.5.18/src/afinet.c:225: undefined reference to `hosts_access' collect2: ld returned 1 exit status Which shows -lwrap is still missing from LDFLAGS. Feh.