Mailing List Archive

udp.c:55: sizeof applied to an incomplete type
It appears there is an improperly split line in libnasl's configure.in

AC_CHECK_HEADERS(netinet/ip.h netinet/udp.h netinet/protocols.h netinet/ip_udp.h netinet/ip_tcp.h netinet/tcpip.h ,,,[.#inclu
---> de <sys/types.h>

that makes newer versions of autoconf generate broken code:

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
---> #inclu
---> de <sys/types.h>
#include <netinet/in.h>
#include <netinet/ip_var.h>
#include <netinet/udp.h>
#include <netinet/tcp.h>

As a result, configure fails to detect various system headers, including
(but not limited to) netinet/udp.h, and this leads to $SUBJ and a load of
similar error messages when you compile libnasl.

Older versions of autoconf do not care because they appear to ignore this
argument of AC_CHECK_HEADERS completely.

The other obstacle is the line including ip_var.h (btw: another, probably
harmless, occurence of ip_var.h is in nessus-libraries/configure.in):
there is no such file in glibc, hence the compilation on Linux fails
anyway. To be honest, the list of includes in this instance of
AC_CHECK_HEADERS is extremely silly because it includes two files
whose presence and usability is being determined: netinet/udp.h,
netinet/tcp.h...Catch 22 of sorts.

--Pavel Kankovsky aka Peak [ Boycott Microsoft--http://www.vcnet.com/bms ]
"Resistance is futile. Open your source code and prepare for assimilation."