No announcement yet.

Dsniff - compulation error

  • Filter
  • Time
  • Show
Clear All
new posts

  • Dsniff - compulation error

    make all
    gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/X11R6/include -I./missing -c ./arpspoof.c
    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


    Does anyone know where I can download a later version? I think it is the package itself. Any ideas?

  • #2
    I think it is an issue with the version of libnet that you are using... if you are trying to use the latest version, downgrade to the last stable major, iirc... I had a similar make error last time I built it and I think that was the solution that returned when I googled for the compile errors. ...either that or I had to create a symlink for one of the libs, or something along those lines

    arpspoof.c is trying to use a function with the wrong number of arguments in multiple sections.. good pointer to the fact that the lib itself has changed since dnsniff was written
    if it gets me nowhere, I'll go there proud; and I'm gonna go there free.


    • #3
      Yes, I see. If I look in the make file :

      install_prefix =
      prefix = /usr/ //<----- Changed to usr
      exec_prefix = ${prefix}
      libdir = ${exec_prefix}/lib
      sbindir = ${exec_prefix}/sbin
      mandir = ${prefix}/man

      PCAPLIB = -lpcap // <-- Can I change this? I do not understand this var

      arpspoof: arpspoof.o arp.o
      $(CC) $(LDFLAGS) -o $@ arpspoof.o arp.o $(LIBS) $(PCAPLIB) $(LNETLIB)

      PCAPLIB is missing. Hence the number of args.

      My pacap resides in:


      Thanks for the help - Any more ideas? Thanks