php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14067 configure: error: libjpeg not found!
Submitted: 2001-11-15 05:01 UTC Modified: 2001-11-18 18:12 UTC
From: valeri dot minkov at maxmobil dot at Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: SUN OS 2.6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: valeri dot minkov at maxmobil dot at
New email:
PHP Version: OS:

 

 [2001-11-15 05:01 UTC] valeri dot minkov at maxmobil dot at
./configure
      --with-apxs=/usr/local/apache/bin/apxs
      --enable-yp --enable-trans-sid --enable-track-vars    
      --enable-sockets
      --enable-safe-mode --enable-magic-quotes --enable-ftp
      --enable-filepro --enable-calendar --with-mysql=/usr/local/mysql
      --with-oracle=/appl/oracle/product/8.1.7
      --with-oci8=/appl/oracle/product/8.1.7 --with-ldap=/usr/local
      --with-png-dir=/usr/local --with-openssl=/usr/local/ssl
      --with-gd=/usr/local --enable-versioning --enable-memory-limit
      --enable-inline-optimization --with-zlib-dir=/usr/local --with-zlib
      --with-pdflib=/usr/local --enable-shm --enable-discard-path      
      --enable-force-cgi-redirect --with-regexec=apache  
      --enable-sysvsem --enable-sysvshm --enable-threads
      --enable-gcc --with-tiff-dir=/usr/local --with-mhash
      --with-gettext=/usr/local --enable-libgcc
      --with-extra-includes=/usr/local/include
      --with-extra-libs=/usr/local/lib --enable-shared --with-threads
      --with-gnu-cc --enable-bcmath --with-imap=/usr/local
      --with-readline=/usr/local --with-zip=/usr/local
      --with-mnogosearch --with-freetype-dir=/usr/local
      --with-jpeg-dir=/usr/local

......
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... (cached) no
configure: error: libjpeg not found!

But i have all the libs in /usr/local/lib !!!


My config.log :

configure:17678: checking whether to enable truetype string function in gd
configure:17731: checking for the location of libjpeg
configure:17780: checking for jpeg_read_header in -ljpeg
      
There is no error !!!

I tried with php-4.0.5 and jpeg was found , but i have many other problems like parse error in unix.h

Can anyone help me pleace !
Thanks

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-15 05:02 UTC] derick@php.net
Can you try the latest snapshot from snaps.php.net, and see this fixes the problem?

Derick
 [2001-11-15 05:09 UTC] valeri dot minkov at maxmobil dot at
if i do ./configure without --with-jpeg-dir=/usr/local , it work`s perfect ,
but NO JPEG SUPPORT in libphp4.so for Apache !
 [2001-11-15 05:10 UTC] derick@php.net
Again:

Can you try the latest snapshot from snaps.php.net, and see this fixes the prob
lem?

Derick
 [2001-11-15 05:44 UTC] valeri dot minkov at maxmobil dot at
I have downloaded the latest snapshot and  ./configure work`s ,
but make do not work:

root:/appl/src/Apache/php4-200111141500> make
Making all in Zend
make[1]: Entering directory `/appl/src/Apache/php4-200111141500/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSOLARIS2=260 -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEAPI -DUSE_EXPAT -I../TSRM  -I/opt/vbroker/include -prefer-pic -c -o zend_language_parser.lo `test -f zend_language_parser.c || echo './'`zend_language_parser.c
In file included from zend.h:54,
                 from zend_compile.h:24,
                 from zend_language_parser.c:148:
/usr/local/include/unix.h:182: parse error before `MAILSTREAM'
/usr/local/include/unix.h:182: warning: no semicolon at end of struct or union
/usr/local/include/unix.h:189: parse error before `}'
/usr/local/include/unix.h:189: warning: data definition has no type or storage class
/usr/local/include/unix.h:193: parse error before `*'
/usr/local/include/unix.h:193: warning: data definition has no type or storage class
/usr/local/include/unix.h:196: parse error before `*'
/usr/local/include/unix.h:197: parse error before `*'
/usr/local/include/unix.h:198: parse error before `*'
/usr/local/include/unix.h:199: parse error before `*'
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/appl/src/Apache/php4-200111141500/Zend'
make: *** [all-recursive] Error 1



 [2001-11-18 18:12 UTC] sniper@php.net
So the configure works. This unix.h problem is not PHP 
problem at all. You should report it to the c-client author.
(Naming header files without prefix is not very good idea)

Workaround is to move those c-client libs/header files 
under e.g. /usr/local/c-client/lib/libc-client.a and 
/usr/local/c-client/include/*.h and use 
--with-imap=/usr/local/c-client/ 

--Jani

 [2003-04-13 19:36 UTC] linuxdude010 at hotmail dot com
#/usr/local/include/unix.h is a bad file, you must update it.

#I did this:
locate unix.h

# which turned up:
/usr/src/linux-2.4.19/include/config/unix.h

I replaced my bad unix.h (the unix.h that the c-client program compiles doesn't work) - with /usr/src/linux-2.4.19/include/config/unix.h and presto, everything compiled fine.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 09:01:27 2024 UTC