bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] configure.ac: Missing header inclusion in IPv6 test.


From: Mats Erik Andersson
Subject: [bug-inetutils] configure.ac: Missing header inclusion in IPv6 test.
Date: Sat, 18 Sep 2010 19:21:50 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello,

with the help of Bruna Haible, a bug has been located in

   inetutils/configure.ac

The original thread started in

   http://lists.gnu.org/archive/html/bug-gnulib/1010-09/msg00328.html

but the message below expresses the conclusion.


Best regards,
Mats E A

----- Forwarded message from Bruno Haible <address@hidden> -----

Mats Erik Andersson wrote:
> > where do you find the source code of that test?
> 
>     ### inetutils/configure.ac, line 330
>     ###
> 
>     if test ! "X$ipv6" = "Xno" && test "$working_ipv6" = "Xyes"; then
>       AC_CHECK_TYPE(struct sockaddr_in6, , working_ipv6=no, [#include 
> <netinet/in.h>])
>     fi

Good, you got it. Bug in inetutils/configure.ac, line 331.

> It seems to me that the blame must go to autoconf. Right? Or is the template
> "configure.ac" maintained by GNU Inetutils incomplete?

The documentation of AC_CHECK_TYPE
<http://www.gnu.org/software/autoconf/manual/html_node/Generic-Types.html>
says that AC_INCLUDES_DEFAULT (which includes <sys/types.h>) is not used when
the fourth argument of AC_CHECK_TYPE is present. So it is the duty of
inetutils/configure.ac line 331 to provide #include <sys/types.h>.

Bruno

----- End forwarded message -----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]