Subject: Re: openldap configure problems with libwrap.
To: Simon Burge <simonb@netbsd.org>
From: David Brownlee <abs@anim.dreamworks.com>
List: tech-pkg
Date: 09/14/1999 17:31:21
	conftest does not use libwrap, but libwrap needs those two
	symbols to be defined in any code that calls it.

	Its a a deficiency in the linker - if no symbols are used
	form libwrap than it should ignore it.

	You might want to check the ucd-snmp package for an example
	of how to work around this :)

		David/absolute

             -=-  Sue me, screw me, walk right through me  -=-

On Wed, 15 Sep 1999, Simon Burge wrote:

> Folks,
> 
> I'm libwrap illiterate (hey, we live behind the big mean nasty corporate
> firewall :), and I've got a problem getting openldap to build:
> 
> 	simonpc:openldap/work.i386/ldap 221> cat conftest.c
> 	#line 6611 "configure"
> 	#include "confdefs.h"
> 
> 	int main() {
> 	main()
> 	; return 0; }
> 	simonpc:openldap/work.i386/ldap 222> cc -o conftest -O2 -Wl,-R/usr/pkg/lib \
> 						-L/usr/pkg/lib -Wl,-R/usr/pkg/lib \
> 						-L/usr/pkg/lib conftest.c -lwrap
> 	/usr/lib/libwrap.so: undefined reference to `allow_severity'
> 	/usr/lib/libwrap.so: undefined reference to `deny_severity'
> 	collect2: ld returned 1 exit status
> 
> This is on a i386/1.4J machine - it works fine on a i386/1.4.1 machine.
> I guess this has something to do with the recent update of libwrap to
> version 7.6, but have no clue on how to procede.
> 
> Simon.
>