php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36665 make gives error
Submitted: 2006-03-09 12:35 UTC Modified: 2006-03-15 10:55 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: geoffrey at misco dot nl Assigned: pajoye (profile)
Status: Closed Package: Compile Failure
PHP Version: 4.4.3-dev OS: redhat 9
Private report: No CVE-ID: None
 [2006-03-09 12:35 UTC] geoffrey at misco dot nl
Description:
------------
I cannot get php to be compiled with GD and JPEG support

Reproduce code:
---------------
[root@element php-4.4.1]#  ./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql --prefix=/usr/local/apache/php --with-config-file-path=/usr/local/
apache/php --enable-force-cgi-redirect --disable-cgi --with-zlib --with-gettext
 --with-gdbm --with-sybase=/usr/local/freetds --with-gd --with-png-dir=/usr --h
ost=i386-redhat-linux --build=i386-redhat-linux --target=i386-redhat-linux-gnu
--program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=
/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --li
bdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/
usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../confi
g.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --e
nable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-
inline-optimization --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with
-gd --enable-gd-native-ttf --with-ttf --with-gettext --with-ncurses --with-gmp
--with-iconv --with-jpeg-dir=/usr --with-openssl --with-regex=system --with-xml
 --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-e
xif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --en
able-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enabl
e-trans-sid --enable-yp --with-xpm-dir=/usr --enable-wddx --without-oci8 --with
-pear=/usr/share/pear--with-imap=shared --with-png-dir=/usr --with-imap-ssl --w
ith-unixODBC=shared --enable-memory-limit --enable-bcmath --enable-shmop --enab
le-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal
after this i type make

Expected result:
----------------
succesfull build

Actual result:
--------------
[root@element php-4.4.1]# make
/bin/sh /home/ervin/php-4.4.1/libtool --silent --preserve-dup-deps --mode=compil
e gcc -I/home/ervin/php-4.4.1/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBJPEG -Iext/gd
/ -I/home/ervin/php-4.4.1/ext/gd/ -DPHP_ATOM_INC -I/home/ervin/php-4.4.1/include
 -I/home/ervin/php-4.4.1/main -I/home/ervin/php-4.4.1 -I/usr/kerberos/include -I
/usr/include/libxml2 -I/include -I/usr/include/ncurses -I/usr/local/freetds/incl
ude -I/home/ervin/php-4.4.1/TSRM -I/home/ervin/php-4.4.1/Zend    -g -O2  -prefer
-non-pic -c /home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c -o ext/gd/libgd/gd_jpeg
.lo
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:42:21: jpeglib.h: No such file or d
irectory
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:43:20: jerror.h: No such file or di
rectory
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:53: parse error before "cinfo"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c: In function `fatal_jpeg_error':
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:58: `cinfo' undeclared (first use i
n this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:58: (Each undeclared identifier is
reported only once
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:58: for each function it appears in
.)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c: At top level:
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:100: parse error before "cinfo"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c: In function `gdImageJpegCtx':
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:104: storage size of `cinfo' isn't
known
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:105: storage size of `jerr' isn't k
nown
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:108: syntax error before "row"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:109: `JSAMPROW' undeclared (first u
se in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:111: `JDIMENSION' undeclared (first
 use in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:111: parse error before "nlines"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:121: `row' undeclared (first use in
 this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:134: `JCS_RGB' undeclared (first us
e in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:137: `TRUE' undeclared (first use i
n this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:147: parse error before "_safe_emal
loc"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:148: `JSAMPLE' undeclared (first us
e in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:149: `rowptr' undeclared (first use
 in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:154: `JPEG_LIB_VERSION' undeclared
(first use in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:158: `JPEG_COM' undeclared (first u
se in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:175: `nlines' undeclared (first use
 in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:198:2: #error IJG JPEG library BITS
_IN_JSAMPLE value must be 8 or 12
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c: At top level:
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:234: parse error before "cinfo"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c: In function `gdImageCreateFromJpeg
Ctx':
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:244: storage size of `cinfo' isn't
known
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:245: storage size of `jerr' isn't k
nown
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:248: syntax error before "row"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:250: `JSAMPROW' undeclared (first u
se in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:250: parse error before "rowptr"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:253: `JDIMENSION' undeclared (first
 use in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:253: parse error before "nrows"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:264: `row' undeclared (first use in
 this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:280: `JPEG_APP0' undeclared (first
use in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:282: `TRUE' undeclared (first use i
n this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:283: `JPEG_HEADER_OK' undeclared (f
irst use in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:304: `JCS_CMYK' undeclared (first u
se in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:304: `JCS_YCCK' undeclared (first u
se in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:307: `JCS_RGB' undeclared (first us
e in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:334: `jpeg_saved_marker_ptr' undecl
ared (first use in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:334: parse error before "marker"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:340: `marker' undeclared (first use
 in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:358: `JSAMPLE' undeclared (first us
e in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:360: `rowptr' undeclared (first use
 in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:364: syntax error before "currow"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:366: `nrows' undeclared (first use
in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:371: `currow' undeclared (first use
 in this function)
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:377: syntax error before "currow"
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c: At top level:
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:450: field `pub' has incomplete typ
e
/home/ervin/php-4.4.1/ext/gd/libgd/gd_jpeg.c:455: confused by earlier errors, ba
iling out
make: *** [ext/gd/libgd/gd_jpeg.lo] Error 1
[root@element php-4.4.1]#

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-09 13:52 UTC] geoffrey at misco dot nl
i've done that and if i try to compile it says this:
configure: error: png.h not found.
 [2006-03-09 13:56 UTC] tony2001@php.net
Install libpng-devel package and/or fix the mess with libraries and headers in your system.
Not PHP problem.
 [2006-03-09 14:10 UTC] geoffrey at misco dot nl
been there, done that.
Still is popping up errors
 [2006-03-09 14:13 UTC] geoffrey at misco dot nl
i've edited the configure script and changed a directory link... he now goes a bit further then png.h but now the compiler strands on 

configure: error: libXpm.(a|so) not found.
 [2006-03-09 14:31 UTC] pajoye@php.net
I think you are misusing the configure options.

Please post somewhere the config.nice file without your modifications.

I aslo think that you miss some -devel or installed in a non standard place. 
 [2006-03-09 15:24 UTC] pajoye@php.net
Did you use all these options?

Please only use what you need to configure php, like:
'--with-jpeg-dir=/usr' or for png. Leave all the system/hosts setting alone.
 [2006-03-09 16:20 UTC] pajoye@php.net
> Yes i did, because i want to let the new installation work
> just like our old installation and that installation had
> all those settings..
> But if i remove some it doesn't resolve the error i think 

Please use *only* what is needed to configure PHP, the rest must be detected.
 [2006-03-10 14:14 UTC] geoffrey at misco dot nl
I removed all unneccesary lines but still get error
This is from the configure script
  if test "$PHP_JPEG_DIR" != "no"; then

    for i in $PHP_JPEG_DIR /usr/local /usr; do
      test -f $i/lib/libjpeg.$SHLIB_SUFFIX_NAME -o -f $i/lib/libjpeg.a && GD_JPE
G_DIR=$i && break
    done

    if test -z "$GD_JPEG_DIR"; then
      { echo "configure: error: libjpeg.(a|so) not found." 1>&2; exit 1; }
    fi


  save_old_LDFLAGS=$LDFLAGS
  ac_stuff="
      -L$GD_JPEG_DIR/lib

What does this mean?? because i now have the jpeg-6b dir. in the /usr/lib/jpeg-6b 

What should i add to --with-jpeg-dir=<here> then??
 [2006-03-10 14:29 UTC] pajoye@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.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

You are obviously messing your setup and the configure script.

Get a clean setup (only use your linux packages to install any library, including -devel), use only the options required to configure what you need for php,etc...

Ask for support in the various mailing list.
 [2006-03-10 14:55 UTC] geoffrey at misco dot nl
so you can't give a simple answer for you! to me??
What should i add to --with-jpeg-dir=<here> then??

it is the php configure script which can't find the file ... so its a bug in the configure script
 [2006-03-15 10:55 UTC] geoffrey at misco dot nl
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 09:01:31 2024 UTC