Wireshark mailing list archives

Function getaddrinfo() vanished in one of the later commits.


From: hdv <henri.de.veer () gmail com>
Date: Fri, 4 Jan 2019 12:59:04 +0100

Hi,

In the extcap plugin I'm developing I used the getaddrinfo() call to resolve hostnames. This should be favorable over gethostname() which is actually deprecated AFAIK.

The previous commit I was developing on was around june 14th, 2018 (27a1906c582b..) where it still worked, now after rebasing to the latest master commit (29bfeccc8db0..) I see the function is vanished.

This is the link error I get:

anagate-core.obj : error LNK2019: unresolved external symbol __imp_getaddrinfo referenced in function socket_open [c:\development\wsbuild64\extcap\anagate.vcxproj]

I can't find any header file where it is defined. It should be somewhere in glibc.

Do I need to add some glibc config option in the CMakeLists.txt or anywhere else?

PS: I need it for the Windows build.

regards,

Henri


---
Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
https://www.avast.com/antivirus

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: