Page 1 of 1

Problem beim Update PHP 5.0.3 -> t1lib; gdlib

Posted: 2005-02-07 16:03
by thoste
Hi Folks,

folgendes problem kommt beim Updaten auf PHP 5.0.3 auf meinem Server: (./configure ....)

checking for T1_StrError in -lt1 ..no
configure: error: Problem with libt1.(a|so). Please check config.log for more information.

Im Config.log steht (Auszug):

Code: Select all

configure:32746: checking for XpmFreeXpmImage in -lXpm
configure:32765: gcc -o conftest -g -O2  -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib  -Wl,-rpath,/usr/ssl/lib -L/usr/ssl/lib -lX11 conftest.c -lXpm  -lpng -lz
configure:33368: checking for FreeType 1 support
configure:33465: checking for T1_StrError in -lt1
configure:33484: gcc -o conftest -g -O2   -Wl,-rpath,/usr/ssl/lib -L/usr/ssl/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lt1  -lfreetype -lX11
/tmp/ccKCl402.o(.text+0x9): In function `main':
/home/dateien/php-5.0.3/configure:33480: undefined reference to `T1_StrError'
collect2: ld returned 1 exit status
configure: failed program was:
#line 33473 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char T1_StrError();

int main() {
T1_StrError()
; return 0; }

installiert ist u.a. freetype; freetype 2.1.7 (+ devel), t1lib 1.3.1 (+devel), gd 2.0.22 (+devel)

Compiliert habe ich es wie folgt:

Code: Select all

./configure --prefix=/usr/share --datadir=/usr/share/php --mandir=/usr/share/man --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include --sysconfdir=/etc --with-_lib=lib --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --with-apxs2=/usr/sbin/apxs2-prefork --enable-safe-mode --enable-sigchild --enable-magic-quotes --enable-short-tags --disable-ipv6 --enable-versioning --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --enable-ctype --with-curl --with-curlwrappers --enable-dba --with-gdbm --with-ndbm --enable-dbase --enable-dio --enable-exif --enable-filepro --enable-ftp --with-gd=yes --with-jpeg-dir --with-png-dir --with-xpm-dir=/usr/X11R6/lib --with-ttf --with-freetype-dir --with-t1lib=/usr/include --with-gd=/usr/lib --enable-gd-native-ttf --enable-gd-imgstrttf --with-gettext --with-gmp --with-imap --with-imap-ssl --with-ldap --enable-mbstring --with-mcrypt --with-mhash --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-pgsql=/usr --enable-pcntl --with-mm --enable-shmop --with-snmp --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-xmlrpc --with-xsl --enable-yp --with-pear --enable-memory-limit --enable-zend-multibyte
in /usr/include liegt die t1lib.h und t1libx.h

Wer kann mit helfen?

Re: Problem beim Update PHP 5.0.3 -> t1lib; gdlib

Posted: 2005-02-07 16:42
by Joe User
Deine Version der t1lib ist nicht mit PHP 5.x kompatible...

Re: Problem beim Update PHP 5.0.3 -> t1lib; gdlib

Posted: 2005-02-07 17:06
by thoste
Hi Joe User,

danke für den Tipp. Ein neueres RPM für Suse 9.x scheint es ja nicht zu geben. Kannst du mir noch sagen, ab welcher Version die t1lib kompatibel ist? habe im Netz bisher nur die 1.3.1 gefunden.

Oder ist gar mein Ansatz zum Update falsch? Ich habe php 5.0.2 ohne gdlib funktion bereits installiert und brauche die GDlib

Beste Grüße

Re: Problem beim Update PHP 5.0.3 -> t1lib; gdlib

Posted: 2005-02-07 17:28
by Joe User

Code: Select all

cd /usr/local/src
wget ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-5.0.2.tar.gz
tar xzf t1lib-5.0.2.tar.gz
cd /usr/local/src/t1lib-5.0.2
./configure --prefix=/usr/local --mandir=/usr/local/share/man && make without_doc && make install
HTH

Re: Problem beim Update PHP 5.0.3 -> t1lib; gdlib

Posted: 2005-02-07 18:22
by thoste
Hi,

besten Dank. Jetzt läuft php in der Version 5.0.3.



Beste Grüße

PS: --- Edit: *andenkopfhau* php.ini ändern ---