[Winpcap-users] 4.1.2 Compatibility with mingw-w64 toolchain?

Alon Bar-Lev alon.barlev at gmail.com
Wed Oct 6 10:11:06 PDT 2010


What about [1]?

[1] http://www.mail-archive.com/winpcap-users@winpcap.org/msg00750.html

On Wed, Oct 6, 2010 at 6:53 PM, Gianluca Varenni
<gianluca.varenni at cacetech.com> wrote:
>
>
> --------------------------------------------------
> From: "noreply" <noreply at slytechs.com>
> Sent: Wednesday, October 06, 2010 9:40 AM
> To: <winpcap-users at winpcap.org>
> Subject: Re: [Winpcap-users] 4.1.2 Compatibility with mingw-w64 toolchain?
>
>> I have a solution to this problem. The short answer is that there is a
>> problem with the mingw-w64 toolchain, specifically in gcc's 'binutils'
>> which
>> generate the actual dynamic library.
>>
>> The reason it works for 32-bit version and not for 64-bit version is that
>> wpdpack/lib directory contains the libpwpap.a file which gcc can link
>> against correctly, while the wpdpack/lib/x64 directory only contains the
>> wpcap.lib and no 64-bit libwpcap.a compatible library. Therefore, because
>> of
>> the 'binutils' bug, the 64-bit builds fail against the .lib file alone.
>>
>> May be in the future releases, the WinPcap team can generate the
>> libwpcap.a
>> file as well for x64 architecture?
>
> The reason why so far we haven't generated a libwpcap.a for x64 is that we
> use cygwin for the generation of the *.a files, and cygwin (last time I
> checked) does not support x64 compilation. It should rather straightforward
> to migrate to mingw, it's just something that we haven't done yet.
>
> Have a nice day
> GV
>
>
>>
>> Here is a link to the the full discussion on this:
>>
>> https://sourceforge.net/projects/mingw-w64/forums/forum/723797/topic/3882579
>>
>> Cheers,
>> mark...
>>
>>> -----Original Message-----
>>> From: winpcap-users-bounces at winpcap.org
>>> [mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Mark
>>> Bednarczyk
>>> Sent: Wednesday, October 06, 2010 10:14 AM
>>> To: winpcap-users at winpcap.org
>>> Subject: [Winpcap-users] 4.1.2 Compatibility with mingw-w64 toolchain?
>>>
>>> Hi,
>>>     I'm linking my code using mingw-w64 toolchain on Win7
>>> x86_64 system. The code compiles against the WpdPack 4.1.2,
>>> wpcap in lib/x64 directory and links. Then at runtime all the
>>> pcap_* library calls are incorrectly linked again WinPcap
>>> 4.1.2 runtime install and core-dump immediately.
>>>
>>> Even this will coredump:
>>>
>>> const char *name = pcap_datalink_val_to_name(1);
>>>
>>> Has anyone tried using mingw-w64 to link their code with
>>> latest x64 pcap?
>>>
>>> Here is a little blog I'm keeping on this issue, until its
>>> resolved. It has a stack-trace:
>>> http://jnetpcap.com/node/662
>>>
>>> Cheers,
>>> mark...
>>> http://jnetpcap.com
>>>
>>>
>>> _______________________________________________
>>> Winpcap-users mailing list
>>> Winpcap-users at winpcap.org
>>> https://www.winpcap.org/mailman/listinfo/winpcap-users
>>>
>>
>>
>> _______________________________________________
>> Winpcap-users mailing list
>> Winpcap-users at winpcap.org
>> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>


More information about the Winpcap-users mailing list