Howdy -
I am not a compiler wizard, so I come to the mountain, seeking help:
Installing Labrea, but need libpcap and libnet installed. Labrea does not support thenew libnet, so I am running an older recommended one.
LaBrea2_4/
Libnet-1.0.2a/
libpcap-0.7.2/
Libnet and libpcap seem to install just fine.
But now I get this:
gcc -Wall `libnet-config --defines` -O6 -funroll-loops -frerun-cse-after-loop -finline-functions -mcpu=i686 -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/pcap -c -o LaBrea.o LaBrea.c
In file included from LaBrea.c:47:
GoDaemon.c: In function `GoDaemon':
GoDaemon.c:44: warning: implicit declaration of function `open'
GoDaemon.c:44: `O_RDWR' undeclared (first use in this function)
GoDaemon.c:44: (Each undeclared identifier is reported only once
GoDaemon.c:44: for each function it appears in.)
LaBrea.c: In function `main':
LaBrea.c:105: warning: implicit declaration of function `libnet_seed_prand'
LaBrea.c:193: warning: implicit declaration of function `atoi'
LaBrea.c:394: warning: implicit declaration of function `libnet_name_resolve'
LaBrea.c:405: warning: implicit declaration of function `ntohl'
LaBrea.c:444: warning: implicit declaration of function `libnet_open_link_interface'
LaBrea.c:444: warning: assignment makes pointer from integer without a cast
LaBrea.c:448: dereferencing pointer to incomplete type
LaBrea.c:466: warning: implicit declaration of function `libnet_get_prand'
LaBrea.c:466: `PRu32' undeclared (first use in this function)
LaBrea.c:471: warning: implicit declaration of function `libnet_get_hwaddr'
LaBrea.c:479: warning: implicit declaration of function `libnet_get_ipaddr'
LaBrea.c:483: warning: implicit declaration of function `htonl'
make: *** [LaBrea.o] Error 1
root@pinux:~/LaBrea2_4#
Any idea? I know enough to suspect my library installations, but can't see where I may have gone wrong...
Thanks...
