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

Ed Ravin eravin@panix.com
Mon, 22 Apr 2002 18:49:18 -0400 (EDT)


> 
> No luck any other ideas?

Try CFLAGS instead of LDFLAGS.  I hit this one when I built syslog-ng on
NetBSD, but forgot to document the fix.

> > > 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