Menu

#24 ngrep 1.44 doesn't compile on Mac OS X.4

closed-works-for-me
None
5
2015-01-02
2006-10-05
No

drmac-mac:/usr/src/ngrep-1.44 root# ./configure
--prefix=/usr

Configuring System ...

checking build system type... powerpc-apple-darwin8.6.0
checking host system type... powerpc-apple-darwin8.6.0
checking target system type... powerpc-apple-darwin8.6.0
checking for gcc... gcc
checking for C compiler default output file name... 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... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes

Configuring GNU Regular Expression library ...

loading cache ./config.cache
checking host system type... powerpc-apple-darwin8.6.0
checking target system type... powerpc-apple-darwin8.6.0
checking build system type... powerpc-apple-darwin8.6.0
checking for gcc... (cached) 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... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached)
/usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking for getmntent in -lseq... (cached) no
checking for POSIXized ISC... no
checking for minix/config.h... (cached) no
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for working const... (cached) yes
checking for prefix by checking for gcc... (cached)
/usr/bin/gcc
creating ./config.status
creating Makefile
creating doc/Makefile
creating test/Makefile

Configuring Network Grep (ngrep) ...

checking for a complete set of pcap headers... found
/usr/include
checking for BPF include path... pcap-bpf.h
checking for DLT_LINUX_SLL in bpf.h... yes
checking for DLT_LOOP in bpf.h... yes
checking for DLT_IEEE802_11 in bpf.h... yes
checking for DLT_RAW in bpf.h... yes
checking for pcap_open_live in -lpcap... yes
checking for pcap_restart in -lpcap... yes

