Bug #17993 Updated: bundled GD compile failure

From: Date: Wed, 26 Jun 2002 20:28:39 +0000
Subject: Bug #17993 Updated: bundled GD compile failure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12167@lists.php.net to get a copy of this message
ID: 17993 Updated by: rasmus@php.net Reported By: cox@idecnet.com -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: Linux PHP Version: 4.0CVS-2002-06-26 New Comment: This is a pretty standard gd.h/libgd.a mismatch. You have multiple versions of GD installed in your default include and lib dirs. If you want to compile against your system's GD library, you need to install GD correctly on your system. Get rid of the multiple copies of gd.h/libgd.[a|so] that are likely floating around on your system, rm config.cache and try again. This was one of the reasons we ended up bundling GD. Why not just use the bundled GD. It is likely to be much more feature-complete and bug-free than any of your GD installs. Previous Comments: ------------------------------------------------------------------------ [2002-06-26 16:17:37] cox@idecnet.com No errors with: ./configure --prefix=/usr \ --with-gd=php \ --without-mysql \ --with-zlib \ --disable-cli The error I reported: ./configure --prefix=/usr \ --with-gd \ --without-mysql \ --with-zlib \ --disable-cli Same error: ./configure --prefix=/usr \ --with-jpeg-dir=/usr \ --with-gd \ --without-mysql \ --with-zlib \ --disable-cli ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # rpm -q gd gd-devel libjpeg-devel gd-1.8.1-2 gd-devel-1.8.1-2 libjpeg-devel-6b-7 Don't hesitate to request more info. ------------------------------------------------------------------------ [2002-06-26 12:43:00] rasmus@php.net Oh, and by the way, you are not getting the bundled GD with that configure line. You need to use --with-gd=php currently to get the bundled one. ------------------------------------------------------------------------ [2002-06-26 12:29:45] rasmus@php.net Make sure you have installed libjpg and add --with-jpeg-dir=/usr to your configure line. Let us know if that fixes it. ------------------------------------------------------------------------ [2002-06-26 08:34:30] cox@idecnet.com After a fresh checkout from CVS HEAD (2002-06-26): /root/cdrom/download/php_cvs/php4/ext/gd/gd.c: In function `zif_imagecreatefromstring': /root/cdrom/download/php_cvs/php4/ext/gd/gd.c:1046: `gdImageCreateFromJpegCtx' undeclared (first use in this function) /root/cdrom/download/php_cvs/php4/ext/gd/gd.c:1046: (Each undeclared identifier is reported only once /root/cdrom/download/php_cvs/php4/ext/gd/gd.c:1046: for each function it appears in.) /root/cdrom/download/php_cvs/php4/ext/gd/gd.c: In function `zif_imagecreatefromjpeg': /root/cdrom/download/php_cvs/php4/ext/gd/gd.c:1219: `gdImageCreateFromJpeg' undeclared (first use in this function) /root/cdrom/download/php_cvs/php4/ext/gd/gd.c:1219: `gdImageCreateFromJpegCtx' undeclared (first use in this function) /root/cdrom/download/php_cvs/php4/ext/gd/gd.c: In function `zif_imagejpeg': /root/cdrom/download/php_cvs/php4/ext/gd/gd.c:1441: `gdImageJpegCtx' undeclared (first use in this function) make: *** [ext/gd/gd.lo] Error 1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./configure --prefix=/usr \ --with-apxs=/usr/sbin/apxs \ --with-config-file-path=/etc/php/cvs/ \ --with-gd \ --enable-ftp \ --with-pgsql=/usr/local/pgsql \ --with-mysql=/usr \ --enable-bcmath \ --with-gettext \ --with-xml \ --with-dom \ --enable-trans-sid \ --with-pear \ --with-zlib \ --enable-sysvshm \ --enable-sysvsem \ --disable-cli ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17993&edit=1

« previous php.bugs (#12167) next »