I am having issues compiling tcpreplay on the 64-bit version of
cygwin.  I've verified that WpdPack is in the proper location
(C:\cygwin64\WpdPack) and WinPCap is installed.  I've attempted with
v3.4.4 and v4.0.3 and they both result in the same error at the
./configure step, namely:

>checking for inet_ntop... yes
>checking for inet_addr... yes
>checking for libpcap... /wpdpack
>checking for library containing pcap_close... no
>configure: error: Unable to link libpcap in /wpdpack

and the relevant section of config.log appears to be the following:

>configure:17525: checking for library containing pcap_close
>configure:17556: gcc -o conftest.exe -D_U_="__attribute__((unused))"  -Wall 
>-O3 -std=gnu99  -Wno-variadic-macros -Wfatal-errors -Wno-format-contains-nul 
>-I/wpdpack/include   conftest.c /wpdpack/lib/libwpcap.a >&5
>/tmp/ccmW9kSE.o:conftest.c:(.text.startup+0xa): undefined reference to 
>`pcap_close'
>/tmp/ccmW9kSE.o:conftest.c:(.text.startup+0xa): relocation truncated to fit: 
>R_X86_64_PC32 against undefined symbol `pcap_close'
>/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: 
>/tmp/ccmW9kSE.o: bad reloc address 0x0 in section `.pdata.startup'
>/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: final 
>link failed: Invalid operation
>collect2: error: ld returned 1 exit status

--->Chunk of code here

>configure:17556: gcc -o conftest.exe -D_U_="__attribute__((unused))"  -Wall 
>-O3 -std=gnu99  -Wno-variadic-macros -Wfatal-errors -Wno-format-contains-nul 
>-I/wpdpack/include   conftest.c -lpcap -lnl /wpdpack/lib/libwpcap.a >&5
>/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: 
>cannot find -lpcap
>/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: 
>cannot find -lnl
>collect2: error: ld returned 1 exit status

--->Another chunk of code here

>configure:17573: result: no
>configure:17580: error: Unable to link libpcap in /wpdpack

Any help would be greatly appreciated.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to