Pages : 1
#1 Le 22/10/2007, à 11:43
- Folken Laëneck
[Résolu] Un problème à la compilation de PHP
Bonjour,
J'ai besoin sur mon serveur de développement de faire tourner PHP4 et PHP5 simultanément. J'ai suivi cette méthode : http://cdemarche.developpez.com/php/php_multi/ , qui me semblait une bonne façon de faire - ce dont je reste convaincu -.
En clair, tout semble fonctionner à merveille, à ceci près que ma seconde instance d'Apache est incapable de trouver la libphp4.so nécessaire. Et pour cause, elle n'existe pas.
J'ai donc tenté de trouver les options de configuration pour compiler PHP4 comme il faut en faisant en sorte qu'il me génère mon libphp4.so, et je pense avoir trouver avec cette commande :
./configure --enable-track-vars --with-mysql --with-apxs2=/usr/bin/apxs2 --prefix=/usr/lib/php4 --with-config-file-path=/etc/php4/apache2/ --with-zlib --with-gd
- J'ai du au passage installer de nombreuses librairies pour réussir la compilation, dont les paquets de developpement pour Apache, mais ce me semble logique au final -
Seulement voilà, même si le ./configure se passe bien, le make lui a une tout autre réponse. Voyez plutôt :
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
ext/standard/info.lo: In function `zif_php_sapi_name':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:981: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:982: undefined reference to `_estrndup'
ext/standard/info.lo: In function `zif_zend_logo_guid':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:969: undefined reference to `_estrndup'
ext/standard/info.lo: In function `zif_php_egg_logo_guid':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:957: undefined reference to `_estrndup'
ext/standard/info.lo: In function `zif_php_logo_guid':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:945: undefined reference to `_estrndup'
ext/standard/info.lo: In function `zif_phpcredits':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:924: undefined reference to `zend_parse_parameters'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:932: undefined reference to `php_print_credits'
ext/standard/info.lo: In function `zif_phpversion':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:912: undefined reference to `zend_wrong_param_count'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:903: undefined reference to `zend_get_parameters_ex'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:905: undefined reference to `_convert_to_string'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:906: undefined reference to `zend_get_module_version'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:910: undefined reference to `_estrndup'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:902: undefined reference to `_estrndup'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:905: undefined reference to `_emalloc'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:905: undefined reference to `_zval_copy_ctor'
ext/standard/info.lo: In function `register_phpinfo_constants':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:850: undefined reference to `zend_register_long_constant'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:851: undefined reference to `zend_register_long_constant'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:852: undefined reference to `zend_register_long_constant'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:853: undefined reference to `zend_register_long_constant'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:854: undefined reference to `zend_register_long_constant'
ext/standard/info.lo:/home/folken/Depot/php-4.4.7/ext/standard/info.c:855: more undefined references to `zend_register_long_constant' follow
ext/standard/info.lo: In function `php_info_print_table_colspan_header':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:741: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:742: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:745: undefined reference to `php_printf'
ext/standard/info.lo: In function `php_info_print_hr':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:730: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:731: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:733: undefined reference to `php_printf'
ext/standard/info.lo: In function `php_info_print_table_end':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:698: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:699: undefined reference to `php_printf'
ext/standard/info.lo: In function `php_info_print_box_end':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:722: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:723: undefined reference to `php_printf'
ext/standard/info.lo: In function `php_info_print_table_start':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:689: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:690: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:692: undefined reference to `php_printf'
ext/standard/info.lo: In function `php_info_print_box_start':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:708: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:712: undefined reference to `sapi_module'
ext/standard/info.lo: In function `php_info_print_table_header':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:760: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:769: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:770: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:771: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:768: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:773: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:775: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:781: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:782: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:777: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:761: undefined reference to `php_printf'
ext/standard/info.lo: In function `_display_module_info':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:86: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:87: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:95: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:96: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:97: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:98: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:99: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:101: undefined reference to `php_printf'
ext/standard/info.lo:/home/folken/Depot/php-4.4.7/ext/standard/info.c:102: more undefined references to `php_printf' follow
ext/standard/info.lo: In function `php_info_html_esc':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:216: undefined reference to `php_escape_html_entities'
ext/standard/info.lo: In function `php_info_print_table_row':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:804: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:821: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:823: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:824: undefined reference to `_efree'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:832: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:808: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:809: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:815: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:816: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:832: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:833: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:838: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:839: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:818: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:826: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:828: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:835: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:805: undefined reference to `php_printf'
ext/standard/info.lo: In function `php_print_gpcse_array':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:119: undefined reference to `executor_globals'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:119: undefined reference to `zend_hash_find'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:121: undefined reference to `zend_hash_internal_pointer_reset_ex'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:148: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:162: undefined reference to `_zval_copy_ctor'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:163: undefined reference to `_convert_to_string'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:164: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:166: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:175: undefined reference to `_zval_dtor'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:189: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:190: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:194: undefined reference to `zend_hash_move_forward_ex'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:122: undefined reference to `zend_hash_get_current_data_ex'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:123: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:129: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:130: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:132: undefined reference to `zend_hash_get_current_key_ex'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:146: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:147: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:150: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:153: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:154: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:155: undefined reference to `zend_print_zval_r_ex'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:156: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:189: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:192: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:177: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:179: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:124: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:125: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:134: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:136: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:137: undefined reference to `_efree'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:143: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:158: undefined reference to `zend_print_zval_r'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:139: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:169: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:170: undefined reference to `_efree'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:182: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:183: undefined reference to `_efree'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:173: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:186: undefined reference to `php_body_write'
ext/standard/info.lo: In function `php_info_write_wrapper':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:69: undefined reference to `php_escape_html_entities'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:71: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:73: undefined reference to `_efree'
ext/standard/info.lo: In function `php_get_uname':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:321: undefined reference to `ap_php_snprintf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:331: undefined reference to `_estrdup'
ext/standard/info.lo: In function `zif_php_uname':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:996: undefined reference to `zend_parse_parameters'
ext/standard/info.lo: In function `php_info_print_style':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:204: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:205: undefined reference to `php_info_print_css'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:206: undefined reference to `php_printf'
ext/standard/info.lo: In function `php_print_info_htmlhead':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:372: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:373: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:374: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:376: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:377: undefined reference to `php_body_write'
ext/standard/info.lo:/home/folken/Depot/php-4.4.7/ext/standard/info.c:381: more undefined references to `php_body_write' follow
ext/standard/info.lo: In function `php_print_info':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:403: undefined reference to `zend_ini_long'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:410: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:565: undefined reference to `zend_ini_sort_entries'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:601: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:601: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:605: undefined reference to `_estrdup'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:613: undefined reference to `_efree'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:621: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:621: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:625: undefined reference to `executor_globals'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:625: undefined reference to `zend_hash_find'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:628: undefined reference to `executor_globals'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:628: undefined reference to `zend_hash_find'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:631: undefined reference to `executor_globals'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:631: undefined reference to `zend_hash_find'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:634: undefined reference to `executor_globals'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:634: undefined reference to `zend_hash_find'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:648: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:667: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:668: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:669: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:670: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:671: undefined reference to `php_body_write'
ext/standard/info.lo:/home/folken/Depot/php-4.4.7/ext/standard/info.c:672: more undefined references to `php_body_write' follow
ext/standard/info.lo: In function `php_print_info':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:680: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:681: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:413: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:417: undefined reference to `get_zend_version'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:422: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:440: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:452: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:462: undefined reference to `php_ini_opened_path'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:471: undefined reference to `ap_php_snprintf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:474: undefined reference to `ap_php_snprintf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:477: undefined reference to `ap_php_snprintf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:504: undefined reference to `_php_stream_get_url_stream_wrappers_hash'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:505: undefined reference to `zend_hash_internal_pointer_reset_ex'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:508: undefined reference to `_erealloc'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:507: undefined reference to `zend_hash_move_forward_ex'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:506: undefined reference to `zend_hash_get_current_key_ex'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:521: undefined reference to `_efree'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:536: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:545: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:546: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:546: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:547: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:549: undefined reference to `_efree'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:649: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:651: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:652: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:653: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:654: undefined reference to `php_body_write'
ext/standard/info.lo:/home/folken/Depot/php-4.4.7/ext/standard/info.c:655: more undefined references to `php_body_write' follow
ext/standard/info.lo: In function `php_print_info':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:552: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:554: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:555: undefined reference to `sapi_globals'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:557: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:558: undefined reference to `_efree'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:560: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:561: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:562: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:583: undefined reference to `zend_hash_init'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:584: undefined reference to `module_registry'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:584: undefined reference to `zend_hash_copy'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:585: undefined reference to `zend_qsort'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:585: undefined reference to `zend_hash_sort'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:588: undefined reference to `zend_hash_apply_with_argument'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:590: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:594: undefined reference to `zend_hash_apply_with_argument'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:597: undefined reference to `zend_hash_destroy'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:569: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:570: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:574: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:574: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:575: undefined reference to `display_ini_entries'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:574: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:426: undefined reference to `sapi_module'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:427: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:428: undefined reference to `sapi_globals'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:430: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:431: undefined reference to `_efree'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:436: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:590: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:441: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:537: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:538: undefined reference to `sapi_globals'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:540: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:541: undefined reference to `_efree'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:543: undefined reference to `php_body_write'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:434: undefined reference to `php_body_write'
ext/standard/info.lo: In function `zif_phpinfo':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:876: undefined reference to `zend_parse_parameters'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:885: undefined reference to `php_start_ob_buffer'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:887: undefined reference to `php_end_ob_buffer'
ext/standard/info.lo: In function `zif_php_sapi_name':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:978: undefined reference to `zend_wrong_param_count'
ext/standard/info.lo: In function `zif_zend_logo_guid':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:966: undefined reference to `zend_wrong_param_count'
ext/standard/info.lo: In function `zif_php_egg_logo_guid':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:954: undefined reference to `zend_wrong_param_count'
ext/standard/info.lo: In function `zif_php_logo_guid':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:942: undefined reference to `zend_wrong_param_count'
ext/standard/info.lo: In function `php_info_print_box_start':
/home/folken/Depot/php-4.4.7/ext/standard/info.c:715: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:713: undefined reference to `php_printf'
/home/folken/Depot/php-4.4.7/ext/standard/info.c:709: undefined reference to `php_printf'
main/internal_functions_cli.lo: In function `php_startup_internal_extensions':
/home/folken/Depot/php-4.4.7/main/internal_functions_cli.c:65: undefined reference to `php_startup_extensions'
main/internal_functions_cli.lo:(.data+0x0): undefined reference to `xml_module_entry'
main/internal_functions_cli.lo:(.data+0x4): undefined reference to `tokenizer_module_entry'
main/internal_functions_cli.lo:(.data+0x8): undefined reference to `basic_functions_module'
main/internal_functions_cli.lo:(.data+0xc): undefined reference to `session_module_entry'
main/internal_functions_cli.lo:(.data+0x10): undefined reference to `posix_module_entry'
main/internal_functions_cli.lo:(.data+0x14): undefined reference to `overload_module_entry'
main/internal_functions_cli.lo:(.data+0x18): undefined reference to `mysql_module_entry'
main/internal_functions_cli.lo:(.data+0x1c): undefined reference to `gd_module_entry'
main/internal_functions_cli.lo:(.data+0x20): undefined reference to `ctype_module_entry'
main/internal_functions_cli.lo:(.data+0x24): undefined reference to `php_zlib_module_entry'
main/internal_functions_cli.lo:(.data+0x28): undefined reference to `pcre_module_entry'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Erreur 1
Les docs étant assez flou sur le sujet et mes recherches plus ou moins infructueuses, j'aimerais savoir si parmis vous quelqu'un pourrait m'aider à compler ce *grmbl* de PHP4.
Je m'en passerais volontier, mais je dois maintenir un site utilisant des librairies propres à cette version de PHP4. Et j'aimerais au moins le voir en fonctionnement avant de réécrire le code pour une éventuelle migration vers PHP5.
Merci d'avance
Dernière modification par Folken Laëneck (Le 22/10/2007, à 17:34)
Hors ligne
#2 Le 22/10/2007, à 12:36
- NP
Re : [Résolu] Un problème à la compilation de PHP
http://cdemarche.developpez.com/php/php_multi/
Très claire la doc non ?
Hors ligne
#3 Le 22/10/2007, à 13:02
- Folken Laëneck
Re : [Résolu] Un problème à la compilation de PHP
Très claire la doc non ?
Très justement, j'ai d'ailleurs passé avec succès toutes les autres étapes, même celles qui suivent le compilation de PHP. Je peux d'ores et déjà créer une seconde instance d'Apache sur mon poste, qui utilisera un port différent du port 80 et est entièrement indépendante de la première au niveau configuration.
Tout cela ne pose aucun soucis - je me suis presque fait peur à comprendre, adapter à mon besoin (puisque j'ai un Apache2) et parfois anticiper chaque étape du tuto -.
Le seul et unique soucis vient de la génération du fichier libphp4.so
Les options de compilation sont justes, le lien vers apxs2 étant la dernière chose qui me manquait encore ce matin, mais lors du make, il me renvoit bel et bien une erreur, citée plus haut - je ne met pas la sortie complète du make, elle est énorme comme toujours. J'ai réduit à partir de la première ligne d'erreur -.
La solution n'est pas dans le tuto, et je ne l'ai pas trouvée sur le net malgré mes recherches. Si je pose la question c'est justement parce que je suis visiblement bloqué et ai besoin de l'expérience de quelqu'un d'autre, pas d'un cours de lecture
[Edit]
Je viens de découvrir 'make clean' et son intérêt.
Il s'agissait tout simplement de cela ...
Dernière modification par Folken Laëneck (Le 22/10/2007, à 17:32)
Hors ligne
#4 Le 22/10/2007, à 19:30
- NP
Re : [Résolu] Un problème à la compilation de PHP
Ah pardon, je n'ai pas fait attention que je t'ai refilé le même lien ! lol
Comme tu parlais de doc floue j'ai fais une petite recherche et celle là me semblait super. désolé.
Problèmes de make clean... on se fait avoir quelques fois et après ça deviens un réflexe. Tellement que l'on y pense plus et que l'on n'en fait pas profiter les autres
Hors ligne
Pages : 1