php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52365 configure script does NOT check /usr/lib64 for libpng, libjpeg, libmysqlclient
Submitted: 2010-07-17 03:21 UTC Modified: 2010-07-20 11:30 UTC
From: ricks at nerd dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.3.2 OS: Fedora 13, 64-bit
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ricks at nerd dot com
New email:
PHP Version: OS:

 

 [2010-07-17 03:21 UTC] ricks at nerd dot com
Description:
------------
When running configure on a 64-bit machine, the script doesn't check /usr/lib64 for libraries.  I've had to resort to the workaround used in older php 4.x.x builds that exhibited this issue, to wit:

    ln -s /usr/lib64 /opt/lib
    ln -s /usr/include /opt/include

and then specifying things like this to configure:

    --with-jpeg-dir=/opt --with-png-dir=/opt --with-mysql=/opt

to get around it.  Even "--with-jpeg-dir=/usr/lib64" won't solve it.  I thought this was fixed in 5.1.x, but it's crept back in.
 
I don't mean to be rude, but is this stuff tested on 64-bit systems before release?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-20 11:30 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-07-20 11:30 UTC] aharvey@php.net
Because Fedora (and its various derivative distributions) have their
unusual filesystem layout with /usr/lib64 instead of /usr/lib holding
the libraries, the --with-libdir configure option needs to be used, eg:
./configure --with-libdir=lib64 <other options>
 [2010-07-20 15:40 UTC] ricks at nerd dot com
That is the first thing I tried.  The "--with-libdir=/usr/lib64" will remove the need to specify "--with-mysql=/opt", but it does not fix the jpeg or png library resolution issue.  You still have to specify

    "--with-jpeg-dir=/opt --with-png-dir=/opt"

even with "--with-libdir=/usr/lib64".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 12:01:34 2024 UTC