Wireshark-bugs: [Wireshark-bugs] [Bug 12391] New: wrong check for getaddrinfo and gethostbyname

Date: Thu, 28 Apr 2016 08:40:39 +0000
Bug ID 12391
Summary wrong check for getaddrinfo and gethostbyname on Solaris 11
Product Wireshark
Version 2.0.3
Hardware All
OS Solaris
Status UNCONFIRMED
Severity Normal
Priority Low
Component Build process
Assignee [email protected]
Reporter [email protected]

Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
On Solaris 11 with Wireshark 2.0.3 I'm getting (Wireshark 1.12 was ok):

checking for getaddrinfo... no
checking for getaddrinfo in -lnsl... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl... yes
configure: error: Couldn't find any name resolvers!

Note that development version of Solaris where these functions are in libc
works:

checking for getaddrinfo... yes
checking whether to use the GeoIP IP address mapping library if available...
yes

Note also that getaddrinfo on S11 can be found in -lsocket:

$ nm /usr/lib/libsocket.so | grep getaddrinfo
[308]   |     24764|        33|FUNC |GLOB |0    |16     |__xnet_getaddrinfo
[53]    |     22856|      1854|FUNC |LOCL |0    |16     |_getaddrinfo
[148]   |     24720|        33|FUNC |GLOB |0    |16     |getaddrinfo
[52]    |         0|         0|FILE |LOCL |0    |ABS    |getaddrinfo.c


And finally note that if condition before:
  AC_MSG_ERROR(Couldn't find any name resolvers!)
should probably check also for ac_cv_lib_nsl_gethostbyname (and eventualy for
ac_cv_lib_socket_getaddrinfo=yes).


You are receiving this mail because:
  • You are watching all bug changes.