small tcp_wrappers issue (argus-3.0.0.rc.10)
Andreas Östling
andreaso at it.su.se
Thu Jun 22 06:53:25 EDT 2006
I don't think this issue is new but I just noticed it when trying
argus-3.0.0.rc.10. The check for tcp_wrappers fails on some systems as
some versions of tcp_wrappers requires allow_severity/deny_severity to
be defined when linking. Example with argus-3.0.0.rc.10 on OpenBSD 3.9
even though it has libwrap by default:
checking for system tcp_wrappers library... checking for main in
-lwrap... no
configure: WARNING: tcp_wrapper not found
From config.log:
configure:6999: checking for system tcp_wrappers library
configure:7001: checking for main in -lwrap
configure:7025: gcc -o conftest -g -O2 conftest.c -lwrap -lpcap >&5
/usr/lib/libwrap.so.4.0: undefined reference to `allow_severity'
/usr/lib/libwrap.so.4.0: undefined reference to `deny_severity'
collect2: ld returned 1 exit status
By adding this to the conftest program:
int deny_severity = 0;
int allow_severity = 0;
tcp_wrappers will be detected correctly:
checking for system tcp_wrappers library... checking for main in
-lwrap... yes
and seems to work:
argus[10605]: 22 Jun 06 12:38:09.360765 refused connect from localhost
argus[10605]: 22 Jun 06 12:38:09.361116 ArgusCheckClientStatus:
ArgusTcpWrapper rejects
Same thing goes for argus-clients I guess.
/Andreas
More information about the argus
mailing list