ID: 21241 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: GD related Operating System: RedHat Linux 8.0 PHP Version: 4.3.0 New Comment:
I would recommend to use the bundled library, and thus you should install libpng-devel The bundled library has some more bugs fixed and support for antialiased lines. Derick Previous Comments: ------------------------------------------------------------------------ [2003-01-20 04:49:06] [EMAIL PROTECTED] What are the differences between the old behavior and the new bundled library? So, what should I do? ------------------------------------------------------------------------ [2003-01-20 04:47:34] [EMAIL PROTECTED] When you use --with-gd, then the bundled GD library is used, which REQUIRES png. Just use '--with-gd=/usr' to get the old behaviour, or install the png-devel package. ------------------------------------------------------------------------ [2003-01-20 04:45:27] [EMAIL PROTECTED] No! that's the problem... I have libgd and libgd-devel installed. Anyway, with older versions of PHP, it has always worked. What could be wrong? ------------------------------------------------------------------------ [2003-01-20 04:35:23] [EMAIL PROTECTED] Is there png.h anywhere in your system? ------------------------------------------------------------------------ [2003-01-20 04:23:52] [EMAIL PROTECTED] I have a quite similar problem while trying to compile with gd supprt... Here are the errors that occure: /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:11:67: png.h: No such file or directory /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:42: parse error before "jmp_buf" /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:42: warning: no semicolon at end of struct or union /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:44: warning: data definition has no type or storage class /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:46: parse error before "gdPngJmpbufStruct" /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:46: warning: data definition has no type or storage class /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:49: parse error before "png_ptr" /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c: In function `gdPngErrorHandler': /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:51: `jmpbuf_ptr' undeclared (first use in this function) /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:51: (Each undeclared identifier is reported only once /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:51: for each function it appears in.) /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:62: `msg' undeclared (first use in this function) /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c:65: `png_ptr' undeclared (first use in this function) /usr/src/php-4.3.0/ext/gd/libgd/gd_png.c: At top level: [....................] make: *** [ext/gd/libgd/gd_png.lo] Erreur 1 RH 8 / Apache 2.0.43 Configure flags: ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --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 --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr --with-config-file --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-db3 --with-kerberos --with-ldap --with-imap --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-openssl --with-zlib --with-layout=GNU --enable-ftp --enable-track-vars --enable-trans-sid --with-gd --with-pear=/usr/share/pear --with-mysql --disable-mbstr-enc-trans --with-apxs2=/usr/sbin/apxs I tried to compile as a stand alone, and the same error occurs... ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21241 -- Edit this bug report at http://bugs.php.net/?id=21241&edit=1