Opened 15 years ago

Last modified 15 years ago

#21225 closed defect

dnsiff-devel (2.4b1) fails to build on Snow Leopard — at Initial Version

Reported by: hsivank@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port: dsniff-devel

Description

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

Change History (17)

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
Note: See TracTickets for help on using tickets.