[syslog-ng]Error when compiling with tcp-wrappers
Ed Ravin
eravin@panix.com
Wed, 24 Apr 2002 23:38:25 -0400 (EDT)
Jim Gifford writes:
>
> It's there. I have tried everything. It just seems during the make the
> libwrap is not included.
> somewhere there needs to be a -lwrap added, I do not see one in the
> configure file.
It can be fixed by editing src/Makefile. This works for me on NetBSD 1.5.2,
x86 platform:
--- src/Makefile Wed Apr 24 23:30:33 2002
+++ /tmp/Makefile.fixed Wed Apr 24 23:28:28 2002
@@ -96,7 +96,7 @@
DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.
CPPFLAGS =
-LDFLAGS =
+LDFLAGS = -lwrap
LIBS = -lfl /devel/build/libol-0.3.2/src/.libs/libol.a
syslog_ng_OBJECTS = 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 \
My configure options were:
./configure --prefix=/install/syslog-ng-1.5.16 --enable-tcp-wrapper --with-libol=/src/build/libol-0.3.2
And the relevant output from configure was:
checking for hosts_access in -lwrap... no
checking whether to enable TCP wrapper support... yes
So clearly something is broken in the configure process.
> ----- Original Message -----
> From: "Balazs Scheidler" <bazsi@balabit.hu>
> To: <syslog-ng@lists.balabit.hu>
> Sent: Tuesday, April 23, 2002 5:18 AM
> Subject: Re: [syslog-ng]Error when compiling with tcp-wrappers
>
>
> > On Mon, Apr 22, 2002 at 06:26:48PM -0400, Ed Ravin wrote:
> > > Jim Gifford writes:
> > > > When I compile with the option --enable-tcp-wrapper, I get the
> following
> > > > error.
> > > >
> > > > afinet.o: In function `do_open_afinet_connection':
> > > > afinet.o(.text+0x38b): undefined reference to `request_init'
> > > > afinet.o(.text+0x394): undefined reference to `sock_host'
> > > > afinet.o(.text+0x39c): undefined reference to `hosts_access'
> > > > collect2: ld returned 1 exit status
> > >
> > > There's still some problem with the autoconf stuff, it seems.
> > > Try adding -lwrap to the LDFLAGS like this:
> > >
> > > gmake LDFLAGS+=-lwrap
> >
> > here's the check for libwrap:
> >
> > AC_CHECK_LIB(wrap, hosts_access)
> >
> > it does the trick for me:
> >
> > ...
> > checking for hosts_access in -lwrap... yes
> > ...
> >
> > --
> > Bazsi