Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will not compile with libnet 1.1 #1

Open
pedrovanzella opened this issue Oct 14, 2010 · 4 comments
Open

Will not compile with libnet 1.1 #1

pedrovanzella opened this issue Oct 14, 2010 · 4 comments

Comments

@pedrovanzella
Copy link

make throws:

./arpspoof.c: In function ‘arp_send’:
./arpspoof.c:51: error: too many arguments to function ‘libnet_get_hwaddr’
./arpspoof.c:62: error: too few arguments to function ‘libnet_build_ethernet’
./arpspoof.c:66: error: ‘ETH_H’ undeclared (first use in this function)
./arpspoof.c:66: error: (Each undeclared identifier is reported only once
./arpspoof.c:66: error: for each function it appears in.)
./arpspoof.c:66: error: too few arguments to function ‘libnet_build_arp’
make: *** [arpspoof.o] Error 1

@dethe
Copy link

dethe commented Nov 13, 2010

I'm having this same problem, any work-arounds? I'm on OS X 10.6 using libnet insalled from homebrew.

@franciscolourenco
Copy link

me too.
~/Downloads/dsniff-2.3/make (05-04 17:24)
gcc -g -O2 -D_BSD_SOURCE -DHAVE_SOCKADDR_SA_LEN -DDSNIFF_LIBDIR="/usr/local/lib/" -I. -I/usr/local/include -I/usr/include/pcap -I/usr/local/include -I./missing -c ./missing/dummy.c
gcc -g -O2 -D_BSD_SOURCE -DHAVE_SOCKADDR_SA_LEN -DDSNIFF_LIBDIR="/usr/local/lib/" -I. -I/usr/local/include -I/usr/include/pcap -I/usr/local/include -I./missing -c ./missing/md5.c
ar -cr libmissing.a dummy.o md5.o
/usr/bin/ranlib: file: libmissing.a(dummy.o) has no symbols
ranlib libmissing.a
ranlib: file: libmissing.a(dummy.o) has no symbols
gcc -g -O2 -D_BSD_SOURCE -DHAVE_SOCKADDR_SA_LEN -DDSNIFF_LIBDIR="/usr/local/lib/" -I. -I/usr/local/include -I/usr/include/pcap -I/usr/local/include -I./missing -c ./arpspoof.c
./arpspoof.c:25: warning: ‘struct ether_addr’ declared inside parameter list
./arpspoof.c:25: warning: its scope is only this definition or declaration, which is probably not what you want
./arpspoof.c:26: warning: ‘struct ether_addr’ declared inside parameter list
./arpspoof.c: In function ‘arp_send’:
./arpspoof.c:49: warning: passing argument 1 of ‘libnet_get_hwaddr’ from incompatible pointer type
./arpspoof.c:49: error: too many arguments to function ‘libnet_get_hwaddr’
./arpspoof.c:60: warning: passing argument 6 of ‘libnet_build_ethernet’ from incompatible pointer type
./arpspoof.c:60: error: too few arguments to function ‘libnet_build_ethernet’
./arpspoof.c:64: error: ‘ETH_H’ undeclared (first use in this function)
./arpspoof.c:64: error: (Each undeclared identifier is reported only once
./arpspoof.c:64: error: for each function it appears in.)
./arpspoof.c:64: error: too few arguments to function ‘libnet_build_arp’
./arpspoof.c:67: warning: passing argument 1 of ‘ether_ntoa’ from incompatible pointer type
./arpspoof.c:71: warning: passing argument 1 of ‘ether_ntoa’ from incompatible pointer type
./arpspoof.c:73: warning: format ‘%s’ expects type ‘char ’, but argument 4 has type ‘int’
./arpspoof.c:73: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
./arpspoof.c:77: warning: passing argument 1 of ‘ether_ntoa’ from incompatible pointer type
./arpspoof.c:78: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
./arpspoof.c:80: warning: passing argument 1 of ‘ether_ntoa’ from incompatible pointer type
./arpspoof.c: In function ‘arp_find’:
./arpspoof.c:114: warning: passing argument 2 of ‘arp_cache_lookup’ from incompatible pointer type
./arpspoof.c: In function ‘main’:
./arpspoof.c:181: warning: assignment makes pointer from integer without a cast
make: *
* [arpspoof.o] Error 1

@t-mdo
Copy link

t-mdo commented Apr 18, 2016

Same here.. No solution yet ?

@defensahacker
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants