Results 1 to 4 of 4

Thread: dsniff not compiling on opensuse 11.4 ...

  1. #1
    Join Date
    Sep 2008
    Location
    Argentina
    Posts
    145

    Default dsniff not compiling on opensuse 11.4 ...

    Hello

    I've not found any version of dsniff to install on opensuse 11.4 so I tried to compile ...
    I've tried on x64 and i586 platform but they five me the same error...
    My x86_64 kernel version is 2.6.37.6-0.7-desktop

    Compile failure messages:
    gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/local/inst/dsniff-2.3/usr/local/lib/\" -I. -I/usr/local/include -I/usr/include/pcap -I./missing -c ./arpspoof.c
    ./arpspoof.c: In function ‘arp_send’:
    ./arpspoof.c:49:6: warning: passing argument 1 of ‘libnet_get_hwaddr’ from incompatible pointer type
    /usr/include/./libnet/libnet-functions.h:1819:1: note: expected ‘struct libnet_t *’ but argument is of type ‘struct libnet_link_int *’
    ./arpspoof.c:49:6: error: too many arguments to function ‘libnet_get_hwaddr’
    /usr/include/./libnet/libnet-functions.h:1819:1: note: declared here
    ./arpspoof.c:60:2: warning: passing argument 6 of ‘libnet_build_ethernet’ from incompatible pointer type
    /usr/include/./libnet/libnet-functions.h:490:1: note: expected ‘struct libnet_t *’ but argument is of type ‘u_char *’
    ./arpspoof.c:60:2: error: too few arguments to function ‘libnet_build_ethernet’
    /usr/include/./libnet/libnet-functions.h:490:1: note: declared here
    ./arpspoof.c:64:20: error: ‘ETH_H’ undeclared (first use in this function)
    ./arpspoof.c:64:20: note: each undeclared identifier is reported only once for each function it appears in
    ./arpspoof.c:64:5: error: too few arguments to function ‘libnet_build_arp’
    /usr/include/./libnet/libnet-functions.h:564:1: note: declared here
    ./arpspoof.c: In function ‘main’:
    ./arpspoof.c:181:12: warning: assignment makes pointer from integer without a cast
    make: *** [arpspoof.o] Error 1

    Anyone was able to compile or does a package exist???

    Thanks

    Beat

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,659
    Blog Entries
    15

    Default Re: dsniff not compiling on opensuse 11.4 ...

    Quote Originally Posted by tkmbe
    Hello

    I've not found any version of dsniff to install on opensuse 11.4 so I
    tried to compile ...
    I've tried on x64 and i586 platform but they five me the same error...
    My x86_64 kernel version is 2.6.37.6-0.7-desktop

    Compile failure messages:
    gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
    -DHAVE_NET_ETHERNET_H
    -DDSNIFF_LIBDIR=\"/usr/local/inst/dsniff-2.3/usr/local/lib/\" -I.
    -I/usr/local/include -I/usr/include/pcap -I./missing -c
    /arpspoof.c
    /arpspoof.c: In function ‘arp_send’:
    /arpspoof.c:49:6: warning: passing argument 1 of
    ‘libnet_get_hwaddr’ from incompatible pointer type
    /usr/include/./libnet/libnet-functions.h:1819:1: note: expected
    ‘struct libnet_t *’ but argument is of type ‘struct
    libnet_link_int *’
    /arpspoof.c:49:6: error: too many arguments to function
    ‘libnet_get_hwaddr’
    /usr/include/./libnet/libnet-functions.h:1819:1: note: declared here
    /arpspoof.c:60:2: warning: passing argument 6 of
    ‘libnet_build_ethernet’ from incompatible pointer type
    /usr/include/./libnet/libnet-functions.h:490:1: note: expected
    ‘struct libnet_t *’ but argument is of type ‘u_char *’
    /arpspoof.c:60:2: error: too few arguments to function
    ‘libnet_build_ethernet’
    /usr/include/./libnet/libnet-functions.h:490:1: note: declared here
    /arpspoof.c:64:20: error: ‘ETH_H’ undeclared (first use in this
    function)
    /arpspoof.c:64:20: note: each undeclared identifier is reported only
    once for each function it appears in
    /arpspoof.c:64:5: error: too few arguments to function
    ‘libnet_build_arp’
    /usr/include/./libnet/libnet-functions.h:564:1: note: declared here
    /arpspoof.c: In function ‘main’:
    /arpspoof.c:181:12: warning: assignment makes pointer from integer
    without a cast
    make: *** [arpspoof.o] Error 1

    Anyone was able to compile or does a package exist???

    Thanks

    Beat

    Hi
    If you look here there are LOTS of patches
    https://build.opensuse.org/package/f...rk%3Autilities

    I've branched the package and will try and fix, since it's not building
    for 11.4 and factory.
    https://build.opensuse.org/package/s...rk%3Autilities

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
    up 10 days 9:19, 5 users, load average: 0.67, 0.29, 0.20
    GPU GeForce 8600 GTS Silent - Driver Version: 280.13


  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,659
    Blog Entries
    15

    Default Re: dsniff not compiling on opensuse 11.4 ...

    Quote Originally Posted by malcolmlewis
    Quote Originally Posted by tkmbe
    Hello

    I've not found any version of dsniff to install on opensuse 11.4 so I
    tried to compile ...
    I've tried on x64 and i586 platform but they five me the same error...
    My x86_64 kernel version is 2.6.37.6-0.7-desktop

    Compile failure messages:
    gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
    -DHAVE_NET_ETHERNET_H
    -DDSNIFF_LIBDIR=\"/usr/local/inst/dsniff-2.3/usr/local/lib/\" -I.
    -I/usr/local/include -I/usr/include/pcap -I./missing -c
    /arpspoof.c
    /arpspoof.c: In function ‘arp_send’:
    /arpspoof.c:49:6: warning: passing argument 1 of
    ‘libnet_get_hwaddr’ from incompatible pointer type
    /usr/include/./libnet/libnet-functions.h:1819:1: note: expected
    ‘struct libnet_t *’ but argument is of type ‘struct
    libnet_link_int *’
    /arpspoof.c:49:6: error: too many arguments to function
    ‘libnet_get_hwaddr’
    /usr/include/./libnet/libnet-functions.h:1819:1: note: declared here
    /arpspoof.c:60:2: warning: passing argument 6 of
    ‘libnet_build_ethernet’ from incompatible pointer type
    /usr/include/./libnet/libnet-functions.h:490:1: note: expected
    ‘struct libnet_t *’ but argument is of type ‘u_char *’
    /arpspoof.c:60:2: error: too few arguments to function
    ‘libnet_build_ethernet’
    /usr/include/./libnet/libnet-functions.h:490:1: note: declared here
    /arpspoof.c:64:20: error: ‘ETH_H’ undeclared (first use in this
    function)
    /arpspoof.c:64:20: note: each undeclared identifier is reported only
    once for each function it appears in
    /arpspoof.c:64:5: error: too few arguments to function
    ‘libnet_build_arp’
    /usr/include/./libnet/libnet-functions.h:564:1: note: declared here
    /arpspoof.c: In function ‘main’:
    /arpspoof.c:181:12: warning: assignment makes pointer from integer
    without a cast
    make: *** [arpspoof.o] Error 1

    Anyone was able to compile or does a package exist???

    Thanks

    Beat

    Hi
    If you look here there are LOTS of patches
    https://build.opensuse.org/package/f...rk%3Autilities

    I've branched the package and will try and fix, since it's not building
    for 11.4 and factory.
    https://build.opensuse.org/package/s...rk%3Autilities
    Hi
    Submitted fixes for dsniff and libnids (pre-req for dsniff)
    https://build.opensuse.org/request/show/86995
    https://build.opensuse.org/request/show/86996

    Once those are accepted, you should be good to go.

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
    up 10 days 12:08, 6 users, load average: 0.20, 0.25, 0.25
    GPU GeForce 8600 GTS Silent - Driver Version: 280.13


  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,659
    Blog Entries
    15

    Default Re: dsniff not compiling on opensuse 11.4 ...

    Quote Originally Posted by tkmbe
    Hello

    I've not found any version of dsniff to install on opensuse 11.4 so I
    tried to compile ...
    Hi
    My fixes have been accepted, so dsniff should be here soon for 11.4;
    http://software.opensuse.org/search?...ude_debug=true

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
    up 10 days 14:22, 3 users, load average: 0.33, 0.29, 0.24
    GPU GeForce 8600 GTS Silent - Driver Version: 280.13


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •