> > Configure scripts in ethereal-0.9.5 fail due to errors on at leaset
> > IRIX 6.5 and Solaris 9.
> What does the "config.log" file say?
The header file "/usr/local/include/net/bpf.h" exists, but
configuration scripts fail nevertheless.
% ls /usr/local/include/net/bpf.h
/usr/local/include/net/bpf.h
% env PATH=/usr/xpg4/bin:$PATH ./configure
.....
checking for net/bpf.h... no
configure: error: Header file net/bpf.h not found; if you installed libpcap from source, did you also do "make install-incl"?
The "config.log" says that
configure:3397: checking for net/bpf.h
configure:3407: gcc -E -I$(top_srcdir) -I$(top_srcdir)/wiretap -I/usr/local/include conftest.c >/dev/null 2>conftest.out
cpp0: warning: changing search order for system directory "/usr/local/include"
cpp0: warning: as it has already been specified as a non-system directory
configure: failed program was:
#line 3402 "configure"
#include "confdefs.h"
#include <net/bpf.h>
Warnings by the preprocessor (gcc version 3.1) are recorded in
"conftest.out", so that it's size is NOT zero bytes.
if test -z "conftest.out"; then
eval "ac_cv_header_$ac_safe=yes"
else
eval "ac_cv_header_$ac_safe=no"
fi
> > Scripts should be regenerated using a newer version of autoconf such
> > as autoconf-2.53 to run those successfully.
> How are you certain that the problem is that an older version of
> autoconf is being used?
No errors occur if scripts are regenerated by GNU autoconf-2.53.
% autoconf ...
% env PATH=/usr/xpg4/bin:$PATH ./configure
.....
checking net/bpf.h usability... yes
checking net/bpf.h presence... yes
The "config.log" says that
configure:5378: checking net/bpf.h usability
configure:5387: gcc -c -D_U_="__attribute__((unused))" -Wall -W -g -O2 -Wno-return-type -DFUNCPROTO=15 -I$(top_srcdir) -I$(top_srcdir)/wiretap -I/usr/local/include -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I$(top_srcdir) -I$(top_srcdir)/wiretap -I/usr/local/include conftest.c >&5
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
configure:5390: $? = 0
configure:5393: test -s conftest.o
configure:5396: $? = 0
configure:5405: result: yes
The acheaders.m4 (AC_CHECK_HEADER) in GNU autoconf-2.53 uses the
compiler, not the preprocessor.
-- ayamura
Ayamura KIKUCHI, M.D., Ph.D.