Jim Meyering <[EMAIL PROTECTED]> writes: > Here's a log of a failed Solaris 5.7 build > > cc -I/usr/local/include -R/usr/local/lib -L/usr/local/lib -o pinky > pinky.o ../lib/libcoreutils.a /usr/local/lib/libintl.so > /usr/local/lib/libiconv.so -lc -R/usr/local/lib ../lib/libcoreutils.a > Undefined first referenced > symbol in file > gethostbyname ../lib/libcoreutils.a(getaddrinfo.o) > getservbyname ../lib/libcoreutils.a(getaddrinfo.o) > ld: fatal: Symbol referencing errors. No output written to pinky > make[3]: *** [pinky] Error 1 > > The problem was that coreutils no longer had the check for -lnsl. > coreutils-5.3.0 had that test in canon-host.m4, and now that canon-host > is just a wrapper around getaddrinfo, it's appropriate that it no longer > perform this check. So getaddrinfo.m4 must do it, now, > and I've made the following change in coreutils, and > will commit it to gnulib as soon as I've confirmed it works.
Hi! Looks good, thanks! > 2005-09-24 Jim Meyering <[EMAIL PROTECTED]> > > * getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname > in the inet and nsl libraries. Required on Solaris 5.7. > > Index: m4/getaddrinfo.m4 > =================================================================== > RCS file: /fetish/cu/m4/getaddrinfo.m4,v > retrieving revision 1.4 > retrieving revision 1.5 > diff -u -p -u -r1.4 -r1.5 > --- m4/getaddrinfo.m4 23 Sep 2005 19:40:04 -0000 1.4 > +++ m4/getaddrinfo.m4 24 Sep 2005 10:44:30 -0000 1.5 > @@ -1,4 +1,4 @@ > -# getaddrinfo.m4 serial 4 > +# getaddrinfo.m4 serial 5 > dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc. > dnl This file is free software; the Free Software Foundation > dnl gives unlimited permission to copy and/or distribute it, > @@ -7,6 +7,7 @@ dnl with or without modifications, as lo > AC_DEFUN([gl_GETADDRINFO], > [ > AC_SEARCH_LIBS(getaddrinfo, nsl socket) > + AC_SEARCH_LIBS(gethostbyname, [inet nsl]) > AC_REPLACE_FUNCS(getaddrinfo gai_strerror) > gl_PREREQ_GETADDRINFO > ]) _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils