[MacPorts] #21225: dnsiff-devel (2.4b1) fails to build on Snow Leopard

MacPorts noreply at macports.org
Tue Sep 8 16:51:24 PDT 2009


#21225: dnsiff-devel (2.4b1) fails to build on Snow Leopard
-------------------------------+--------------------------------------------
 Reporter:  hsivank@…          |       Owner:  macports-tickets@…                   
     Type:  defect             |      Status:  new                                  
 Priority:  Normal             |   Milestone:                                       
Component:  ports              |     Version:  1.8.0                                
 Keywords:                     |        Port:  dsniff-devel                         
-------------------------------+--------------------------------------------
 {{{
 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

-- 
Ticket URL: <http://trac.macports.org/ticket/21225>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list