[tcpdump-workers] pcap-loop on Ubuntu 10.10

2011-06-15 Thread Jeff Dean
I tried installing the current tcpdump (because I needed the recent 
libpcap), and the configure step failed.  The message was on checking 
the pcap_loop.  My system has libpcap0.8 and libpcap0.8-dev installed.


--
Jeff Dean
CS PhD Student
E239 Glascow Hall
Naval Postgraduate School
Monterey, CA 93943
831-656-3696
DSN 756-3696

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure 

## - ##
## Platform. ##
## - ##

hostname = A1671
uname -m = i686
uname -r = 2.6.35-28-generic-pae
uname -s = Linux
uname -v = #50-Ubuntu SMP Fri Mar 18 20:43:15 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo  = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/X11R6/bin


## --- ##
## Core tests. ##
## --- ##

configure:1757: checking build system type
configure:1775: result: i686-pc-linux-gnu
configure:1797: checking host system type
configure:1812: result: i686-pc-linux-gnu
configure:1956: checking for gcc
configure:1972: found /usr/bin/gcc
configure:1983: result: gcc
configure:2221: checking for C compiler version
configure:2228: gcc --version >&5
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2231: $? = 0
configure:2238: gcc -v >&5
Using built-in specs.
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) 
configure:2241: $? = 0
configure:2248: gcc -V >&5
gcc: '-V' option must have argument
configure:2251: $? = 1
configure:2274: checking for C compiler default output file name
configure:2301: gccconftest.c  >&5
configure:2304: $? = 0
configure:2342: result: a.out
configure:2359: checking whether the C compiler works
configure:2369: ./a.out
configure:2372: $? = 0
configure:2389: result: yes
configure:2396: checking whether we are cross compiling
configure:2398: result: no
configure:2401: checking for suffix of executables
configure:2408: gcc -o conftestconftest.c  >&5
configure:2411: $? = 0
configure:2435: result: 
configure:2441: checking for suffix of object files
configure:2467: gcc -c   conftest.c >&5
configure:2470: $? = 0
configure:2493: result: o
configure:2497: checking whether we are using the GNU C compiler
configure:2526: gcc -c   conftest.c >&5
configure:2532: $? = 0
configure:2549: result: yes
configure:2554: checking whether gcc accepts -g
configure:2584: gcc -c -g  conftest.c >&5
configure:2590: $? = 0
configure:2689: result: yes
configure:2706: checking for gcc option to accept ISO C89
configure:2780: gcc  -c -g -O2  conftest.c >&5
configure:2786: $? = 0
configure:2809: result: none needed
configure:2836: checking gcc version
configure:2848: result: 4
configure:3125: checking for inline
configure:3171: gcc -c -O2  conftest.c >&5
configure:3177: $? = 0
configure:3202: result: inline
configure:3214: checking for __attribute__
configure:3251: gcc -c -g -O2  conftest.c >&5
configure:3257: $? = 0
configure:3283: result: yes
configure:3288: checking whether __attribute__((format)) can be applied to function pointers
configure:3320: gcc -c -g -O2  conftest.c >&5
configure:3326: $? = 0
configure:3349: result: yes
configure:3358: checking how to run the C preprocessor
configure:3398: gcc -E  conftest.c
configure:3404: $? = 0
configure:3435: gcc -E  conftest.c
conftest.c:11: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3441: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define inline inline
| #define HAVE___ATTRIBUTE__ 1
| #define __ATTRIBUTE___FORMAT_OK_FO

Re: [tcpdump-workers] pcap-loop on Ubuntu 10.10

2011-06-15 Thread Guy Harris

On Jun 15, 2011, at 2:11 PM, Jeff Dean wrote:

> I tried installing the current tcpdump (because I needed the recent libpcap), 
> and the configure step failed.  The message was on checking the pcap_loop.  
> My system has libpcap0.8 and libpcap0.8-dev installed.

...but you're not trying to build with either of them and, in fact, the tcpdump 
configure script found what is presumably the recent libpcap that you'd already 
built:

configure:7132: checking for local pcap library
configure:7374: result: ./../libpcap/libpcap.a

However, there's something wrong with that libpcap:

configure:7526: gcc -o conftest -DINET6 -g -O2   conftest.c 
./../libpcap/libpcap.a  -ldnet  >&5
./../libpcap/libpcap.a(gencode.o): In function `pcap_compile':
/home/jsdean/libpcap/./gencode.c:451: undefined reference to `pcap_parse'

Could you show us the build log for the current libpcap?  (The one that's 
presumably in ~/libpcap.)-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.