php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15303 Error compiling
Submitted: 2002-01-30 16:31 UTC Modified: 2002-06-28 02:49 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: alex at saers dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.1.1 OS: rocklinux 1.4
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alex at saers dot com
New email:
PHP Version: OS:

 

 [2002-01-30 16:31 UTC] alex at saers dot com
Hello

Dont know if this is a gd or php issus. I downloaded gd to have it to work
with gd cause i wanted to generate alpha blending images on the fly.
therefore i  choosed the 2.0.1 beta build. When i compile gd everything is
allright but when i try to compile php i get this error message
<snip>
gcc -I. -I/usr/src/php-4.1.1/ext/gd -I/usr/src/php-4.1.1/main -I/usr/src/php
-4.1.1 -I/usr/src/php-4.1.1/Zend -I/usr/src/php-4.1.1/ext/mysql/libmysql -I/
usr/src/php-4.1.1/ext/xml/expat  -I/usr/src/php-4.1.1/TSRM -g -O2  -c gd.c
&& touch gd.lo
In file included from /usr/include/gd.h:25,
                 from php_gd.h:33,
                 from gd.c:36:
/usr/include/gd_io.h:21: undefined or invalid # directive
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/src/php-4.1.1/ext/gd'
</snip>
The only option i have supplied is ./configure --with-gd
Im using rocklinux 1.4 and have tried to download and install zlib libpng libjpeg
freetype several times. Whats wrong? Should i send a bugreport to php or is
this a gd issue?

Thanx for a good software

/Alexander

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-03 07:08 UTC] imajes@php.net
The version of PHP that this bug was reported in is too old. Please
try to reproduce this bug in the latest version of PHP (available
from http://www.php.net/downloads.php

If you are still able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
 [2002-02-03 07:09 UTC] imajes@php.net
that was the wrong message.
 [2002-03-04 04:31 UTC] michal dot grezl at winet dot cz
same thing with php version 4.1.2 and gd 1.8.4
 [2002-03-10 20:36 UTC] marcus at brturbo dot com
It seems that when you install a new version of gd over an old one you have this problem, is there a way to uninstall the previous one ?

Everyone that is having this problem instaled a newer version of gd over an older one ?

Thanks for the oportunity

I'm using php-4.2-dev
 [2002-03-14 07:34 UTC] dna at tanker dot d2g dot com
Hi
I had this problem too. It was my fault, I forgot I had a shared module laying around in /usr/local/lib which php was trying to use instead, pointing the configure script to the exact directory where to look for gdlib with --with-gd=/tmp/gdlib doesn't even help. It uses the one it found installed before the one you specifyed. Is this a bug?

Regards, David Nordenberg
 [2002-06-28 02:49 UTC] sniper@php.net
User error in most cases. We can not be sure if gd.h and libgd.a/so in the systems are from same versions..

From php 4.3.0 on there is libgd 2.0.1 bundled with PHP 
which will solve this. 

You can try it out by grabbing this snapshot:

http://snaps.php.net/php4-latest.tar.gz

And compile with --with-gd=php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC