LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2003, 09:08 PM   #1
diminutive
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Rep: Reputation: 0
Compiling dsniff


Hello,

I have been attempting to compile dsniff-2.3 on a Slackware 8.1 system. Unfortunately, "make" dies with the following error:

-----------------------------------------------------------------------------------
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/lib/\" -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/X11R6/include -I./missing -c ./arpspoof.c
In file included from /usr/include/libnet.h:57,
from ./arpspoof.c:20:
/usr/include/netinet/in.h:133: warning: redefinition of `u_int32_t'
/usr/include/sys/types.h:198: warning: `u_int32_t' previously declared here
./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: In function `main':
./arpspoof.c:181: warning: assignment makes pointer from integer without a cast
make: *** [arpspoof.o] Error 1
-----------------------------------------------------------------------------------

(To clarify, I used "configure --prefix=/usr")
I have been googling for a solution, but haven't found anything. There
are similar errors (all beginning with u_int32_t declaration problems) with
most of the programs included in the dsniff package.

TIA,
-- Peter Heatwole
"Murphy was just a well known pessimist."
 
Old 01-04-2003, 02:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What I don't understand is why it's breaking,
since there are only warnings ...

Cheers,
Tink
 
Old 01-04-2003, 09:32 PM   #3
diminutive
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Original Poster
Rep: Reputation: 0
I went searching and noticed that the current version of libnet (the 1.1.x series) does not define "ETH_H". So I removed the new version and installed the 1.0.2a release (the obsolete, unsupported version according to the website). Now I can at least compile most of the programs, but for the rest the linker complains that it can't find "libnet_init" and "libnet_write". Perhaps it is expecting an even older version of libnet?

For now I'm going to try the beta 2.4b1 beta of dnsiff.

-- Peter Heatwole
"Murphy was just a well known pessimist."
 
Old 07-17-2003, 08:20 AM   #4
himpor
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
am facing the problem .......while compiling dsniff

Please suggest the solution

make -f Makefile
gcc -o dsniff asn1.o base64.o buf.o hex.o magic.o mount.o pcaputil.o rpc.o tcp_raw.o trigger.o record.o dsniff.o decode.o decode_aim.o decode_citrix.o decode_cvs.o decode_ftp.o decode_hex.o decode_http.o decode_icq.o decode_imap.o decode_irc.o decode_ldap.o decode_mmxp.o decode_mountd.o decode_napster.o decode_nntp.o
decode_oracle.o decode_ospf.o decode_pcanywhere.o decode_pop.o decode_portmap.o
decode_postgresql.o decode_pptp.o decode_rip.o decode_rlogin.o decode_smb.o decode_smtp.o decode_sniffer.o decode_snmp.o decode_socks.o decode_tds.o decode_telnet.o decode_vrrp.o decode_yp.o decode_x11.o -lresolv -lnsl -lrpcsvc -L. -lmissing -L/usr/local/lib -lnids -L/usr/local/lib -lpcap -lnet -ldb -lssl -lcrypto
/usr/local/lib/libnids.a(killtcp.o): In function `raw_init':
/home/tool/libnids-1.17/src/killtcp.c:55: undefined reference to `libnet_init'
/usr/local/lib/libnids.a(killtcp.o): In function `nids_killtcp':
/home/tool/libnids-1.17/src/killtcp.c:78: undefined reference to `libnet_write'
/home/tool/libnids-1.17/src/killtcp.c:87: undefined reference to `libnet_write'
collect2: ld returned 1 exit status
 
Old 07-17-2003, 08:21 AM   #5
himpor
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
am facing the problem .......while compiling dsniff

Please suggest the solution

himanshu418@yahoo.com

make -f Makefile
gcc -o dsniff asn1.o base64.o buf.o hex.o magic.o mount.o pcaputil.o rpc.o tcp_raw.o trigger.o record.o dsniff.o decode.o decode_aim.o decode_citrix.o decode_cvs.o decode_ftp.o decode_hex.o decode_http.o decode_icq.o decode_imap.o decode_irc.o decode_ldap.o decode_mmxp.o decode_mountd.o decode_napster.o decode_nntp.o
decode_oracle.o decode_ospf.o decode_pcanywhere.o decode_pop.o decode_portmap.o
decode_postgresql.o decode_pptp.o decode_rip.o decode_rlogin.o decode_smb.o decode_smtp.o decode_sniffer.o decode_snmp.o decode_socks.o decode_tds.o decode_telnet.o decode_vrrp.o decode_yp.o decode_x11.o -lresolv -lnsl -lrpcsvc -L. -lmissing -L/usr/local/lib -lnids -L/usr/local/lib -lpcap -lnet -ldb -lssl -lcrypto
/usr/local/lib/libnids.a(killtcp.o): In function `raw_init':
/home/tool/libnids-1.17/src/killtcp.c:55: undefined reference to `libnet_init'
/usr/local/lib/libnids.a(killtcp.o): In function `nids_killtcp':
/home/tool/libnids-1.17/src/killtcp.c:78: undefined reference to `libnet_write'
/home/tool/libnids-1.17/src/killtcp.c:87: undefined reference to `libnet_write'
collect2: ld returned 1 exit status
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dsniff / msgsnarf huxflux Linux - Software 3 01-03-2008 09:11 AM
Problem with dsniff pigna Linux - Software 0 12-10-2003 10:58 AM
dsniff question Di0de Linux - Software 0 07-01-2003 02:29 AM
dsniff probs phoeniXflame Slackware 5 02-28-2003 08:07 AM
dsniff woes ... phoeniXflame Linux - Software 2 02-28-2003 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration