php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53303 x86_64 PHP needs libjpeg and libpng i686 ?
Submitted: 2010-11-12 22:17 UTC Modified: 2010-12-21 12:59 UTC
From: sites at evoluons dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.3.4 OS: Fedora 14 x86_64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sites at evoluons dot net
New email:
PHP Version: OS:

 

 [2010-11-12 22:17 UTC] sites at evoluons dot net
Description:
------------
Hi,

I always compile PHP myself, and I use Fedora 14 x86_64.
libjpeg and libpng are already installed, but PHP don't found them.

But, if I install libjpeg i686 and libpng i686, it works.

With other libraries, i686 is not necessary.

Why ?

Thank you ;)

PS : SELinux is disabled

Expected result:
----------------
PHP should compile with libjpeg and libpng x86_64, no ?

Actual result:
--------------
libjpeg and libpng x86_64 are already installed, but PHP don't found them.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-13 04:10 UTC] Kalle@php.net
-Status: Open +Status: Feedback
 [2010-11-13 04:10 UTC] Kalle@php.net
What was your ./configure line?
 [2010-11-13 07:00 UTC] sites at evoluons dot net
-Status: Feedback +Status: Open
 [2010-11-13 07:00 UTC] sites at evoluons dot net
My ./configure is :

./configure  --with-apxs2=/usr/local/apache_maxou/bin/apxs --with-config-file-path=/usr/local/apache_maxou/conf --disable-ipv6 --with-gd --with-zlib --enable-ftp --enable-sockets --with-curl --enable-mbstring --enable-exif --without-pdo-sqlite --without-sqlite --without-pear --enable-zip --prefix=/usr/local/php_maxou --with-mysql=/usr/local/mysql --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --with-mcrypt

Thank you ;)
 [2010-11-13 07:18 UTC] sites at evoluons dot net
On a forum, someone tells we must use "--with-libdir=lib64" onto 64 bits systems.

OK, but why, freetype, mcrypt etc... automatically use lib64 without it, and libjpeg and libpng not ?

I admit I don't understand ;)
 [2010-11-13 07:22 UTC] sites at evoluons dot net
I tried with --with-libdir=lib64 and now MySQL libraries are not found... so it's not a good solution.
 [2010-11-13 08:44 UTC] sites at evoluons dot net
The only workaround I found is to use --with-libdir=lib64 because it prevent to user MySQL library (compiled by myself) but if I create 2 sym links from /usr/lib64/libjpeg.so to /usr/lib/libjpeg.so and /usr/lib64/libpng.so to /usr/lib/libpng.so it work.

I think I am not the only one to obtain that... maybe a better solution that symbolic links ?
 [2010-11-16 08:14 UTC] sites at evoluons dot net
Maybe nobody had that bug ?
 [2010-12-21 12:43 UTC] sites at evoluons dot net
-PHP Version: 5.3.3 +PHP Version: 5.3.4
 [2010-12-21 12:43 UTC] sites at evoluons dot net
I tried with new PHP 5.3.4 and same problem :

My Fedora 14 is x86_64 only, and PHP search jpeg and png libs into /usr/lib rather into /usr/lib64

The only "good" solution I found is to create 2 sym links :

ln -s /usr/lib64/libjpeg.so /usr/lib/libjpeg.so
ln -s /usr/lib64/libpng.so /usr/lib/libpng.so

After, it works.

Please, can you fix it ?

Thank you ;)
 [2010-12-21 12:48 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2010-12-21 12:48 UTC] pajoye@php.net
You can use the lib prefix configure option for the broken linux distribution that still uses the lib64 directory.
 [2010-12-21 12:54 UTC] sites at evoluons dot net
I already said I can't use --with-libdir=lib64 because PHP don't find MySQL libs with that option...

Why PHP found all libs into lib64 except for libjpeg and libpng ?
 [2010-12-21 12:56 UTC] pajoye@php.net
As it was explained many times in various reports, we can't write fixes for broken distributions. Please report this bug upstream so they can finally get rid of lib64 (or do it correctly).
 [2010-12-21 12:59 UTC] sites at evoluons dot net
Sincerely, I don't understand...

If lib64 directory is not useful, why PHP found all libraries into lib64, but not only jpeg and png ?
There is a reason to that ? Why all others libraries where found, and worked ?

Thank you ;)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Sep 23 03:00:01 2025 UTC