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

Ed Ravin eravin@panix.com
Thu, 25 Apr 2002 13:49:45 -0400 (EDT)


Balazs Scheidler writes:
> 
> On Wed, Apr 24, 2002 at 11:38:25PM -0400, Ed Ravin wrote:
> >  ./configure  --prefix=/install/syslog-ng-1.5.16 --enable-tcp-wrapper --with-libol=/src/build/libol-0.3.2    
[...]
> >  checking for hosts_access in -lwrap... no
> >  checking whether to enable TCP wrapper support... yes
> > 
> > So clearly something is broken in the configure process.
> 
> can you check config.log why it fails?

Here's the log:

 configure:2725: checking for tcpd.h
 configure:2735: gcc -E  conftest.c >/dev/null 2>conftest.out
 configure:2762: checking for hosts_access in -lwrap
 configure:2781: gcc -o conftest -g -O2   conftest.c -lwrap   1>&5
 /usr/lib/libwrap.so: undefined reference to `allow_severity'
 /usr/lib/libwrap.so: undefined reference to `deny_severity'
 collect2: ld returned 1 exit status
 configure: failed program was:
 #line 2770 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
 char hosts_access();
 
 int main() {
 hosts_access()
 ; return 0; }
 configure:2811: checking whether to enable TCP wrapper support
 
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.