arping.c:1277:37: error: ‘BIOCIMMEDIATE’ undeclared (first use in this function)

177 views
Skip to first unread message

Synthead

unread,
Nov 28, 2011, 12:42:19 PM11/28/11
to Synscan
Any idea about this error? This is on Arch Linux, up-to-date.

$ ./configure --prefix=/usr
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of
Makefiles... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for libnet_name_resolve in -lnet... no
checking for libnet_init in -lnet... yes
checking for pcap_open_live in -lpcap... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking libnet.h usability... yes
checking libnet.h presence... yes
checking for libnet.h... yes
checking win32/libnet.h usability... no
checking win32/libnet.h presence... no
checking for win32/libnet.h... no
checking net/bpf.h usability... yes
checking net/bpf.h presence... yes
checking for net/bpf.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working volatile... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking whether gcc needs -traditional... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval
*
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for memset... yes
checking for select... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

arping version 2.09
Prefix.........: /usr
Debug Build....:
C Compiler.....: gcc -g -O2
Linker.........: -lpcap -lnet -lnsl


$ make
make all-recursive
make[1]: Entering directory `/home/max/aur/arping/src/arping-2.09'
Making all in src
make[2]: Entering directory `/home/max/aur/arping/src/arping-2.09/src'
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT arping.o -MD -MP -MF .deps/
arping.Tpo -c -o arping.o arping.c
arping.c: In function ‘main’:
arping.c:1277:37: error: ‘BIOCIMMEDIATE’ undeclared (first use in this
function)
arping.c:1277:37: note: each undeclared identifier is reported only
once for each function it appears in
make[2]: *** [arping.o] Error 1
make[2]: Leaving directory `/home/max/aur/arping/src/arping-2.09/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/max/aur/arping/src/arping-2.09'
make: *** [all] Error 2

Thomas Habets

unread,
Nov 28, 2011, 2:10:40 PM11/28/11
to Synthead, syn...@googlegroups.com
On 28 November 2011 17:42, Synthead <synt...@gmail.com> wrote:
> checking net/bpf.h usability... yes
> checking net/bpf.h presence... yes
[...]

> arping.c:1277:37: error: ‘BIOCIMMEDIATE’ undeclared (first use in this
> function)

Huh.

Could you try replacing
#if HAVE_NET_BPF_H
with:
#ifdef BIOCIMMEDIATE
on line ~1221 of src/arping.c ?

That should fix it right up.

That looks more right. I'll patch it on my side too.

It would also be nice if you could test the git version:
git clone git://github.com/ThomasHabets/arping.git

It doesn't have this fix yet, so change that before trying to compile.

Thanks.

--
typedef struct me_s {
 char name[]      = { "Thomas Habets" };
 char email[]     = { "tho...@habets.pp.se" };
 char kernel[]    = { "Linux" };
 char *pgpKey[]   = { "http://www.habets.pp.se/pubkey.txt" };
 char pgp[] = { "A8A3 D1DD 4AE0 8467 7FDE  0945 286A E90A AD48 E854" };
 char coolcmd[]   = { "echo '. ./_&. ./_'>_;. ./_" };
} me_t;

Thomas Habets

unread,
Dec 1, 2011, 7:58:15 AM12/1/11
to synscan, Max Pray
On 1 December 2011 12:32, Max Pray <synt...@gmail.com> wrote:
> Hey, that seemed to do the trick just fine!  I haven't tested the git
> version yet, but I patched the 2.09 sources exactly like you did, so I
> wouldn't imagine how it wouldn't work.

Thanks. I pushed the fix to git, and it'll be in 2.10 which I aim to
release before the end of the month.

Just need to get a bunch of test systems up and running.

Reply all
Reply to author
Forward
0 new messages