CONFIG: ipv6 support disabled
CONFIG: privilege dropping enabled, using "nobody"
CONFIG: using GNU regex library

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
drmac-mac:/usr/src/ngrep-1.44 root# make
make[1]: `regex.o' is up to date.
gcc -g -O2 -DMACOSX -DHAVE_CONFIG_H -D_BSD_SOURCE=1
-D__FAVOR_BSD=1 -I. -I/usr/include -g -c ngrep.c
In file included from ngrep.c:98:
ngrep.h:82: error: parse error before "uint8_t"
ngrep.h:86: error: parse error before "uint32_t"
ngrep.h:87: error: parse error before "uint32_t"
ngrep.h:88: error: parse error before "uint32_t"
ngrep.h:93: error: parse error before "uint32_t"
ngrep.h:94: error: parse error before "uint32_t"
ngrep.h:95: error: parse error before "uint32_t"
ngrep.h:103: error: parse error before "strishex"
ngrep.h:103: warning: data definition has no type or
storage class
ngrep.c:107: error: parse error before "snaplen"
ngrep.c:107: warning: data definition has no type or
storage class
ngrep.c:108: error: parse error before "match_after"
ngrep.c:108: warning: data definition has no type or
storage class
ngrep.c:110: error: parse error before "re_match_word"
ngrep.c:110: warning: data definition has no type or
storage class
ngrep.c:111: error: parse error before "show_empty"
ngrep.c:111: warning: data definition has no type or
storage class
ngrep.c:112: error: parse error before "invert_match"
ngrep.c:112: warning: data definition has no type or
storage class
ngrep.c:113: error: parse error before "live_read"
ngrep.c:113: warning: data definition has no type or
storage class
ngrep.c:114: error: parse error before "dont_dropprivs"
ngrep.c:114: warning: data definition has no type or
storage class
ngrep.c:142: error: parse error before "match_len"
ngrep.c:142: warning: data definition has no type or
storage class
ngrep.c:146: error: parse error before "uint32_t"
ngrep.c:154: error: parse error before "link_offset"
ngrep.c:154: warning: data definition has no type or
storage class
ngrep.c:179: error: parse error before "ws_row"
ngrep.c:179: warning: data definition has no type or
storage class
ngrep.c: In function 'main':
ngrep.c:419: error: 'uint32_t' undeclared (first use in
this function)
ngrep.c:419: error: (Each undeclared identifier is
reported only once
ngrep.c:419: error: for each function it appears in.)
ngrep.c:419: error: parse error before "i"
ngrep.c:428: error: 'len' undeclared (first use in this
function)
ngrep.c:428: error: parse error before "strlen"
ngrep.c:442: error: 'i' undeclared (first use in this
function)
ngrep.c:443: error: 'n' undeclared (first use in this
function)
ngrep.c:469: error: parse error before "i"
ngrep.c: In function 'process':
ngrep.c:607: error: 'uint32_t' undeclared (first use in
this function)
ngrep.c:607: error: parse error before "ip_ver"
ngrep.c:609: error: 'uint8_t' undeclared (first use in
this function)
ngrep.c:614: error: 'uint16_t' undeclared (first use in
this function)
ngrep.c:621: error: parse error before "len"
ngrep.c:623: error: 'ip_ver' undeclared (first use in
this function)
ngrep.c:631: error: 'ip_hl' undeclared (first use in
this function)
ngrep.c:633: error: 'ip_proto' undeclared (first use in
this function)
ngrep.c:634: error: 'ip_off' undeclared (first use in
this function)
ngrep.c:636: error: 'fragmented' undeclared (first use
in this function)
ngrep.c:637: error: 'frag_offset' undeclared (first use
in this function)
ngrep.c:638: error: 'frag_id' undeclared (first use in
this function)
ngrep.c:676: error: parse error before "tcphdr_offset"
ngrep.c:678: error: 'tcphdr_offset' undeclared (first
use in this function)
ngrep.c:682: error: 'len' undeclared (first use in this
function)
ngrep.c:705: error: parse error before "udphdr_offset"
ngrep.c:707: error: 'udphdr_offset' undeclared (first
use in this function)
ngrep.c:738: error: parse error before "icmphdr_offset"
ngrep.c:740: error: 'icmphdr_offset' undeclared (first
use in this function)
ngrep.c:772: error: parse error before "igmphdr_offset"
ngrep.c:774: error: 'igmphdr_offset' undeclared (first
use in this function)
ngrep.c: At top level:
ngrep.c:808: error: parse error before "uint8_t"
ngrep.c: In function 'dump_packet':
ngrep.c:812: error: 'len' undeclared (first use in this
function)
ngrep.c:818: error: 'data' undeclared (first use in
this function)
ngrep.c:822: error: 'h' undeclared (first use in this
function)
ngrep.c:827: error: 'proto' undeclared (first use in
this function)
ngrep.c:847: error: 'sport' undeclared (first use in
this function)
ngrep.c:847: error: 'dport' undeclared (first use in
this function)
ngrep.c:847: error: 'hdr_offset' undeclared (first use
in this function)
ngrep.c:847: error: 'frag_offset' undeclared (first use
in this function)
ngrep.c:849: error: 'ip_src' undeclared (first use in
this function)
ngrep.c:849: error: 'ip_dst' undeclared (first use in
this function)
ngrep.c:855: error: 'flags' undeclared (first use in
this function)
ngrep.c:873: error: 'frag' undeclared (first use in
this function)
ngrep.c:875: error: 'frag_id' undeclared (first use in
this function)
ngrep.c:886: error: 'p' undeclared (first use in this
function)
ngrep.c: At top level:
ngrep.c:889: error: parse error before "uint32_t"
ngrep.c: In function 're_match_func':
ngrep.c:904: error: 'data' undeclared (first use in
this function)
ngrep.c:904: error: 'len' undeclared (first use in this
function)
ngrep.c: At top level:
ngrep.c:923: error: parse error before "uint32_t"
ngrep.c: In function 'bin_match_func':
ngrep.c:924: error: 'len' undeclared (first use in this
function)
ngrep.c:931: error: 'data' undeclared (first use in
this function)
ngrep.c: At top level:
ngrep.c:945: error: parse error before "uint32_t"
ngrep.c:952: error: parse error before "uint32_t"
ngrep.c: In function 'dump_byline':
ngrep.c:953: error: 'len' undeclared (first use in this
function)
ngrep.c:954: error: 'data' undeclared (first use in
this function)
ngrep.c: At top level:
ngrep.c:965: error: parse error before "uint32_t"
ngrep.c: In function 'dump_unwrapped':
ngrep.c:966: error: 'len' undeclared (first use in this
function)
ngrep.c:967: error: 'data' undeclared (first use in
this function)
ngrep.c: At top level:
ngrep.c:978: error: parse error before "uint32_t"
ngrep.c: In function 'dump_formatted':
ngrep.c:979: error: 'len' undeclared (first use in this
function)
ngrep.c:980: error: 'data' undeclared (first use in
this function)
ngrep.c:981: error: 'uint8_t' undeclared (first use in
this function)
ngrep.c:981: error: parse error before "width"
ngrep.c:982: error: 'uint32_t' undeclared (first use in
this function)
ngrep.c:985: error: 'i' undeclared (first use in this
function)
ngrep.c:989: error: 'j' undeclared (first use in this
function)
ngrep.c:989: error: 'width' undeclared (first use in
this function)
ngrep.c: In function 'get_filter_from_string':
ngrep.c:1013: error: 'uint32_t' undeclared (first use
in this function)
ngrep.c:1013: error: parse error before "len"
ngrep.c:1018: error: 'len' undeclared (first use in
this function)
ngrep.c:1018: error: parse error before "strlen"
ngrep.c: In function 'get_filter_from_argv':
ngrep.c:1037: error: 'uint32_t' undeclared (first use
in this function)
ngrep.c:1037: error: parse error before "len"
ngrep.c:1043: error: 'len' undeclared (first use in
this function)
ngrep.c:1043: error: parse error before "strlen"
ngrep.c: At top level:
ngrep.c:1067: error: parse error before "strishex"
ngrep.c: In function 'print_time_absolute':
ngrep.c:1088: error: 'uint32_t' undeclared (first use
in this function)
ngrep.c:1088: error: parse error before "h"
ngrep.c: In function 'print_time_diff':
ngrep.c:1092: error: 'uint32_t' undeclared (first use
in this function)
ngrep.c:1092: error: parse error before "secs"
ngrep.c:1094: error: 'secs' undeclared (first use in
this function)
ngrep.c:1096: error: 'usecs' undeclared (first use in
this function)
ngrep.c: In function 'dump_delay_proc':
ngrep.c:1118: error: 'uint32_t' undeclared (first use
in this function)
ngrep.c:1118: error: parse error before "secs"
ngrep.c:1120: error: 'secs' undeclared (first use in
this function)
ngrep.c:1122: error: 'usecs' undeclared (first use in
this function)
make: *** [ngrep.o] Error 1
drmac-mac:/usr/src/ngrep-1.44 root#

Discussion

  • Matthew Boehm

    Matthew Boehm - 2006-10-05
    • summary: ngrep 1.44 doesn't compile on Mac OS.4 --> ngrep 1.44 doesn't compile on Mac OS X.4
     
  • Matthew Boehm

    Matthew Boehm - 2006-10-05

    Logged In: YES
    user_id=496768

    FYI. 1.43 compiled fine on Mac OS X.4

     
  • Jordan Ritter

    Jordan Ritter - 2006-11-28

    Logged In: YES
    user_id=50338
    Originator: NO

    Thank you for the bug report.

    I was unable to reproduce this error on several Mac OSX machines.

    Please re-attempt with the new version 1.45 release, and re-open if the problem persists.

     
  • Jordan Ritter

    Jordan Ritter - 2006-11-28
    • assigned_to: nobody --> jpr5
    • status: open --> closed-works-for-me
     

Log in to post a comment.