Bug#244659: Build fails with "checking for libwrap... configure: error: *** libwrap missing"
reassign 244659 libwrap0-dev
# breaks openssh build
severity 244659 serious
thanks
On Mon, Apr 19, 2004 at 01:36:01PM +0200, Thomas Luzat wrote:
> Package: ssh
> Version: 1:3.8p1-3
>
> On an unstable/experimental system I did the following to build ssh:
>
> apt-get build-dep ssh
> apt-get source ssh
> cd openssh-3.8p1
> dpkg-buildpackage
>
> The build fails with:
>
> [...]
> checking whether struct dirent allocates space for d_name... yes
> checking for libwrap... configure: error: *** libwrap missing
>
> libwrap0 and libwrap0-dev (both 7.6.dbs-1) are installed. The libwrap test
> seems to fail because __BEGIN_DECLS, __END_DECLS and FILE are not declared
> in tcpd.h, adding
>
> #include <stdio.h>
>
> right before
>
> #include <tcpd.h>
>
> in configure.ac and configure fixes the build and .ac file for me. I'm not
> sure if that's a good fix, though (wouldn't configure have to check for
> stdio.h, too, then?).
I think this is a bug in libwrap0-dev. I note this in the changelog:
tcp-wrappers (7.6-8.2) unstable; urgency=low
* NMU.
* tcpd.h: include <stdio.h> and <netinet/in.h> to define some structs
which are used by the new prototypes. Also prevent against multiple
inclusion. Patch courtesy of John Daily.
-- Matthew Wilcox <willy@debian.org> Mon, 16 Jul 2001 12:28:54 -0600
Marco, could you re-apply this change? That said, since you haven't kept
the __P stuff from the two NMUs surrounding 7.6-8.2, it's not clear to
me why you've kept __BEGIN_DECLS and __END_DECLS too; but the point
about FILE stands.
Thanks,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: