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

Balazs Scheidler bazsi@balabit.hu
Tue, 23 Apr 2002 14:18:52 +0200


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