any ideas with this make issue?

Help
2005-05-29
2013-04-23
  • captgoodnight
    captgoodnight
    2005-05-29

    Hello there, configure is fine, make pukes with this:

    tack.o  -lpcap
    capture.o(.text+0x463): In function `captureWeakPackets':
    : undefined reference to `pcap_dump_flush'
    collect2: ld returned 1 exit status
    make: *** [weplab] Error 1

    Hacked up version of mdk 9.2
    most recent libpcap
    custom 2.4.30

    any idea would be thanked, thanks ;)
    cg

     
    • I got the same error:

      gcc  -DG_DISABLE_ASSERT -O3 -march=pentium4 -mmmx -mfpmath=sse -msse -fomit-frame-pointer -fno-exceptions -pipe -s -ffast-math -fexpensive-optimizations -falign-functions -falign-loops -fstrict-aliasing  -o weplab  main.o analpfile.o bruteforce.o capture.o debug.o dictionary.o globals.o heuristics.o md5.o wep.o attack.o  -lpcap
      capture.o(.text+0x326): In function `captureWeakPackets':
      : undefined reference to `pcap_dump_flush'
      collect2: ld returned 1 exit status
      make: *** [weplab] Error 1

      and it got solved by updating my libpcap-dev package (I'm using Debian sid)

      server:/opt/weplab-0.1.4# apt-get install libpcap0.9-dev
      Reading Package Lists... Done
      Building Dependency Tree... Done
      The following packages will be REMOVED:
        libpcap-dev libpcap0.7-dev
      The following NEW packages will be installed:
        libpcap0.9-dev
      0 upgraded, 1 newly installed, 2 to remove and 61 not upgraded.
      Need to get 115kB of archives.
      After unpacking 20.5kB disk space will be freed.
      Do you want to continue? [Y/n]
      Get:1 http://http.us.debian.org unstable/main libpcap0.9-dev 0.9.0.cvs.20050529-2 [115kB]
      Fetched 115kB in 7s (15.7kB/s)
      (Reading database ... 18648 files and directories currently installed.)
      Removing libpcap-dev ...
      Removing libpcap0.7-dev ...
      Selecting previously deselected package libpcap0.9-dev.
      (Reading database ... 18632 files and directories currently installed.)
      Unpacking libpcap0.9-dev (from .../libpcap0.9-dev_0.9.0.cvs.20050529-2_i386.deb) ...
      Setting up libpcap0.9-dev (0.9.0.cvs.20050529-2) ...
      server:/opt/weplab-0.1.4# exit
      fbcrack@server:/opt/weplab-0.1.4$ make
      gcc  -DG_DISABLE_ASSERT -O3 -march=pentium4 -mmmx -mfpmath=sse -msse -fomit-frame-pointer -fno-exceptions -pipe -s -ffast-math -fexpensive-optimizations -falign-functions -falign-loops -fstrict-aliasing  -o weplab  main.o analpfile.o bruteforce.o capture.o debug.o dictionary.o globals.o heuristics.o md5.o wep.o attack.o  -lpcap
      fbcrack@server:/opt/weplab-0.1.4$

      Hope it helps.

      Regards.

      FBCrack

       
    • captgoodnight
      captgoodnight
      2005-06-12

      Ah finally. Hey thanks FBCrack for responding ;) I had a some what unique issue due to having 2 versions of libpcap installed. I finally got it to compile with the below;

      ./configure CPPFLAGS=-I/home/captgoodnight/usr/include LDFLAGS=-L/home/captgoodnight/usr/lib

      make

      Now all is golden, I'm not sure why it was giving me the prior error, I was (I think) trying the same thing? Oh well, it worked ;)

      So, here packet packet packet ;)

      --bests,
      cg