Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 4176] New: freeaddrinfo not in ws2_32.dll

Date: Thu, 29 Oct 2009 04:48:36 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4176

           Summary: freeaddrinfo not in ws2_32.dll
           Product: Wireshark
           Version: 1.3.x (Experimental)
          Platform: x86
        OS/Version: Windows 2000
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: jfielding@xxxxxxxxxxxxxxx


Build Information:
wireshark 1.3.1-SVN-30666 (SVN Rev 30666 from /trunk)

Copyright 1998-2009 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GTK+ 2.16.6, with GLib 2.22.2, with WinPcap (version unknown),
with libz 1.2.3, without POSIX capabilities, with libpcre 7.0, with SMI 0.4.8,
with c-ares 1.6.0, with Lua 5.1, without Python, with GnuTLS 2.8.1, with Gcrypt
1.4.4, with MIT Kerberos, with GeoIP, with PortAudio V19-devel (built Oct 22
2009), with AirPcap, with new_packet_list.

Running on Windows 2000 Service Pack 4, build 2195, with WinPcap version 4.1.1
(packet.dll version 4.1.0.1753), based on libpcap version 1.0 branch 1_0_rel0b
(20091008), GnuTLS 2.8.1, Gcrypt 1.4.4, without AirPcap.

Built using Microsoft Visual C++ 9.0 build 30729

--
The above was obtained with Martin Brenner's DLL, see below. Wireshark -v
doesn't get that far without it. This message pops up:
"The procedure entry point freeaddrinfo could not be located in the dynamic
link library ws2_32.dll."

The corresponding TShark version works:
--------------
TShark 1.3.1-SVN-30666 (SVN Rev 30666 from /trunk)

Copyright 1998-2009 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GLib 2.22.2, with WinPcap (version unknown), with libz 1.2.3,
without POSIX capabilities, with libpcre 7.0, with SMI 0.4.8, with c-ares
1.6.0,

with Lua 5.1, without Python, with GnuTLS 2.8.1, with Gcrypt 1.4.4, with MIT
Kerberos, with GeoIP.

Running on Windows 2000 Service Pack 4, build 2195, with WinPcap version 4.1.1
(packet.dll version 4.1.0.1753), based on libpcap version 1.0 branch 1_0_rel0b
(20091008), GnuTLS 2.8.1, Gcrypt 1.4.4.

Built using Microsoft Visual C++ 9.0 build 30729
--------------

This version works:
--------------
wireshark 1.3.1-SVN-30513 (SVN Rev 30513 from /trunk)

Copyright 1998-2009 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GTK+ 2.16.6, with GLib 2.20.5, with WinPcap (version unknown),
with libz 1.2.3, without POSIX capabilities, with libpcre 7.0, with SMI 0.4.8,
with c-ares 1.6.0, with Lua 5.1, without Python, with GnuTLS 2.8.1, with Gcrypt
1.4.4, with MIT Kerberos, with GeoIP, with PortAudio V19-devel (built Oct 11
2009), with AirPcap, with new_packet_list.

Running on Windows 2000 Service Pack 4, build 2195, with WinPcap version 4.1.1
(packet.dll version 4.1.0.1753), based on libpcap version 1.0 branch 1_0_rel0b
(20091008), GnuTLS 2.8.1, Gcrypt 1.4.4, without AirPcap.

Built using Microsoft Visual C++ 9.0 build 30729
--------------
(I don't have any builds between 30513 and 30666.)

This describes the problem and how to avoid it:
http://msdn.microsoft.com/en-us/library/ms737931(VS.85).aspx

This has a fix that can be applied without rebuilding:
http://codemagnet.blogspot.com/2007/10/winsock2-replacement.html
http://martin.brenner.de/files/winsock2_getaddrinfo.rar

SVN 30666 and later (in particular wireshark 1.3.1 (SVN Rev 30724 from /trunk))
seem to work fine with Martin Brenner's DLL. (Not extensively tested.)


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.