#20031 [Opn->Fbk]: Compiling GD-library
| From: | sniper@php.net | Date: | Tue, 22 Oct 2002 20:44:23 +0000 |
| Subject: | #20031 [Opn->Fbk]: Compiling GD-library | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23065@lists.php.net to get a copy of this message | ||
ID: 20031
Updated by: sniper@php.net
Reported By: mail@mettle.dk
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Linux SUSE 8.0
PHP Version: 4.2.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-10-22 15:32:54] mail@mettle.dk
Hi
I was trying to compile PHP with the GD-library.
I installed gd 2.0.2 and jpeg-6b.
I configured php with
./configure --with-mysql --with-apxs --with-imap-ssl
--with-jpeg-dir=/usr/local/lib --with-gd --with-zlib
and during the compile I got the following error
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'
I commented out line 92 in ext/gd/gd.c: "typedef FILE gdIOCtx;"
Tried to compile again and got a similiar error.
Removed line 69 in ext/gd/php_gd.h: "static int
gdImageColorResolve(gdImagePtr, int, int, int);"
Succeded in compiling PHP.
But did I miss something very important???
Well... anyway... when I tried to start Apache, I got the following
error:
Syntax error on line 9 of /etc/httpd/suse_loadmodule.conf:
Cannot load /usr/lib/apache/libphp4.so into server:
/usr/lib/libgd.so: undefined symbol: FT_Init_FreeType
failed
What do I do?
Please mail me at mail@mettle.dk
ps.:
I rune Apache v. 1.3.23
Best Regards
Jørn Christensen
Denmark
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20031&edit=1