GNT sans publicité, site mobile, fonctionnalitées exclusives...

Erreur compilation PHP 4.3.7

Le
Julien
Bonsoir,

Tout d'abord je précise que je débute en linux.

Voilà mon problème, j'essaye d'inatller php-4.3.7 depuis les sources avec la
commande suivante :

./configure --host=i386-redhat-linux --build=i386-redhat-linux --target=i386
-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindi
r=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --incl
udedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstate
dir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/sh
are/info --cache-file=../config.cache --with-config-file-path=/etc --with-co
nfig-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug --
enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db
4 --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/
usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext -
-with-ncurses --with-gmp --with-iconv --with-openssl --with-regex=system --w
ith-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath
--enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable
-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-tr
ack-vars --enable-trans-sid --enable-yp --enable-wddx --without-oci8 --with-
pear=/usr/share/pear --with-kerberos=/usr/kerberos --with-ldap=shared --with
-mysql=shared,/usr --with-unixODBC=shared --enable-memory-limit --enable-bcm
ath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enab
le-dio --enable-mcal --with-apxs2=/usr/local/apache2/bin/apxs

Ensuite, j'utilise "make" mais j'ai ce message d'erreur :

[root@h3 php-4.3.7]# make
/bin/sh
/downloads/php4.3.7/php-4.3.7/libtool --silent --preserve-dup-deps --mode=co
mpile
gcc -I/downloads/php4.3.7/php-4.3.7/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBFRE
ETYPE -Iext/gd/ -I/downloads/php4.3.7/php-4.3.7/ext/gd/ -DPHP_ATOM_INC -I/do
wnloads/php4.3.7/php-4.3.7/include -I/downloads/php4.3.7/php-4.3.7/main -I/d
ownloads/php4.3.7/php-4.3.7 -I/downloads/php4.3.7/php-4.3.7/Zend -I/usr/kerb
eros/include -I/usr/include/libxml2 -I/usr/local/include -I/usr/local/includ
e/freetype2 -I/usr/include/mysql -I/usr/include/ncurses -I/downloads/php4.3
.7/php-4.3.7/TSRM -g -O2 -prefer-pic -c
/downloads/php4.3.7/php-4.3.7/ext/gd/libgd/gdft.c -o ext/gd/libgd/gdft.lo
/downloads/php4.3.7/php-4.3.7/ext/gd/libgd/gdft.c: In function
`gdImageStringFTEx':
/downloads/php4.3.7/php-4.3.7/ext/gd/libgd/gdft.c:988:
`FT_ENCODING_MS_SYMBOL' undeclared (first use in this function)
/downloads/php4.3.7/php-4.3.7/ext/gd/libgd/gdft.c:988: (Each undeclared
identifier is reported only once
/downloads/php4.3.7/php-4.3.7/ext/gd/libgd/gdft.c:988: for each function it
appears in.)
make: *** [ext/gd/libgd/gdft.lo] Error 1

Quelqu'un saurait décrypter ce problème ?

Merci !
chatlumo @ hotmail.com
Lire les 8 réponses

Vidéos High-Tech et Jeu Vidéo
Téléchargements
Vos réponses Page 1 / 2
Gagnez chaque mois un abonnement Premium avec GNT : Inscrivez-vous !
Trier par : date / pertinence
Julien
Le #1092851
tu as installé freetype2 ?

http://sourceforge.net/project/show...roup_id157



Oui je l'ai installé.
Tu penses que ça a un rapport avec ça ?
D'après le message je pensais que c'était plutôt un souci avec la librairie
GD.

Julien
Le #1092850
Oui je l'ai installé.
Tu penses que ça a un rapport avec ça ?
D'après le message je pensais que c'était plutôt un souci avec la
librairie

GD.


J'ai installé gd-2.0.26, a priori c'est bon non ?

Rakotomandimby Mihamina
Le #1092848
Oui

Peux tu nous dire comment as tu installé freetype 2 ?
rpm ou sources ( si sources, dire les options de ./configure )
et nous dire dans quel repertoire il est installé.

D'apres tes option de ./configure il est dans /usr .
Si il n'est pas reellement dedans, le probleme est la .

J'ai installé php-4.3.7 cet aprem et si j'active gd avec ttf , ben j'ai
eu une erreur pareille ( pas sur a 100%) jusqu'a ce que j'aie bien
indiqué ou se trouve freetype 2 (j'insiste sur le _2_ ) .

PS : avant de recompiler, n'oublie pas le "make clean"
--
Rakotomandimby Mihamina Andrianifaharana
Tel : +33 2 38 76 43 65
http://stko.dyndns.info/site_princi...s/mihamina
Julien
Le #1092691
D'apres tes option de ./configure il est dans /usr .
Si il n'est pas reellement dedans, le probleme est la .

J'ai installé php-4.3.7 cet aprem et si j'active gd avec ttf , ben j'ai
eu une erreur pareille ( pas sur a 100%) jusqu'a ce que j'aie bien
indiqué ou se trouve freetype 2 (j'insiste sur le _2_ ) .

PS : avant de recompiler, n'oublie pas le "make clean"


C'était bien ça, il fallait que je mette /usr/local

Merci beaucoup !

Publicité
Suivre les réponses
Poster une réponse
Anonyme