tcpdump mailing list archives
Re: Minor change to compile in FreeBSD 4.7
From: Hannes Gredler <hannes () juniper net>
Date: Fri, 10 Jan 2003 20:03:47 +0100
cody, would you mind pulling a more recent version of libpcap ? 0.4 is fairly outdated; /hannes On Thu, Jan 09, 2003 at 01:49:53PM -0800, Cody Ritts wrote: | Hello, this is the very first time I have ever fixed anything, so please | forgive me if I am wrong or way out of line. I also apologize because I | don't know exactly what to tell you, so this is what I think is pertinent. | And if time permits, please feel free to criticize me so that I may learn. | | Thank you, | | Cody Ritts | | | #/usr/local/src/libpcap-0.4> uname -a | FreeBSD brokersalliance.com 4.7-RELEASE FreeBSD 4.7-RELEASE #0: | | #/usr/local/src/libpcap-0.4> ./configure | creating cache ./config.cache | checking host system type... i386-unknown-freebsd4.7 | checking target system type... i386-unknown-freebsd4.7 | checking build system type... i386-unknown-freebsd4.7 | checking for gcc... gcc | checking whether the C compiler (gcc ) works... yes | checking whether the C compiler (gcc ) is a cross-compiler... no | checking whether we are using GNU C... yes | checking whether gcc accepts -g... yes | checking gcc version... 2 | checking how to run the C preprocessor... gcc -E | checking for malloc.h... no | checking for sys/ioccom.h... yes | checking for sys/sockio.h... yes | checking for ANSI ioctl definitions... yes | checking for ether_hostton... yes | checking for strerror... yes | checking packet capture type... bpf | checking for flex... flex | checking for flex 2.4 or higher... yes | checking for bison... bison | checking for ranlib... ranlib | checking if sockaddr struct has sa_len member... yes | checking for a BSD compatible install... /usr/bin/install -c | updating cache ./config.cache | creating ./config.status | creating Makefile | #/usr/local/src/libpcap-0.4> make | gcc -O2 -I. -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 | -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE | gcc -O2 -I. -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 | -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE | gcc -O2 -I. -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 | -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE | gcc -O2 -I. -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 | -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE | gcc -O2 -I. -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 | -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE | gcc -O2 -I. -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 | -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE | ./nametoaddr.c:334: conflicting types for `ether_hostton' | /usr/include/net/ethernet.h:126: previous declaration of `ether_hostton' | *** Error code 1 | | Stop in /usr/local/src/libpcap-0.4. | | | #/usr/local/src/libpcap-0.4> wc -l /usr/include/net/ethernet.h | 134 /usr/include/net/ethernet.h | #/usr/local/src/libpcap-0.4> tail -14 /usr/include/net/ethernet.h | /* | * Ethernet address conversion/parsing routines. | */ | __BEGIN_DECLS | struct ether_addr *ether_aton __P((const char *)); | int ether_hostton __P((const char *, struct ether_addr *)); | int ether_line __P((const char *, struct ether_addr *, char *)); | char *ether_ntoa __P((const struct ether_addr *)); | int ether_ntohost __P((char *, const struct ether_addr *)); | __END_DECLS | | #endif /* !_KERNEL */ | | #endif /* !_NET_ETHERNET_H_ */ | #/usr/local/src/libpcap-0.4> | | | | To fix the problem, I edited ./nametoaddr.c and commented out lines 333-335 | | So that: | | #/usr/local/src/libpcap-0.4> head -335 ./nametoaddr.c | tail -3 | /*#ifndef sgi | extern int ether_hostton(char *, struct ether_addr *); | #endif*/ | #/usr/local/src/libpcap-0.4> | | - | This is the TCPDUMP workers list. It is archived at | http://www.tcpdump.org/lists/workers/index.html | To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe
Current thread:
- Minor change to compile in FreeBSD 4.7 Cody Ritts (Jan 10)
- Re: Minor change to compile in FreeBSD 4.7 Hannes Gredler (Jan 10)
- Re: Minor change to compile in FreeBSD 4.7 Guy Harris (Jan 10)