tcpdump mailing list archives

Re: HP-UX compiles - redux...


From: Rick Jones <rick.jones2 () hp com>
Date: Wed, 21 Jul 2004 13:24:14 -0700

Guy Harris wrote:
I've checked that in (with the code inside "#ifdef bogus"/"#endif" removed rather than #ifdeffed out), along with some changes that might get rid of the compiler warnings - are there still warnings with version 1.106?

just the inline and yylex stuff, which IIRC have been there for ages.

$ cd libpcap-2004.07.21
$ ./configure
checking build system type... hppa2.0w-hp-hpux11.11
checking host system type... hppa2.0w-hp-hpux11.11
checking target system type... hppa2.0w-hp-hpux11.11
checking for gcc... no
checking for cc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking that cc handles ansi prototypes... yes
checking for inline... __inline
checking for __attribute__... no
checking for u_int8_t using cc... no
checking for u_int16_t using cc... no
checking for u_int32_t using cc... no
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking sys/ioccom.h usability... no
checking sys/ioccom.h presence... no
checking for sys/ioccom.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking ifaddrs.h usability... no
checking ifaddrs.h presence... no
checking for ifaddrs.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for netinet/if_ether.h... no
checking for ether_hostton... no
checking for strerror... yes
checking for strlcpy... no
checking for vsnprintf... yes
checking for snprintf... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... dlpi
checking for getifaddrs... no
checking whether we have SIOCGLIFCONF... no
checking if --enable-ipv6 option is specified... no
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking sys/bufmod.h usability... no
checking sys/bufmod.h presence... no
checking for sys/bufmod.h... no
checking sys/dlpi_ext.h usability... yes
checking sys/dlpi_ext.h presence... yes
checking for sys/dlpi_ext.h... yes
checking for /dev/dlpi device... yes
checking whether we have /proc/net/dev... no
checking whether we have DAG API... no
checking for flex... no
checking for bison... no
checking for capable lex... yes
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member... no
checking if sockaddr_storage struct exists... yes
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... yes
checking if unaligned accesses fail... yes
checking for a BSD-compatible install... /opt/imake/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
$ make
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./pcap-dlpi.c
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./fad-gifc.c
sed -e 's/.*/static const char pcap_version_string[] = "libpcap version &";/' ./VERSION > version.h
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./pcap.c
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./inet.c
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./gencode.c
cc: "gencode.c", line 272: warning 871: "inline" is allowed only for a function.
cc: "gencode.c", line 285: warning 871: "inline" is allowed only for a function.
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./optimize.c
cc: "optimize.c", line 566: warning 871: "inline" is allowed only for a function.
cc: "optimize.c", line 636: warning 871: "inline" is allowed only for a function.
cc: "optimize.c", line 1513: warning 871: "inline" is allowed only for a function.
cc: "optimize.c", line 1678: warning 871: "inline" is allowed only for a function.
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./nametoaddr.c
cc: "nametoaddr.c", line 273: warning 871: "inline" is allowed only for a function.
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./etherent.c
cc: "etherent.c", line 52: warning 871: "inline" is allowed only for a function.
cc: "etherent.c", line 64: warning 871: "inline" is allowed only for a function.
cc: "etherent.c", line 77: warning 871: "inline" is allowed only for a function.
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./savefile.c
        rm -f bpf_filter.c
        ln -s ./bpf/net/bpf_filter.c bpf_filter.c
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c bpf_filter.c
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./bpf_image.c
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c ./bpf_dump.c
        lex -t scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
5986/6000 nodes(%e), 21878/25000 positions(%p), 1292/2000 (%n), 47025 transitions, 3621/4000 packed char classes(%k), 14684/16000 packed transitions(%a), 17206/19000 output slots(%o)
        yacc -d grammar.y
        mv y.tab.c grammar.c
        mv y.tab.h tokdefs.h
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c scanner.c
cc: "pcap-int.h", line 217: warning 573: Parameter list is inconsistent for "yylex".
cc: "scanner.c", line 594: warning 871: "inline" is allowed only for a function.
cc -O -I. -I/usr/local/include -DHAVE_CONFIG_H -D_U_="" -Dyylval=pcap_lval -c grammar.c
        sed -e 's/.*/char pcap_version[] = "&";/' ./VERSION > version.c
        cc -O -I.  -I/usr/local/include -DHAVE_CONFIG_H  -D_U_="" -c version.c
ar rc libpcap.a pcap-dlpi.o fad-gifc.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o bpf_filter.o bpf_image.o bpf_dump.o scanner.o grammar.o version.o
        ranlib libpcap.a

rick
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


Current thread: