Date: 07/29/99
- Next message: danny.heijl <email protected>: "[PHP-DEV] PHP 4.0 Bug #1916: tests/recurse script segfaults"
- Previous message: marcelo <email protected>: "[PHP-DEV] PHP 4.0 Bug #1915: GDBM functions disappeared"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] Patch to configure.in for IRIX 6.5"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] Patch to configure.in for IRIX 6.5"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Before checking gethostname() against -lnsl, it should be checked
without it as it might be in -lc. The patch below fixes this. I've
also changed gethostname to gethostent per the following in GNU tar
1.13:
# Whenever both -lsocket and -lnsl are needed, it seems to be always the
# case that gethostbyname requires -lnsl. So, check -lnsl first, for it
# to be in LIBS before the setsockopt checks are performed. *However*,
# on SINIX-N 5.43, this is false, and gethostent seems to be a better
# candidate. So, let's use it below instead of gethostbyname, and see.
On IRIX 6.5, -lnsl gives lots of:
ld32: WARNING 134: weak definition of [blah] in \
/usr/lib32/libnsl.so preempts that weak definition \
in /usr/lib32/mips3/libc.so
After enough of these, the linker stops. It's easy to turn these
warnings off but I think the patch below is a better fix.
-- albert chin (china <email protected>)-- snip snip --- configure.in.orig Thu Jul 29 00:18:22 1999 +++ configure.in Thu Jul 29 00:22:33 1999 @@ -108,9 +108,10 @@ LDFLAGS="$LDFLAGS -L/usr/pkg/lib" fi -AC_CHECK_LIB(nsl, gethostname, [ - LIBS="-lnsl $LIBS" - AC_DEFINE(HAVE_LIBNSL) ], []) +AC_CHECK_FUNC(gethostent, [], [ + AC_CHECK_LIB(nsl, gethostent, [ + LIBS="-lnsl $LIBS" + AC_DEFINE(HAVE_LIBNSL) ], [])]) AC_CHECK_LIB(c, socket, [:], [ AC_CHECK_LIB(socket, socket, [
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: danny.heijl <email protected>: "[PHP-DEV] PHP 4.0 Bug #1916: tests/recurse script segfaults"
- Previous message: marcelo <email protected>: "[PHP-DEV] PHP 4.0 Bug #1915: GDBM functions disappeared"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] Patch to configure.in for IRIX 6.5"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] Patch to configure.in for IRIX 6.5"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

