From owner-freebsd-ports@FreeBSD.ORG Mon May 23 14:59:09 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B19AC16A41C for ; Mon, 23 May 2005 14:59:09 +0000 (GMT) (envelope-from eculp@encontacto.net) Received: from 72-12-2-214.wan.networktel.net (72-12-2-214.wan.networktel.net [72.12.2.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5552743D48 for ; Mon, 23 May 2005 14:59:09 +0000 (GMT) (envelope-from eculp@encontacto.net) Received: from dsl-201-144-92-62.prod-infinitum.com.mx ([201.144.92.62]) by 72-12-2-214.wan.networktel.net with esmtp; Mon, 23 May 2005 09:59:07 -0500 id 00095A9B.4291EFBB.00001B71 Received: from localhost (localhost [127.0.0.1]) (uid 80) by dsl-201-144-92-62.prod-infinitum.com.mx with local; Mon, 23 May 2005 09:59:06 -0500 Received: from localhost.encontacto.net (localhost.encontacto.net [127.0.0.1]) by mail.encontacto.net (Horde MIME library) with HTTP for ; Mon, 23 May 2005 09:59:06 -0500 Message-ID: <20050523095906.wgo6kctyts808008@mail.encontacto.net> Date: Mon, 23 May 2005 09:59:06 -0500 From: "Edwin L. Culp" To: Bjoern Koenig References: <20050522110607.pfhjzicisw4484g8@mail.encontacto.net> <4291D0C6.1080402@cs.tu-berlin.de> In-Reply-To: <4291D0C6.1080402@cs.tu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) 4.1-cvs Cc: ports@freebsd.org Subject: Re: Can't get php5 to build on machines that have php4 or have had php4 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2005 14:59:09 -0000 Quoting Bjoern Koenig : > Edwin L. Culp wrote: > >> I have php5 running with no problems on machines that I installed it >> initially but I've not been able to compile php5 on any machine that >> has or has had ( deleted with pkg_delete php4*). I can't find the >> reason for the error that I get in all cases. >> >> ext/standard/dns.lo(.text+0x131f): In function `zif_dns_get_record': >> : undefined reference to `res_ninit' >> ext/standard/dns.lo(.text+0x1365): In function `zif_dns_get_record': >> : undefined reference to `res_nmkquery' >> ext/standard/dns.lo(.text+0x138d): In function `zif_dns_get_record': >> : undefined reference to `res_nsend' >> ext/standard/dns.lo(.text+0x148f): In function `zif_dns_get_record': >> : undefined reference to `res_nclose' >> *** Error code 1 >> >> Stop in /usr/ports/lang/php5/work/php-5.0.4. >> *** Error code 1 > > Could it be that you have built a world with option > WITH_BIND_LIBS=3Dyes or installed dns stuff from ports? Thanks, Bjoern, Not that I am aware of. I'm using bind9 but not from ports and haven't installed any dns stuff from ports but I'm going to recheck, JIC. > > I had also problems with PHP and undefined references to these > functions because FreeBSD does not install the header files which > belong to the libraries if you use WITH_BIND_LIBS=3Dyes, i.e. the > definitions > > #define res_ninit __res_ninit > #define res_nmkquery __res_nmkquery > #define res_nsend __res_nsend > #define res_nclose __res_nclose > > and others are missing. You can solve the problem if you prepend "__" > to these functions in the PHP source code. I attached a patch to this > mail. Put it into /usr/ports/lang/php5/files, 'make clean' and > install PHP again. I'm going to apply the patch and test it in a bit. Thanks very much for sending it. I'm seeing this problem on 4 different machines. I've got a couple that I started with php5 and they are great. The only problems are with the ones that were initiated with php4. Thanks, again, ed > > The PHP project don't feel responsible for their non-working and > ignorant configure script. > > Regards Bj=F6rn >