php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28672 error: Problem with libjpeg.(a|so)
Submitted: 2004-06-07 15:17 UTC Modified: 2004-06-07 18:07 UTC
From: c dot meisinger at livingliquid dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.7 OS: RedHat 7.3
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: c dot meisinger at livingliquid dot com
New email:
PHP Version: OS:

 

 [2004-06-07 15:17 UTC] c dot meisinger at livingliquid dot com
Description:
------------
if i compile php 4.3.7 with --with-jpge-dir=...
 i get the following error:

checking for jpeg_read_header in -ljpeg... no
configure: error: Problem with libjpeg.(a|so). Please check config.log for more information.

jpeg-6b is installed.
all works perfect with 4.3.6 and previous versions

my configure looks like this:
'./configure' \
'--prefix=/usr/local/php' \
'--with-openssl=/usr/local/ssl' \
'--with-zlib' \
'--with-bz2' \
'--with-zip' \
'--with-mysql=/usr/local/mysql' \
'--with-wddx' \
'--with-gd' \
'--enable-native-gd-ttf' \
'--enable-ttf' \
'--with-ttf' \
'--with-t1lib' \
'--with-jpeg-dir=/usr/lib/' \
'--with-png-dir=/usr/lib/' \
'--with-apache=/usr/local/src/apache_1.3.31' \
'--with-mcrypt=/usr/local/libmcrypt' \
'--with-mhash' \
'--with-curl=/usr/local/curl' \
"$@"



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-07 15:55 UTC] iliaa@php.net
Look inside the config.log file was the failure reason. 
 [2004-06-07 16:54 UTC] c dot meisinger at livingliquid dot com
configure:29567: checking for GD support
configure:29614: checking for the location of libjpeg
configure:29641: checking for the location of libpng
configure:29694: checking for the location of libXpm
configure:29719: checking for FreeType 1.x support
configure:29744: checking for FreeType 2
configure:29769: checking for T1lib support
configure:29794: checking whether to enable truetype string function in GD
configure:29819: checking whether to enable JIS-mapped Japanese font support in GD
configure:29873: checking for fabsf
configure:29901: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/curl/lib -L/usr/local/curl/lib conftest.c -lcurl -lbz2 -lz -lssl -
lcrypto -lresolv -lm -ldl -lnsl  -lcurl -lssl -lcrypto -ldl -lz 1>&5
configure:29885: warning: conflicting types for built-in function `fabsf'
configure:29873: checking for floorf
configure:29901: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/curl/lib -L/usr/local/curl/lib conftest.c -lcurl -lbz2 -lz -lssl -
lcrypto -lresolv -lm -ldl -lnsl  -lcurl -lssl -lcrypto -ldl -lz 1>&5
configure:30033: checking for jpeg_read_header in -ljpeg
configure:30052: gcc -o conftest -g -O2  -Wl,-rpath,/usr/local/lib -L/usr/local/lib  -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/curl/lib -L/usr/local/c
url/lib conftest.c -ljpeg  -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcurl -lssl -lcrypto -ldl -lz 1>&5
/usr/local/lib/libssl.a(t1_enc.o): In function `tls1_P_hash':
t1_enc.o(.text+0x15e): undefined reference to `HMAC_cleanup'
t1_enc.o(.text+0x16c): undefined reference to `HMAC_cleanup'
collect2: ld returned 1 exit status
configure: failed program was:
#line 30041 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char jpeg_read_header();

int main() {
jpeg_read_header()
; return 0; }
 [2004-06-07 17:05 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

The problems appears to be a broken libssl that is missing 
symbols for HMAC_cleanup. 
/usr/local/lib/libssl.a(t1_enc.o): In function 
`tls1_P_hash': 
t1_enc.o(.text+0x15e): undefined reference to 
`HMAC_cleanup' 
t1_enc.o(.text+0x16c): undefined reference to 
`HMAC_cleanup' 
 
Because -lssl is being used the test compiled against it 
fails. 
 [2004-06-07 18:07 UTC] c dot meisinger at livingliquid dot com
strange... if i remove --with-jpeg-dir, it works
and why does jpeg check for openssl???
if i remove --with-openssl i still get this error.
openssl installation is ok too.
btw. it WORKED with php4.3.6
 [2004-07-08 20:15 UTC] pantelis at up2u dot gr
I had the same problem.. config fails with:

"configure: error: libpng.(a|so) not found."

i have defined: "--with-jpeg-dir=/usr/lib"

and in the /usr/lib directory i have these files:

libjpeg.so.62
libjpeg.so.62.0.0

----

Any suggestions?

My system is RedHat Enterprise Server.
 [2004-08-24 23:55 UTC] matarunk at yahoo dot com
Upgrade libxslt and libxml packages (libxslt compiled against libxml Version) to the latest versions. 

This will solve your problem.

Cool:)
 [2004-08-24 23:56 UTC] matarunk at yahoo dot com
Also upgrade the curl package also.
 [2004-08-24 23:57 UTC] matarunk at yahoo dot com
Also upgrade the curl package.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 06:01:29 2025 UTC