Bug #18080 Updated: gd.c:92: conflicting types for `gdIOCtx'
| From: | netman at amigo dot net | Date: | Mon, 01 Jul 2002 04:59:57 +0000 |
| Subject: | Bug #18080 Updated: gd.c:92: conflicting types for `gdIOCtx' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12617@lists.php.net to get a copy of this message | ||
ID: 18080
Updated by: netman@amigo.net
Reported By: netman@amigo.net
Status: Bogus
Bug Type: Compile Failure
Operating System: redhat linux 7.1
PHP Version: 4.2.1
New Comment:
Started wit new formatted partition.
Installed Redhat7.1 wit gnome,kde and devel
copied source files to /usr/local/src
rpm -e gd-devel-1.8.3-7
rpm -e gd-1.8.3-7
cd /usr/local
gunzip -cd /usr/local/src/gd-2.0.1.tar.gz | tar xf -
cd gd-2.0.1
./configure
make
make install
cd ..
bzip2 -cd /usr/local/src/php-4.2.1.tar.bz2 | tar xf -
cd php-4.2.1
./configure --with-apache=/usr/local/src/apache_1.3.19
--prefix=/usr/local --with-gd \
make
and got same result...
Previous Comments:
------------------------------------------------------------------------
[2002-06-30 21:03:05] sniper@php.net
You most likely have mixed versions of libgd.so / libgd.a and GD header
files in your system. We can't do anything about that. You just need to
clean up the mess.
Easies/safest way is to remove all GD rpms and installed
libraries/header files and reinstall it.
------------------------------------------------------------------------
[2002-06-30 20:37:32] netman@amigo.net
I am attempting to compile PhP-4.2.1 with gd-2.0.1 and get a
compiler error:
Making all in gd
make[2]: Entering directory `/usr/local/php-4.2.1/ext/gd'
make[3]: Entering directory `/usr/local/php-4.2.1/ext/gd'
gcc -I. -I/usr/local/php-4.2.1/ext/gd
-I/usr/local/php-4.2.1/main -I/usr/local/php-4.2.1
-I/usr/local/src/apache_1.3.19/src/include
-I/usr/local/src/apache_1.3.19/src/os/unix
-I/usr/local/php-4.2.1/Zend
-I/usr/include/freetype2/freetype -I/usr/local/mysql/include
-I/usr/local//include -I/usr/local/pgsql/include
-I/usr/local/php-4.2.1/ext/xml/expat
-I/usr/local/php-4.2.1/TSRM -g -O2 -c gd.c && touch gd.lo
In file included from gd.c:36:
php_gd.h:69: warning: static declaration for
`gdImageColorResolve' follows non-static
gd.c:92: conflicting types for `gdIOCtx'
/usr/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/local/php-4.2.1/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/php-4.2.1/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/php-4.2.1/ext'
make: *** [all-recursive] Error 1
config lines =./configure \
--prefix=/usr/local \
--enable-calendar \
--with-gd \
--with-zlib \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-tiff \
--with-pdflib=/usr/local/ \
--with-apache=/usr/local/src/apache_1.3.19 \
--with-pgsql \
--with-mysql=/usr/local/mysql \
--with-config-file-path=/etc \
--disable-debug \
--enable-pic \
--enable-shared \
--enable-inline-optimization \
--with-exec-dir=/usr/bin \
--with-regex=system \
--enable-debugger \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-track-vars \
--enable-yp \
--enable-ftp \
--enable-wddx \
--without-oracle \
--without-oci8 \
--with-xml \
--with-xpm-dir=/usr/X11R6/lib \
--with-freetype-dir=/usr/lib \
--with-gdbm \
--enable-memory-limit=yes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18080&edit=1