Re: Patch to configure.in for IRIX 6.5

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Patch to configure.in for IRIX 6.5
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-9317@lists.php.net to get a copy of this message
> 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. Looks good. Applied. -Rasmus

« previous php.dev (#9317) next »