Bonjour,
Je ne parviens pas à faire fonctionner gd avec php.
J’ai désintallé réinstallé php et gd plusieurs fois, vérifié les dépendances de gd.
Rien n’y fait…
Voiçi la liste des paquetages installés :
- libapache2-mod-php5 5.4.4-14+deb7u8
- php5-cli 5.4.4-14+deb7u8
- php-pear 5.4.4-14+deb7u8
- php5-gd 5.4.4-14+deb7u8
Dépendances de php-gd :
- php5-common 5.4.4-14+deb7u8
- ibc6 2.13-38+deb7u1
- libfreetype6 2.4.9-1.1
- libgd2-xpm 2.0.36~rc1~dfsg-6.1
- libjpeg8 8d-1
- libpng12-0 1.2.49-1
- libx11-6 2:1.5.0-1+deb7u1
- libxpm4 1:3.5.10-1
- ucf 3.0025+nmu3
- zlib1g 1:1.2.7.dfsg-13
Voilà ce que donne php -m
:
[code]$php -m
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20100525/gd.so’ - /usr/lib/php5/20100525/gd.so: undefined symbol: gdImageCreateFromPngCtx in Unknown on line 0
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mhash
openssl
pcntl
pcre
PDO
pdo_pgsql
pgsql
Phar
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
[/code]
Et enfin ldd :
$ ldd -d /usr/lib/php5/20100525/gd.so
linux-vdso.so.1 => (0x00007fff735ff000)
libgd.so.2 => /usr/local/lib/libgd.so.2 (0x00007f3b4268e000)
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x00007f3b42402000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f3b420c6000)
libXpm.so.4 => /usr/lib/x86_64-linux-gnu/libXpm.so.4 (0x00007f3b41eb5000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f3b41c8e000)
libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f3b41a76000)
libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f3b4183c000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3b414b1000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f3b41279000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3b40ff7000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f3b40dd7000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3b40bd2000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3b42b03000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f3b409a8000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f3b407a4000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f3b4059f000)
undefined symbol: gdImageCreateFromPngCtx (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_stream_stdio_ops (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_sig_jpg (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_sig_png (/usr/lib/php5/20100525/gd.so)
undefined symbol: gdImageCreateFromPng (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_sig_gif (/usr/lib/php5/20100525/gd.so)
undefined symbol: gdImagePngCtxEx (/usr/lib/php5/20100525/gd.so)
undefined symbol: convert_to_long (/usr/lib/php5/20100525/gd.so)
undefined symbol: _php_stream_cast (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_parse_parameters (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_register_ini_entries (/usr/lib/php5/20100525/gd.so)
undefined symbol: _zend_list_find (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_check_open_basedir (/usr/lib/php5/20100525/gd.so)
undefined symbol: ap_php_snprintf (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_wrong_param_count (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_register_string_constant (/usr/lib/php5/20100525/gd.so)
undefined symbol: _safe_emalloc (/usr/lib/php5/20100525/gd.so)
undefined symbol: convert_to_double (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_open_temporary_file (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_fetch_resource (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_info_print_table_row (/usr/lib/php5/20100525/gd.so)
undefined symbol: add_assoc_string_ex (/usr/lib/php5/20100525/gd.so)
undefined symbol: _zend_list_delete (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_register_resource (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_hash_num_elements (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_hash_index_find (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_ini_long (/usr/lib/php5/20100525/gd.so)
undefined symbol: add_assoc_bool_ex (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_list_insert (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_register_long_constant (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_hash_get_current_key_ex (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_error_docref0 (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_info_print_table_end (/usr/lib/php5/20100525/gd.so)
undefined symbol: display_ini_entries (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_register_list_destructors_ex (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_hash_get_current_data_ex (/usr/lib/php5/20100525/gd.so)
undefined symbol: _php_stream_copy_to_mem (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_write (/usr/lib/php5/20100525/gd.so)
undefined symbol: _array_init (/usr/lib/php5/20100525/gd.so)
undefined symbol: _convert_to_string (/usr/lib/php5/20100525/gd.so)
undefined symbol: _efree (/usr/lib/php5/20100525/gd.so)
undefined symbol: _php_stream_seek (/usr/lib/php5/20100525/gd.so)
undefined symbol: gdImageCreateFromPng (/usr/lib/php5/20100525/gd.so)
undefined symbol: _php_stream_open_wrapper_ex (/usr/lib/php5/20100525/gd.so)
undefined symbol: _php_stream_free (/usr/lib/php5/20100525/gd.so)
undefined symbol: _php_stream_eof (/usr/lib/php5/20100525/gd.so)
undefined symbol: _php_stream_read (/usr/lib/php5/20100525/gd.so)
undefined symbol: _estrndup (/usr/lib/php5/20100525/gd.so)
undefined symbol: _emalloc (/usr/lib/php5/20100525/gd.so)
undefined symbol: _php_stream_tell (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_hash_internal_pointer_reset_ex (/usr/lib/php5/20100525/gd.so)
undefined symbol: _zval_copy_ctor_func (/usr/lib/php5/20100525/gd.so)
undefined symbol: zend_hash_move_forward_ex (/usr/lib/php5/20100525/gd.so)
undefined symbol: add_assoc_long_ex (/usr/lib/php5/20100525/gd.so)
undefined symbol: add_next_index_long (/usr/lib/php5/20100525/gd.so)
undefined symbol: php_info_print_table_start (/usr/lib/php5/20100525/gd.so)
Merci d’avance de votre aide.