|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-08-08 04:38 UTC] phpbug at dodgeit dot com
Description: ------------ php 4.4.3; attempt build. ./configure \ --with-apxs2=/usr/local/httpd/bin/apxs \ --disable-all \ configure OK, make OK, make install fails with: (excerpt) sapi/cli/php_cli.lo(.text+0x18): In function `print_module_info': : undefined reference to `php_printf' sapi/cli/php_cli.lo(.text+0x89): In function `print_modules': : undefined reference to `zend_hash_init' sapi/cli/php_cli.lo(.text+0xab): In function `print_modules': : undefined reference to `module_registry' sapi/cli/php_cli.lo(.text+0xb6): In function `print_modules': : undefined reference to `zend_hash_copy' sapi/cli/php_cli.lo(.text+0xce): In function `print_modules': : undefined reference to `zend_qsort' sapi/cli/php_cli.lo(.text+0xd9): In function `print_modules': : undefined reference to `zend_hash_sort' sapi/cli/php_cli.lo(.text+0xf4): In function `print_modules': : undefined reference to `zend_hash_apply_with_argument' sapi/cli/php_cli.lo(.text+0xff): In function `print_modules': : undefined reference to `zend_hash_destroy' sapi/cli/php_cli.lo(.text+0x11c): In function `print_extension_info': : undefined reference to `php_printf' sapi/cli/php_cli.lo(.text+0x159): In function `print_extensions': : undefined reference to `zend_extensions' sapi/cli/php_cli.lo(.text+0x164): In function `print_extensions': : undefined reference to `zend_llist_copy' sapi/cli/php_cli.lo(.text+0x17e): In function `print_extensions': : undefined reference to `zend_llist_sort' sapi/cli/php_cli.lo(.text+0x199): In function `print_extensions': : undefined reference to `zend_llist_apply_with_argument' sapi/cli/php_cli.lo(.text+0x1a4): In function `print_extensions': : undefined reference to `zend_llist_destroy' sapi/cli/php_cli.lo(.text+0x1e0): In function `sapi_cli_ub_write': : undefined reference to `php_handle_aborted_connection' sapi/cli/php_cli.lo(.text+0x21e): In function `sapi_cli_flush': latest stable snapshot - same behavior can reproduce with 4.4.2, 4.4.3 and latest snapshot Expected result: ---------------- build successfull Actual result: -------------- see description PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 27 14:00:01 2025 UTC |
I've attempted to recompile multiple times (make clean, make, make install), no change. I'm using a stock Debian Sarge with the 2.6.8 kernel; no custom modifications. Have tried to build against Apache 2.2.2 as well as 1.3.7 (--with-apxs), the result is exactly the same in both cases. I am able to build php 5 successfully against Apache 2.2.2, though, on the same box. I can provide other system information if needed; just let me know what you need. the command that fails is below (and more output). /bin/sh /var/build/php-4.4.3/libtool --silent --preserve-dup-deps --mode=link gcc -export-dynamic -g -O2 regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext/standa rd/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/ crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/ standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_com pat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ex t/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ex t/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microt ime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/sca nf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard /url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnat cmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/st andard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/stan dard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/ag gregation.lo ext/standard/sha1.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.l o main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/all oca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/stn/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory _streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini _parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/z end_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode. lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Z end/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend _builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zen d/zend_strtod.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli. lo -lcrypt -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o sapi/cli/php sapi/cli/php_cli.lo(.text+0x18): In function `print_module_info': /var/build/php-4.4.3/sapi/cli/php_cli.c:124: undefined reference to `php_printf' sapi/cli/php_cli.lo(.text+0x91): In function `print_modules': /var/build/php-4.4.3/sapi/cli/php_cli.c:142: undefined reference to `zend_hash_init' sapi/cli/php_cli.lo(.text+0xb2):/var/build/php-4.4.3/sapi/cli/php_cli.c:143: undefined reference to `modu le_registry' sapi/cli/php_cli.lo(.text+0xbb):/var/build/php-4.4.3/sapi/cli/php_cli.c:143: undefined reference to `zend _hash_copy' sapi/cli/php_cli.lo(.text+0xc5):/var/build/php-4.4.3/sapi/cli/php_cli.c:144: undefined reference to `zend _qsort' sapi/cli/php_cli.lo(.text+0xdb):/var/build/php-4.4.3/sapi/cli/php_cli.c:144: undefined reference to `zend _hash_sort' sapi/cli/php_cli.lo(.text+0xf2):/var/build/php-4.4.3/sapi/cli/php_cli.c:145: undefined reference to `zend _hash_apply_with_argument' sapi/cli/php_cli.lo(.text+0xfa):/var/build/php-4.4.3/sapi/cli/php_cli.c:146: undefined reference to `zend _hash_destroy' sapi/cli/php_cli.lo(.text+0x127): In function `print_extension_info': /var/build/php-4.4.3/sapi/cli/php_cli.c:151: undefined reference to `php_printf' sapi/cli/php_cli.lo(.text+0x162): In function `print_extensions': /var/build/php-4.4.3/sapi/cli/php_cli.c:166: undefined reference to `zend_extensions' sapi/cli/php_cli.lo(.text+0x179):/var/build/php-4.4.3/sapi/cli/php_cli.c:166: undefined reference to `zen d_llist_copy' sapi/cli/php_cli.lo(.text+0x191):/var/build/php-4.4.3/sapi/cli/php_cli.c:168: undefined reference to `zen d_llist_sort' sapi/cli/php_cli.lo(.text+0x1a8):/var/build/php-4.4.3/sapi/cli/php_cli.c:169: undefined reference to `zen d_llist_apply_with_argument' sapi/cli/php_cli.lo(.text+0x1b0):/var/build/php-4.4.3/sapi/cli/php_cli.c:170: undefined reference to `zen d_llist_destroy' sapi/cli/php_cli.lo(.text+0x225): In function `sapi_cli_ub_write': /var/build/php-4.4.3/sapi/cli/php_cli.c:205: undefined reference to `php_handle_aborted_connection' sapi/cli/php_cli.lo(.text+0x281): In function `sapi_cli_register_variables': /var/build/php-4.4.3/sapi/cli/php_cli.c:233: undefined reference to `php_import_environment_variables' sapi/cli/php_cli.lo(.text+0x29a):/var/build/php-4.4.3/sapi/cli/php_cli.c:236: undefined reference to `php _register_variable' sapi/cli/php_cli.lo(.text+0x2b3):/var/build/php-4.4.3/sapi/cli/php_cli.c:237: undefined reference to `php _register_variable' sapi/cli/php_cli.lo(.text+0x2cc):/var/build/php-4.4.3/sapi/cli/php_cli.c:239: undefined reference to `php _register_variable' sd_strndup' sapi/cli/php_cli.lo(.text+0x805):/var/build/php-4.4.3/sapi/cli/php_cli.c:459: undefined reference to `zen d_register_constant' sapi/cli/php_cli.lo(.text+0x80d):/var/build/php-4.4.3/sapi/cli/php_cli.c:461: undefined reference to `_ef ree' sapi/cli/php_cli.lo(.text+0x815):/var/build/php-4.4.3/sapi/cli/php_cli.c:462: undefined reference to `_ef ree' sapi/cli/php_cli.lo(.text+0x81d):/var/build/php-4.4.3/sapi/cli/php_cli.c:463: undefined reference to `_ef ree' sapi/cli/php_cli.lo(.text+0x8e6): In function `cli_seek_file_begin': /var/build/php-4.4.3/sapi/cli/php_cli.c:475: undefined reference to `php_printf' sapi/cli/php_cli.lo(.text+0x9aa): In function `main': /var/build/php-4.4.3/sapi/cli/php_cli.c:548: undefined reference to `sapi_startup' sapi/cli/php_cli.lo(.text+0xa4a):/var/build/php-4.4.3/sapi/cli/php_cli.c:582: undefined reference to `php _module_startup' sapi/cli/php_cli.lo(.text+0xa57):/var/build/php-4.4.3/sapi/cli/php_cli.c:593: undefined reference to `exe cutor_globals' sapi/cli/php_cli.lo(.text+0xa6e):/var/build/php-4.4.3/sapi/cli/php_cli.c:593: undefined reference to `exe cutor_globals' sapi/cli/php_cli.lo(.text+0xa7d):/var/build/php-4.4.3/sapi/cli/php_cli.c:593: undefined reference to `exe cutor_globals' sapi/cli/php_cli.lo(.text+0xa8c):/var/build/php-4.4.3/sapi/cli/php_cli.c:880: undefined reference to `exe cutor_globals' sapi/cli/php_cli.lo(.text+0xa9f):/var/build/php-4.4.3/sapi/cli/php_cli.c:880: undefined reference to `exe cutor_globals' sapi/cli/php_cli.lo(.text+0xaac):/var/build/php-4.4.3/sapi/cli/php_cli.c:883: undefined reference to `php _request_shutdown' sapi/cli/php_cli.lo(.text+0xabc):/var/build/php-4.4.3/sapi/cli/php_cli.c:885: undefined reference to `exe cutor_globals' sapi/cli/php_cli.lo(.text+0xad1):/var/build/php-4.4.3/sapi/cli/php_cli.c:891: undefined reference to `sap i_shutdown' sapi/cli/php_cli.lo(.text+0xae4):/var/build/php-4.4.3/sapi/cli/php_cli.c:889: undefined reference to `php _module_shutdown' sapi/cli/php_cli.lo(.text+0xb06):/var/build/php-4.4.3/sapi/cli/php_cli.c:594: undefined reference to `zen d_llist_init' sapi/cli/php_cli.lo(.text+0xb0c):/var/build/php-4.4.3/sapi/cli/php_cli.c:596: undefined reference to `zen d_uv' sapi/cli/php_cli.lo(.text+0xb14):/var/build/php-4.4.3/sapi/cli/php_cli.c:598: undefined reference to `exe cutor_globals' sapi/cli/php_cli.lo(.text+0xb1f):/var/build/php-4.4.3/sapi/cli/php_cli.c:597: undefined reference to `com piler_globals' sapi/cli/php_cli.lo(.text+0xb79):/var/build/php-4.4.3/sapi/cli/php_cli.c:607: undefined reference to `zen d_alter_ini_entry' sapi/cli/php_cli.lo(.text+0xbb2):/var/build/php-4.4.3/sapi/cli/php_cli.c:608: undefined reference to `zen d_alter_ini_entry' sapi/cli/php_cli.lo(.text+0xbeb):/var/build/php-4.4.3/sapi/cli/php_cli.c:609: undefined reference to `zen d_alter_ini_entry' sapi/cli/php_cli.lo(.text+0xc24):/var/build/php-4.4.3/sapi/cli/php_cli.c:610: undefined reference to `zen ...... sapi/cli/php_cli.lo(.text+0x1220):/var/build/php-4.4.3/sapi/cli/php_cli.c:769: undefined reference to `php_body_write' sapi/cli/php_cli.lo(.text+0x25e): In function `sapi_cli_flush': /var/build/php-4.4.3/sapi/cli/php_cli.c:221: undefined reference to `php_handle_aborted_connection' sapi/cli/php_cli.lo(.text+0x5fb): In function `php_register_command_line_global_vars': /var/build/php-4.4.3/sapi/cli/php_cli.c:414: undefined reference to `_efree' sapi/cli/php_cli.lo(.data+0x2c):/var/build/php-4.4.3/sapi/cli/php_cli.c:126: undefined reference to `php_module_shutdown_wrapper' sapi/cli/php_cli.lo(.data+0x48): In function `module_name_cmp': /var/build/php-4.4.3/sapi/cli/php_cli.c:133: undefined reference to `zend_error' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1Tried to compile as a static module against Apache 1.3.7. Getting the errors below: gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWRITEMAP -DUSE_EXPAT -I./lib/expat-lite `./apaci` -rdynamic \ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/mysql/lib -rdynamic -L/usr/local/mysql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -rdynamic -L/usr/local/mysql/lib -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -lm -lcrypt -ldl modules/php4/libphp4.a(mod_php4.o)(.text+0x35): In function `sapi_apache_ub_write': : undefined reference to `sapi_globals' modules/php4/libphp4.a(mod_php4.o)(.text+0x3d): In function `sapi_apache_ub_write': : undefined reference to `sapi_globals' Something seems to be going on with my system configuration and php's SAPI module. Any ideas?