[syslog-ng]Error when compiling with tcp-wrappers

Jim Gifford maillist@jg555.com
Tue, 23 Apr 2002 11:00:41 -0700


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.

----- 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
> PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C
8EB1
>
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
>