phpbar.de logo

Mailinglisten-Archive

[php] Einbindung von GD-Lib in PHP4 klappt nicht

[php] Einbindung von GD-Lib in PHP4 klappt nicht

Torsten Worreschk mail_(at)_mediaxx.de
Mon, 04 Sep 2000 10:08:20 +0200


Hallo Liste,

mein Provider versucht vergeblich die neueste GD-Lib in PHP4 zu
integrieren. Leider habe ich keine Ahnung von Unix und kann mit den
Fehlermeldungen, die er mir geschickt hat, nichts anfangen.
Aber hier in der Liste gibt es ja genug Experten... Hat jemand eine Idee
woran es liegen könnte?

Vielen Dank im Voraus
Torsten Worreschk

> 1. Habe jpegsrc.v6b, libpng und zlib installiert (aus der FreeBSD Ports
> Collection, neuste Versionen)
> 2. GD 1.8.3 mit der Anweisung
> CFLAGS=-O  -DHAVE_JPEG
> LIBS=-lm -lgd -lpng -lz -ljpeg
> im Makefile compiliert. Alle anderen CFLAGS Anweisungen und LIBS Anweisungen
> mit # versehen.
> Anschliessend make, make install
> 
> Ausser dem Hinweis
> gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O
>  -DHAVE_JPEG -c gd.c
> In file included from gd.c:2:
> /usr/include/malloc.h:2: warning: #warning "this file includes <malloc.h>
> which is deprecated, use <stdlib.h> instead"
> Geht das soweit gut zustatten
> 3. Apache entpackt, ./configure --prefix=/usr/local/apache
> 4. PHP4 Compile Anweisung
> ./configure --with-apache=../apache_1.3.12 --with-mysql --with-zlib --enable
> -sysvshm=yes --enable-sysvsem=yes --with-config-file-path=/etc --enable-trac
> k-vars=yes --enable-url-includes --with-gd=/usr/local --with-jpeg-dir=/usr/l
> ocal/bin/
> 
> Wobei die PHP4 Ver. Patch Level 2 im configure sagt
> 
> checking whether to include GD support... yes (static)
> checking for gdImageString16 in -lgd... (cached) no
> checking for compress in -lz... (cached) no
> checking for png_info_init in -lpng... (cached) no
> checking for gdImageColorResolve in -lgd... (cached) no
> checking for gdImageCreateFromPng in -lgd... (cached) no
> checking for gdImageCreateFromGif in -lgd... (cached) no
> checking for gdImageCreateFromXbm in -lgd... (cached) no
> checking for gdImageWBMP in -lgd... (cached) no
> checking for libjpeg (needed by gd-1.8+)... yes
> checking for jpeg_read_header in -ljpeg... (cached) no
> no
> checking for gdImageCreateFromJpeg in -lgd... (cached) no
> checking for libXpm (needed by gd-1.8+)... no
> checking for gdImageCreateFromXpm in -lgd... (cached) no
> checking whether to include ttf support... no
> checking for T1lib support... no
> 
> das Kompilieren klappt hier, aber die Funktion ist nicht drinne
> 
> und die Version Release Candidate2
> 
> checking whether to include GD support... yes (static)
> checking for gdImageString16 in -lgd... (cached) no
> checking for compress in -lz... (cached) yes
> checking for png_info_init in -lpng... (cached) yes
> checking for gdImageColorResolve in -lgd... (cached) no
> checking for gdImageCreateFromPng in -lgd... (cached) no
> checking for gdImageCreateFromGif in -lgd... (cached) yes
> checking for gdImageCreateFromXbm in -lgd... (cached) yes
> checking for gdImageWBMP in -lgd... (cached) no
> checking for libjpeg (needed by gd-1.8+)... yes
> checking for jpeg_read_header in -ljpeg... (cached) yes
> checking for gdImageCreateFromJpeg in -lgd... (cached) no
> checking for libXpm (needed by gd-1.8+)... no
> checking for gdImageCreateFromXpm in -lgd... (cached) no
> checking whether to include ttf support... no
> checking for T1lib support... no
> 
> Bei der make meldet PHP
> 
>  gd.lo
> gd.c: In function `php_if_imagecreatefromgif':
> gd.c:472: `gdImageCreateFromGif' undeclared (first use this function)
> gd.c:472: (Each undeclared identifier is reported only once
> gd.c:472: for each function it appears in.)
> gd.c: In function `php_if_imagegif':
> gd.c:629: `gdImageGif' undeclared (first use this function)
> 
> FreeBSD in der Ver. 3.0 läuft auf dem Rechner.


php::bar PHP Wiki   -   Listenarchive