ID: 21241 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback -Bug Type: Compile Failure +Bug Type: GD related Operating System: RedHat Linux 8.0 PHP Version: 4.3.0 New Comment:
Is there png.h anywhere in your system? Previous Comments: ------------------------------------------------------------------------ [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... ------------------------------------------------------------------------ [2002-12-28 11:24:49] [EMAIL PROTECTED] I cannot replicate the error either. It is possible that your png library headers may be corrupt, try using the --with-png-dir to specify the path where the PNG library can be found on your system. ------------------------------------------------------------------------ [2002-12-28 08:27:23] [EMAIL PROTECTED] Hrm... Your errors don't make much sense to me. It certainly builds fine on my RedHat8 box with those flags and I would have expected many more reports similar to this one if this was a general problem. I suspect something odd on your machine. ------------------------------------------------------------------------ [2002-12-28 08:25:26] [EMAIL PROTECTED] No Change in the error... For now, giving up, going to have my dinner and work on it 2morrow morning.. its 2000 hrs in india. ------------------------------------------------------------------------ [2002-12-28 08:12:36] [EMAIL PROTECTED] No, I meant build it as a standalone, so remove the --with-apxs2 from your flags and see if that changes things. ------------------------------------------------------------------------ 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