#21225 closed defect (fixed)
dsniff-devel (2.4b1) fails to build on Snow Leopard
Reported by: | hsivank@… | Owned by: | mf2k (Frank Schima) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | dsniff-devel |
Description (last modified by mf2k (Frank Schima))
sudo port install dsniff-devel ---> Computing dependencies for dsniff-devel ---> Fetching dsniff-devel ---> Attempting to fetch dsniff-2.4b1.tar.gz from http://arn.se.distfiles.macports.org/dsniff-devel ---> Verifying checksum(s) for dsniff-devel ---> Extracting dsniff-devel ---> Applying patches to dsniff-devel ---> Configuring dsniff-devel ---> Building dsniff-devel Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_ports.git_dports_net_dsniff-devel/work/dsniff-2.4" && /usr/bin/make -j2 all " returned error 2 Command output: ccache /usr/bin/gcc-4.2 -pipe -O2 -DBIND_8_COMPAT -arch x86_64 -D_BSD_SOURCE -DHAVE_SOCKADDR_SA_LEN -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DDSNIFF_LIBDIR=\"/opt/local/lib/\" -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I./missing -c ./missing/dummy.c ccache /usr/bin/gcc-4.2 -pipe -O2 -DBIND_8_COMPAT -arch x86_64 -D_BSD_SOURCE -DHAVE_SOCKADDR_SA_LEN -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DDSNIFF_LIBDIR=\"/opt/local/lib/\" -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I./missing -c ./missing/md5.c ccache /usr/bin/gcc-4.2 -pipe -O2 -DBIND_8_COMPAT -arch x86_64 -D_BSD_SOURCE -DHAVE_SOCKADDR_SA_LEN -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DDSNIFF_LIBDIR=\"/opt/local/lib/\" -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I./missing -c ./arpspoof.c In file included from ./arpspoof.c:26: ./arp.h:14: warning: 'struct ether_addr' declared inside parameter list ./arp.h:14: warning: its scope is only this definition or declaration, which is probably not what you want ./arpspoof.c:28: warning: 'struct ether_addr' declared inside parameter list ./arpspoof.c: In function 'arp_send': ./arpspoof.c:51: warning: passing argument 1 of 'libnet_get_hwaddr' from incompatible pointer type ./arpspoof.c:51: error: too many arguments to function 'libnet_get_hwaddr' ./arpspoof.c:62: warning: passing argument 6 of 'libnet_build_ethernet' from incompatible pointer type ./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' ./arpspoof.c:69: warning: passing argument 1 of 'ether_ntoa' from incompatible pointer type ./arpspoof.c:73: warning: passing argument 1 of 'ether_ntoa' from incompatible pointer type ./arpspoof.c:75: warning: format '%s' expects type 'char *', but argument 4 has type 'int' ./arpspoof.c:75: warning: format '%s' expects type 'char *', but argument 5 has type 'int' ./arpspoof.c:79: warning: passing argument 1 of 'ether_ntoa' from incompatible pointer type ./arpspoof.c:80: warning: format '%s' expects type 'char *', but argument 4 has type 'int' ./arpspoof.c:82: warning: passing argument 1 of 'ether_ntoa' from incompatible pointer type ./arpspoof.c: In function 'arp_find': ./arpspoof.c:116: warning: passing argument 2 of 'arp_cache_lookup' from incompatible pointer type ./arpspoof.c: In function 'main': ./arpspoof.c:185: warning: assignment makes pointer from integer without a cast make: *** [arpspoof.o] Error 1 make: *** Waiting for unfinished jobs.... Error: Status 1 encountered during processing.
It seems that dsniff need to be patched to work with libnet11 ... Attached some patches to solve the problem
Attachments (19)
Change History (28)
Changed 15 years ago by hsivank@…
Attachment: | Portfile-dsniff-devel.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-arpspoof.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-dnsspoof.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-filesnarf.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-macof.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-pcaputil.c added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-record.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-sshmitm.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-tcp_raw.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-tcp_raw.h.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-tcpkill.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-tcpnice.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-trigger.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-trigger.h.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-urlsnarf.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-webmitm.c.diff added |
---|
Changed 15 years ago by hsivank@…
Attachment: | patch-webspy.c.diff added |
---|
comment:1 Changed 15 years ago by hsivank@…
Changed 15 years ago by hsivank@…
Attachment: | Portfile-dnsiff-devel.diff added |
---|
update libnet to libnet11
Changed 15 years ago by hsivank@…
Attachment: | Portfile-libnids.diff added |
---|
update libnet for libnids (to libnet11)
comment:2 follow-up: 5 Changed 15 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
libnids updated in r57538. This really should have been in a separate ticket. Also, it looks like the libnet/libnet11 issue is a mess because the ports conflict and a bunch of ports still rely on the older libnet. Can they not be switched to use libnet11?
comment:3 Changed 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to macsforever2000@… |
---|---|
Status: | new → assigned |
comment:4 Changed 15 years ago by mf2k (Frank Schima)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Committed revision r57540. Thanks! Note: I removed the direct dependency on libnet11 because it depends on libnids which now requires libnet11.
comment:5 Changed 15 years ago by hsivank@…
Replying to macsforever2000@…:
Also, it looks like the libnet/libnet11 issue is a mess because the ports conflict and a bunch of ports still rely on the older libnet. Can they not be switched to use libnet11?
You're right, this a list of ports which depend on old libnet :
- angst
- cdpd
- dsniff
- fragrouter
- nemesis
- packetforward
I don't know if we can easily switch to libnet11 ...
comment:6 follow-up: 7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
Where did all these patches come from -- upstream or elsewhere? If elsewhere, have they been sent upstream?
comment:7 Changed 15 years ago by hsivank@…
Replying to ryandesign@…:
Where did all these patches come from -- upstream or elsewhere? If elsewhere, have they been sent upstream?
No respond from the mailing list of dsniff since a long time ...
comment:8 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | dnsiff-devel (2.4b1) fails to build on Snow Leopard → dsniff-devel (2.4b1) fails to build on Snow Leopard |
---|
comment:9 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Oh, ok, I see. 2.4b1 is from 2002. So I guess the software is dead. Patch it all you like! :)
Sniff, nobody wants to review my ticket :-(