Discussion in 'Mac Apps and Mac App Store' started by manixman, Dec 29, 2008.

  1. manixman macrumors newbie

    Dec 29, 2008
    My 'make' of the hping source code fails with the libpcap issue. I downloaded the nix version and not the mac binaries, but it should still work since OSX is FreeBSD based. Any ideas? Maybe it is a version issue, although the ./configure seem build the byteorder.c and .h ok.

    manix-man:hping2-rc3 clmmacunix$ make
    gcc -c -O2 -Wall -g main.c
    gcc -c -O2 -Wall -g getifname.c
    getifname.c: In function ‘get_output_if’:
    getifname.c:345: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness
    gcc -c -O2 -Wall -g getlhs.c
    gcc -c -O2 -Wall -g linux_sockpacket.c
    gcc -c -O2 -Wall -g parseoptions.c
    gcc -c -O2 -Wall -g datafiller.c
    gcc -c -O2 -Wall -g datahandler.c
    gcc -c -O2 -Wall -g gethostname.c
    gcc -c -O2 -Wall -g binding.c
    gcc -c -O2 -Wall -g getusec.c
    gcc -c -O2 -Wall -g opensockraw.c
    gcc -c -O2 -Wall -g logicmp.c
    gcc -c -O2 -Wall -g waitpacket.c
    gcc -c -O2 -Wall -g resolve.c
    gcc -c -O2 -Wall -g sendip.c
    gcc -c -O2 -Wall -g sendicmp.c
    gcc -c -O2 -Wall -g sendudp.c
    gcc -c -O2 -Wall -g sendtcp.c
    gcc -c -O2 -Wall -g cksum.c
    gcc -c -O2 -Wall -g statistics.c
    gcc -c -O2 -Wall -g usage.c
    gcc -c -O2 -Wall -g version.c
    gcc -c -O2 -Wall -g antigetopt.c
    gcc -c -O2 -Wall -g sockopt.c
    gcc -c -O2 -Wall -g listen.c
    gcc -c -O2 -Wall -g sendhcmp.c
    gcc -c -O2 -Wall -g memstr.c
    gcc -c -O2 -Wall -g rtt.c
    gcc -c -O2 -Wall -g relid.c
    gcc -c -O2 -Wall -g sendip_handler.c
    gcc -c -O2 -Wall -g libpcap_stuff.c
    In file included from libpcap_stuff.c:20:
    /usr/include/net/bpf.h:105: error: redefinition of ‘struct bpf_program’
    /usr/include/net/bpf.h:130: error: redefinition of ‘struct bpf_version’
    /usr/include/net/bpf.h:342: error: redefinition of ‘struct bpf_insn’
    libpcap_stuff.c: In function ‘pcap_recv’:
    libpcap_stuff.c:61: warning: pointer targets in assignment differ in signedness
    make: *** [libpcap_stuff.o] Error 1
  2. manixman thread starter macrumors newbie

    Dec 29, 2008
    hping2 Fix0red

    You must make changes to the C files because the ./configure script interprets the OS as Darwin.

    ars.c , libpcap_stuff.c, and sendip.c

    !Warning - do not read into the need for <sys/pcap.h> You do not need this!

    Make on the changes below this statement in the URL.


Share This Page