On Solaris configure.ac adds "-lsocket -lnsl" to LDFLAGS. But there is no such a library "-lnls". There is libnsl - network services library: 208 209 case $host_os in 210 solaris*) 211 LDFLAGS="$LDFLAGS -lsocket -lnls" 212 ;; 213 *) 214 ;; 215 esac Also I'd use AC_SEARCH_LIBS() instead of this "case".
Fixed: commit 0a47fc0cbbcc6e023a77bbafef96fa3b1c42cf0b Author: Olivier Crête <olivier.crete@collabora.com> Date: Fri Mar 27 20:08:17 2015 -0400 configure: On Solaris, library is libnsl, not libnls https://bugs.freedesktop.org/show_bug.cgi?id=73042
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.