Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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)

Portfile-dsniff-devel.diff (1.3 KB) - added by hsivank@… 15 years ago.
patch-arpspoof.c.diff (4.6 KB) - added by hsivank@… 15 years ago.
patch-dnsspoof.c.diff (4.1 KB) - added by hsivank@… 15 years ago.
patch-filesnarf.c.diff (733 bytes) - added by hsivank@… 15 years ago.
patch-macof.c.diff (3.3 KB) - added by hsivank@… 15 years ago.
patch-pcaputil.c (215 bytes) - added by hsivank@… 15 years ago.
patch-record.c.diff (465 bytes) - added by hsivank@… 15 years ago.
patch-sshmitm.c.diff (340 bytes) - added by hsivank@… 15 years ago.
patch-tcp_raw.c.diff (588 bytes) - added by hsivank@… 15 years ago.
patch-tcp_raw.h.diff (426 bytes) - added by hsivank@… 15 years ago.
patch-tcpkill.c.diff (2.8 KB) - added by hsivank@… 15 years ago.
patch-tcpnice.c.diff (5.8 KB) - added by hsivank@… 15 years ago.
patch-trigger.c.diff (647 bytes) - added by hsivank@… 15 years ago.
patch-trigger.h.diff (658 bytes) - added by hsivank@… 15 years ago.
patch-urlsnarf.c.diff (634 bytes) - added by hsivank@… 15 years ago.
patch-webmitm.c.diff (624 bytes) - added by hsivank@… 15 years ago.
patch-webspy.c.diff (627 bytes) - added by hsivank@… 15 years ago.
Portfile-dnsiff-devel.diff (1.6 KB) - added by hsivank@… 15 years ago.
update libnet to libnet11
Portfile-libnids.diff (658 bytes) - added by hsivank@… 15 years ago.
update libnet for libnids (to libnet11)

Download all attachments as: .zip

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@…

Sniff, nobody wants to review my ticket :-(

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 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: newassigned

comment:4 Changed 15 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: assignedclosed

Committed revision r57540. Thanks! Note: I removed the direct dependency on libnet11 because it depends on libnids which now requires libnet11.

comment:5 in reply to:  2 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 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 in reply to:  6 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 Leoparddsniff-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! :)

Note: See TracTickets for help on using tickets.