php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20031 Compiling GD-library
Submitted: 2002-10-22 15:32 UTC Modified: 2002-11-10 18:24 UTC
From: mail at mettle dot dk Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.2.2 OS: Linux SUSE 8.0
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-10-22 15:32 UTC] mail at mettle dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-22 15:44 UTC] sniper@php.net
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
 [2002-11-10 18:24 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC