From: geoffrey at misco dot nl Operating system: redhat 9 PHP version: 4.4.2 PHP Bug Type: Compile Failure Bug description: make gives error
Description: ------------ I cannot get php to be compiled with GD and JPEG support Reproduce code: --------------- [EMAIL PROTECTED] 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: -------------- [EMAIL PROTECTED] 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 [EMAIL PROTECTED] php-4.4.1]# -- Edit bug report at http://bugs.php.net/?id=36665&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36665&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36665&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36665&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36665&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36665&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36665&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36665&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36665&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36665&r=support Expected behavior: http://bugs.php.net/fix.php?id=36665&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36665&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36665&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36665&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36665&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36665&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36665&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36665&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36665&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36665&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36665&r=mysqlcfg