[Winpcap-users] EXT : Fwd: libwpcap.a for Win7/64 bit

Phoebe K kphoebe88 at gmail.com
Tue Aug 20 12:55:40 PDT 2013


Michael,

I tried that and I get the same error:

configure:16538: gcc -o conftest.exe -fPIC -fPIC -I$(top_builddir)/include
-I$(top_srcdir)/include -I$(top_builddir)/airframe/include
-I$(top_srcdir)/airframe/include -I/C:/WpdPack/Include/pcap
-L/C:/WpdPack/Lib/x64 conftest.c -lwpcap >&5

conftest.c:1:0: warning: -fPIC ignored for target (all code is position
independent) [enabled by default]

/* confdefs.h */

^

/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../lib/wpcap.lib(wpcap.dll.b):(.text+0x2):
relocation truncated to fit: R_X86_64_32 against symbol
`__imp_pcap_open_offline' defined in .idata$5 section in
/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../lib/wpcap.lib(wpcap.dll.b)

collect2: error: ld returned 1 exit status


On Tue, Aug 20, 2013 at 12:51 PM, Black, Michael (IS) <
Michael.Black2 at ngc.com> wrote:

>  Try adding the -fpic switch and see if that helps
>
>
>  Michael D. Black
> Senior Scientist
> Analytics, Production and Services
> Advanced GEOINT Systems
> Northrop Grumman Information Systems
>    ------------------------------
> *From:* winpcap-users-bounces at winpcap.org [
> winpcap-users-bounces at winpcap.org] on behalf of Phoebe K [
> kphoebe88 at gmail.com]
> *Sent:* Tuesday, August 20, 2013 2:00 PM
> *To:* winpcap-users at winpcap.org
> *Subject:* EXT :[Winpcap-users] Fwd: libwpcap.a for Win7/64 bit
>
>    Does WinPCAP 4.1.2 developer pack support libraries for Win 7 - 64 bit
> machine? I am trying to build SILK/YAF and have to link wpcap - but I get
> this error:
>
>
>
> configure:16513: checking for pcap_open_offline in -lwpcap
>
> configure:16538: gcc -o conftest.exe -g -O2 -I$(top_builddir)/include
> -I$(top_srcdir)/include -I$(top_builddir)/airframe/include
> -I$(top_srcdir)/airframe/include -Wall -Wno-comment -Wno-long-long
> conftest.c -lwpcap >&5
>
> /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../lib/wpcap.lib(wpcap.dll.b):(.text+0x2):
> relocation truncated to fit: R_X86_64_32 against symbol
> `__imp_pcap_open_offline' defined in .idata$5 section in
> /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../lib/wpcap.lib(wpcap.dll.b)
>
> collect2: error: ld returned 1 exit status
>
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winpcap.org/pipermail/winpcap-users/attachments/20130820/12ecfabc/attachment.html>


More information about the Winpcap-users mailing list