php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18080 gd.c:92: conflicting types for `gdIOCtx'
Submitted: 2002-06-30 20:37 UTC Modified: 2002-07-01 04:35 UTC
From: netman at amigo dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.2.1 OS: redhat linux 7.1
Private report: No CVE-ID: None
 [2002-06-30 20:37 UTC] netman at amigo dot 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-30 21:03 UTC] 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-07-01 00:59 UTC] netman at amigo dot net
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...
 [2002-07-01 03:40 UTC] sniper@php.net
gd-2.0.1 does not have any configure script..
Seems like you're better stick to the RH provided
rpms anyway.

 [2002-07-01 04:35 UTC] netman at amigo dot net
[root@quackman php-4.2.1]# ls -l /usr/lib/libgd.*
lrwxrwxrwx    1 root     root           14 Jul  1 02:28 
/usr/lib/libgd.so -> libgd.so.1.8.3
lrwxrwxrwx    1 root     root           14 Jul  1 02:28 
/usr/lib/libgd.so.1 -> libgd.so.1.8.3
lrwxrwxrwx    1 root     root           14 Jul  1 02:28 
/usr/lib/libgd.so.1.8 -> libgd.so.1.8.3
-rwxr-xr-x    1 root     root       199700 Dec 19  2000 
/usr/lib/libgd.so.1.8.3
[root@quackman php-4.2.1]# 
these are the files from the rpm - they don't work either
I have had gd-1.8.3 working with php4.0.6 - anyways - if I 
need gd I'll just go with php4.0.6
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 01:01:27 2024 UTC