Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#2427 closed defect (fixed)

dsniff fails to build

Reported by: tuxx@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: anita@…
Port:

Description

---> Building dsniff with target all Error: Target com.apple.build returned: shell command "cd "/Users/dave/darwinports/dports/net/dsniff/work/dsniff-2.3" && make all" returned error 2 Command output: gcc -DBIND_8_COMPAT -D_BSD_SOURCE -DDSNIFF_LIBDIR=\"/opt/local/lib/\" -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/usr/X11R6/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 arg 1 of `libnet_get_hwaddr' from incompatible pointer type ./arpspoof.c:49: too many arguments to function `libnet_get_hwaddr' ./arpspoof.c:60: warning: passing arg 6 of `libnet_build_ethernet' from incompatible pointer type ./arpspoof.c:60: too few arguments to function `libnet_build_ethernet' ./arpspoof.c:64: `ETH_H' undeclared (first use in this function) ./arpspoof.c:64: (Each undeclared identifier is reported only once ./arpspoof.c:64: for each function it appears in.) ./arpspoof.c:64: too few arguments to function `libnet_build_arp' ./arpspoof.c:67: warning: passing arg 1 of `ether_ntoa' from incompatible pointer type ./arpspoof.c:71: warning: passing arg 1 of `ether_ntoa' from incompatible pointer type ./arpspoof.c:77: warning: passing arg 1 of `ether_ntoa' from incompatible pointer type ./arpspoof.c:80: warning: passing arg 1 of `ether_ntoa' from incompatible pointer type ./arpspoof.c: In function `arp_find': ./arpspoof.c:114: warning: passing arg 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 ./arpspoof.c: At top level: ./arpspoof.c:29: storage size of `spoof_mac' isn't known ./arpspoof.c:29: storage size of `target_mac' isn't known make: * [arpspoof.o] Error 1

Change History (4)

comment:1 Changed 20 years ago by toby@…

Cc: anita@… added

comment:2 Changed 20 years ago by toby@…

* Bug 2491 has been marked as a duplicate of this bug. *

comment:3 Changed 20 years ago by toby@…

Resolution: fixed
Status: newclosed

Looks like it's build against libnet 1.1. I've updated the deps to explicitly require libnet. However, you'll probably have to do something like the following:

port -f deactivate libnet11 port -f activate libnet (install dsniff or dsniff-devel) port -f deactivate libnet port -f activate libnet11

Email darwinports@… if you have any questions about this.

comment:4 Changed 19 years ago by snu@…

op_sys: All
Note: See TracTickets for help on using tickets.