PHP5 and a lot of undefined references

Invader Zim

Verified User
Joined
Sep 4, 2004
Messages
184
So we've got 3 FreeBSD 6.1 servers, both running DirectAdmin. All were running PHP 4.4.7. All machines use the same configure.php.

We upgraded 2 of the servers to PHP 5.2.5 and all was well. The third server however refuses to build php, but everytime it aborts, it comes up with a different error message. Well, I say different, but it's technically the same: it's all undefined references, but the weird thing is that everytime it's something else that is referred to. See below for a small example. I've seen a lot more come by than just these.

Zend/zend.o(.text+0x3cd): In function `zend_startup':
/usr/local/directadmin/customapache/php-5.2.5/Zend/zend.c:608: undefined reference to `execute'
Zend/zend.o(.text+0x3e6):/usr/local/directadmin/customapache/php-5.2.5/Zend/zend.c:612: undefined reference to `zend_init_opcodes_handlers'
*** Error code 1


sapi/cli/.libs/php_cli.o(.text+0x1779): In function `main':
/usr/local/directadmin/customapache/php-5.2.5/sapi/cli/php_cli.c:1221: undefined reference to `compiler_globals'
sapi/cli/.libs/php_cli.o(.text+0x1783):/usr/local/directadmin/customapache/php-5.2.5/sapi/cli/php_cli.c:1223: undefined reference to `executor_globals'
*** Error code 1


sapi/cli/.libs/php_cli.o(.text+0x13e4):/usr/local/directadmin/customapache/php-5.2.5/sapi/cli/php_cli.c:1210: more undefined references to `executor_globals' follow
sapi/cli/.libs/php_cli.o(.text+0x1779): In function `main':
/usr/local/directadmin/customapache/php-5.2.5/sapi/cli/php_cli.c:1221: undefined reference to `compiler_globals'
sapi/cli/.libs/php_cli.o(.text+0x1783):/usr/local/directadmin/customapache/php-5.2.5/sapi/cli/php_cli.c:1223: undefined reference to `executor_globals'
*** Error code 1


ext/xmlreader/.libs/php_xmlreader.o(.text+0x15ca): In function `zim_xmlreader_expand':
/usr/local/directadmin/customapache/php-5.2.5/ext/xmlreader/php_xmlreader.c:1158: undefined reference to `php_dom_create_object'
main/.libs/internal_functions_cli.o(.data+0x8): In function `php_register_internal_extensions':
main/internal_functions_cli.c:118: undefined reference to `dom_module_entry'
*** Error code 1


ext/standard/.libs/basic_functions.o(.data+0x1d44): In function `zif_get_cfg_var':
/usr/local/directadmin/customapache/php-5.2.5/ext/standard/basic_functions.c:4858: undefined reference to `zif_rewinddir'
ext/standard/.libs/basic_functions.o(.data+0x1d58):/usr/local/directadmin/customapache/php-5.2.5/ext/standard/basic_functions.c:4872: undefined reference to `php_if_readdir'
ext/standard/.libs/basic_functions.o(.data+0x1d6c):/usr/local/directadmin/customapache/php-5.2.5/ext/standard/basic_functions.c:4862: undefined reference to `zif_getdir'
ext/standard/.libs/basic_functions.o(.data+0x1d80):/usr/local/directadmin/customapache/php-5.2.5/ext/standard/basic_functions.c:4866: undefined reference to `zif_scandir'
ext/standard/.libs/basic_functions.o(.data+0x1d94):/usr/local/directadmin/customapache/php-5.2.5/ext/standard/basic_functions.c:4866: undefined reference to `zif_glob'
*** Error code 1


The other weird thing is that all I did between a few tries was

./build clean ; ./build php n

and it's a different reference every time. Anyway, now we're running 2 servers on PHP 5.2.5 and one on 4.4.7 because it just will not build php. Does anybody have any suggestions? I just quit after 5 hours and went to bed.
 
Last edited:
Back
Top