tcpdump mailing list archives
Re: Compilation on AIX...
From: Guy Harris <guy () alum mit edu>
Date: Fri, 27 Nov 2009 10:24:01 -0800
On Nov 27, 2009, at 7:31 AM, Jean-Yves LENHOF wrote:
To resolve it, I've changed the first line from #!/bin/sh to #!/sysapp/opensource/bin/bash (seems to be a bashism in the configure file)
Yes (not an explicit bashism, just a bug that happens to work on bash). Fixed in the main Git branch.
And compiling failed immediately : #makegcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c./pcap-bpf.c ./pcap-bpf.c:1025: error: static declaration of 'bpf_load' follows non-static declaration./pcap-bpf.c:415: error: previous implicit declaration of 'bpf_load' washere make: 1254-004 The error code from the last command is 1.
Also fixed in the main Git branch.
Have you an idea of how to make it to compile cleanly ?
The same way it's fixed in the main Git branch - declare bpf_load() as static:
static int bpf_load(char *errbuf); before the first reference to it. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Compilation on AIX... Jean-Yves LENHOF (Nov 27)
- Re: Compilation on AIX... Guy Harris (Nov 27)