|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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]# PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 04:00:01 2025 UTC |
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??