#20031 [NEW]: Compiling GD-library
| From: | mail at mettle dot dk | Date: | Tue, 22 Oct 2002 20:32:54 +0000 |
| Subject: | #20031 [NEW]: Compiling GD-library | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-23063@lists.php.net to get a copy of this message | ||
From: mail@mettle.dk
Operating system: Linux SUSE 8.0
PHP version: 4.2.2
PHP Bug Type: Compile Failure
Bug description: Compiling GD-library
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 bug report at http://bugs.php.net/?id=20031&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20031&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20031&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20031&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20031&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20031&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20031&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20031&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20031&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20031&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20031&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20031&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20031&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20031&r=isapi