Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Erreur compilation PHP 4.3.7

8 réponses
Avatar
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

8 réponses

Avatar
Huwiler Sylvain
tu as installé freetype2 ?

http://sourceforge.net/project/showfiles.php?group_id157
Avatar
Julien
tu as installé freetype2 ?

http://sourceforge.net/project/showfiles.php?group_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.

Avatar
Julien
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 ?

Avatar
Rakotomandimby Mihamina
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_principal/Members/mihamina
Avatar
Julien
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 !

Avatar
Julien
J'ai suivi les instructions trouvées ici :
http://fr.php.net/manual/fr/print/install.apache2.php

En ajoutant d'autres options à configure.

Tout s'est bien passé mais lorsque je vais sur une page avec un phpinfo, il
m'affiche toujours la version 4.2.2 (mon ancienne version).

Dois-je faire une autre manip ?

Merci.
Avatar
Julien
"Julien" a écrit dans le message de
news:40cf6ced$0$7715$
J'ai suivi les instructions trouvées ici :
http://fr.php.net/manual/fr/print/install.apache2.php

En ajoutant d'autres options à configure.

Tout s'est bien passé mais lorsque je vais sur une page avec un phpinfo,
il

m'affiche toujours la version 4.2.2 (mon ancienne version).

Dois-je faire une autre manip ?

Merci.



Problème résolu, désolé.

Avatar
Julien
Bon je viens de faire un test tout bête en voulant exécuter une requête via
php (pour mysql)

et j'ai l'erreur :
Fatal error: Call to undefined function: mysql_connect()

J'ai compilé php 4.3.7 avec l'option :
--with-mysql=shared,/usr

est invalide ?
Merci.