Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12979 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82553 invoked by uid 1010); 25 Sep 2004 07:41:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82483 invoked from network); 25 Sep 2004 07:41:45 -0000 Received: from unknown (HELO asclepius.uwa.edu.au) (130.95.128.60) by pb1.pair.com with SMTP; 25 Sep 2004 07:41:45 -0000 Received: from asclepius (localhost [127.0.0.1]) by asclepius (Postfix) with SMTP id 82B6636931F for ; Sat, 25 Sep 2004 15:41:44 +0800 (WST) X-UWA-Client-IP: 130.95.100.5 (UWA) Received: from gulag.guild.uwa.edu.au (gulag.guild.uwa.edu.au [130.95.100.5]) by asclepius.uwa.edu.au (Postfix) with ESMTP id 6A8873690CE for ; Sat, 25 Sep 2004 15:41:44 +0800 (WST) Received: from gulag.guild.uwa.edu.au (devenish@localhost [127.0.0.1]) by gulag.guild.uwa.edu.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i8P7fhS0012729 for ; Sat, 25 Sep 2004 15:41:43 +0800 Received: (from devenish@localhost) by gulag.guild.uwa.edu.au (8.12.3/8.12.3/Debian-6.6) id i8P7fg2x012727 for internals@lists.php.net; Sat, 25 Sep 2004 15:41:42 +0800 Date: Sat, 25 Sep 2004 15:41:42 +0800 To: internals@lists.php.net Message-ID: <20040925074142.GA12462@mail.guild.uwa.edu.au> Mail-Followup-To: internals@lists.php.net References: <41EE526EC2D3C74286415780D3BA9F87046F7AFC@ehost011-1.exch011.intermedia.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87046F7AFC@ehost011-1.exch011.intermedia.net> User-Agent: Mutt/1.3.28i Subject: Re: [PHP-DEV] ./configure, PHP, SuSE and the AMD64 From: j-devenish@users.sourceforge.net (James Devenish) In message <41EE526EC2D3C74286415780D3BA9F87046F7AFC@ehost011-1.exch011.intermedia.net> on Fri, Sep 24, 2004 at 07:21:45PM -0700, Hans Zaunere wrote: > However, there is one issue I'm pretty unclear on - and, unfortunately > it might relate to some of the other issues, which makes matters more > confusion. [...] > -- In general, I've found that PHP's ./configure tends to assume things > are in /usr/lib. However, on this and other 64bit x86 platforms, what > we want is typically in /usr/lib64. A prime example of this is libjpeg. [...] > configure: error: libjpeg.(a|so) not found. [...] > The solution: symlink libjpeg.so from /usr/lib64 into /usr/lib - but is > this right? I've tried numerous flags to configure, but nothing worked. > When examining config.log in this case, I see "gcc -o conftest > -L/usr/lib64...." which looks to be on the right track, yet ./configure > is still breaking. Yes, the PHP4 ./configure internals have been broken in this way for a number of years and bug reports have been filed accordingly. As you have noted, the compiler has no difficulty finding the libs but the configure script itself fails while performing its own (spurious) path search. This is an artificial failure and cannot be corrected with command-line options in the version you are using (4.3.8, by the looks of it). If this is the problem you are experiencing, then all you need to do is hack ./configure so that it ignores these "errors". For example, if ./configure fails on this: { echo "configure: error: libjpeg.(a|so) not found." 1>&2; exit 1; } then you can make PHP4 compile fully and correctly by changing it to this: { echo "configure: error: libjpeg.(a|so) not found." 1>&2; }