Re: EAPI/PHP 4.0.3pl1 compile
| From: | Patrick Lanphier | Date: | Fri, 03 Nov 2000 20:20:46 +0000 |
| Subject: | Re: EAPI/PHP 4.0.3pl1 compile | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-602@lists.php.net to get a copy of this message | ||
Below are the errors I receive when attempting to compile with EAPI
statically. It may be something very straight forward, I apologize if it
is.
gcc -c -I./os/unix -I./include -DLINUX=2
-I/home/installations/php-4.0.3pl1 -I/home/installations/php-4.0.3pl1/main
-I/home/installations/php-4.0.3pl1/main
-I/home/installations/php-4.0.3pl1/Zend
-I/home/installations/php-4.0.3pl1/Zend
-I/home/installations/php-4.0.3pl1/TSRM
-I/home/installations/php-4.0.3pl1/TSRM -I/home/installations/php-4.0.3pl1
-DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
./apaci modules.c
gcc -c -I./os/unix -I./include -DLINUX=2
-I/home/installations/php-4.0.3pl1 -I/home/installations/php-4.0.3pl1/main
-I/home/installations/php-4.0.3pl1/main
-I/home/installations/php-4.0.3pl1/Zend
-I/home/installations/php-4.0.3pl1/Zend
-I/home/installations/php-4.0.3pl1/TSRM
-I/home/installations/php-4.0.3pl1/TSRM -I/home/installations/php-4.0.3pl1
-DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci buildmark.c
gcc -DLINUX=2 -I/home/installations/php-4.0.3pl1
-I/home/installations/php-4.0.3pl1/main
-I/home/installations/php-4.0.3pl1/main
-I/home/installations/php-4.0.3pl1/Zend
-I/home/installations/php-4.0.3pl1/Zend
-I/home/installations/php-4.0.3pl1/TSRM
-I/home/installations/php-4.0.3pl1/TSRM -I/home/installations/php-4.0.3pl1
-DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci -L/usr/lib -lgdbm
\
-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/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -rdynamic
-L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -Lmodules/php4
-L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -lc-client -ldl
-lmysqlclient -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lgcc -lm
-lcrypt
modules/php4/libphp4.a(mod_php4.o): In function `sapi_apache_ub_write':
mod_php4.o(.text+0x2c): undefined reference to `sapi_globals'
mod_php4.o(.text+0x34): undefined reference to `sapi_globals'
mod_php4.o(.text+0x76): undefined reference to `core_globals'
mod_php4.o(.text+0x7f): undefined reference to `core_globals'
mod_php4.o(.text+0x87): undefined reference to `zend_bailout'
modules/php4/libphp4.a(mod_php4.o): In function `sapi_apache_read_post':
mod_php4.o(.text+0xba): undefined reference to `sapi_globals'
modules/php4/libphp4.a(mod_php4.o): In function
`sapi_apache_read_cookies':
mod_php4.o(.text+0x151): undefined reference to `sapi_globals'
modules/php4/libphp4.a(mod_php4.o): In function
`sapi_apache_header_handler':
mod_php4.o(.text+0x17b): undefined reference to `sapi_globals'
mod_php4.o(.text+0x25a): undefined reference to `_efree'
modules/php4/libphp4.a(mod_php4.o): In function
`sapi_apache_send_headers':
mod_php4.o(.text+0x26d): undefined reference to `sapi_globals'
mod_php4.o(.text+0x281): undefined reference to `sapi_globals'
mod_php4.o(.text+0x287): undefined reference to `sapi_globals'
mod_php4.o(.text+0x28f): undefined reference to `sapi_globals'
modules/php4/libphp4.a(mod_php4.o): In function
`sapi_apache_register_server_variables':
mod_php4.o(.text+0x2b0): undefined reference to `sapi_globals'
mod_php4.o(.text+0x331): undefined reference to `empty_string'
mod_php4.o(.text+0x34f): undefined reference to `php_register_variable'
mod_php4.o(.text+0x374): undefined reference to `php_register_variable'
mod_php4.o(.text+0x380): undefined reference to `sapi_globals'
mod_php4.o(.text+0x391): undefined reference to `php_register_variable'
modules/php4/libphp4.a(mod_php4.o): In function `php_apache_startup':
mod_php4.o(.text+0x3a8): undefined reference to `php_module_startup'
mod_php4.o(.text+0x3b7): undefined reference to `apache_module_entry'
mod_php4.o(.text+0x3bc): undefined reference to `zend_startup_module'
modules/php4/libphp4.a(mod_php4.o): In function `php_apache_log_message':
mod_php4.o(.text+0x3ed): undefined reference to `sapi_globals'
mod_php4.o(.text+0x3fe): undefined reference to `sapi_globals'
modules/php4/libphp4.a(mod_php4.o): In function
`php_apache_request_shutdown':
mod_php4.o(.text+0x449): undefined reference to `sapi_globals'
mod_php4.o(.text+0x456): undefined reference to `php_request_shutdown'
modules/php4/libphp4.a(mod_php4.o): In function
`php_apache_sapi_activate':
mod_php4.o(.text+0x467): undefined reference to `sapi_globals'
mod_php4.o(.text+0x474): undefined reference to
`php_request_shutdown_for_exec'
mod_php4.o(.text+0x480): undefined reference to `sapi_globals'
mod_php4.o(.text+0x49c): undefined reference to `sapi_globals'
modules/php4/libphp4.a(mod_php4.o): In function `php_apache_get_stat':
mod_php4.o(.text+0x4ad): undefined reference to `sapi_globals'
modules/php4/libphp4.a(mod_php4.o): In function `php_apache_getenv':
mod_php4.o(.text+0x4cc): undefined reference to `sapi_globals'
modules/php4/libphp4.a(mod_php4.o): In function `init_request_info':
mod_php4.o(.text+0x503): undefined reference to `sapi_globals'
modules/php4/libphp4.a(mod_php4.o)(.text+0x536): more undefined references
to `sapi_globals' follow
modules/php4/libphp4.a(mod_php4.o): In function `init_request_info':
mod_php4.o(.text+0x67c): undefined reference to `_estrdup'
mod_php4.o(.text+0x686): undefined reference to `sapi_globals'
modules/php4/libphp4.a(mod_php4.o): In function
`php_apache_alter_ini_entries':
mod_php4.o(.text+0x6f2): undefined reference to `php_alter_ini_entry'
modules/php4/libphp4.a(mod_php4.o): In function
`php_apache_get_default_mimetype':
mod_php4.o(.text+0x70c): undefined reference to `sapi_globals'
mod_php4.o(.text+0x715): undefined reference to `sapi_globals'
mod_php4.o(.text+0x721): undefined reference to
`sapi_get_default_content_type'
mod_php4.o(.text+0x746): undefined reference to `_efree'
modules/php4/libphp4.a(mod_php4.o): In function `send_php':
mod_php4.o(.text+0x76e): undefined reference to `executor_globals'
mod_php4.o(.text+0x7b3): undefined reference to `zend_hash_apply'
mod_php4.o(.text+0x8d8): undefined reference to `sapi_globals'
mod_php4.o(.text+0x907): undefined reference to `apache_php_module_main'
modules/php4/libphp4.a(mod_php4.o): In function
`php_destroy_per_dir_info':
mod_php4.o(.text+0xa50): undefined reference to `zend_hash_destroy'
modules/php4/libphp4.a(mod_php4.o): In function `php_create_dir':
mod_php4.o(.text+0xa8d): undefined reference to `zend_hash_init'
mod_php4.o(.text+0xa95): undefined reference to `zend_hash_destroy'
modules/php4/libphp4.a(mod_php4.o): In function `php_merge_dir':
mod_php4.o(.text+0xad3): undefined reference to `zend_hash_merge_ex'
modules/php4/libphp4.a(mod_php4.o): In function
`php_apache_value_handler_ex':
mod_php4.o(.text+0xb00): undefined reference to `sapi_startup'
mod_php4.o(.text+0xbd3): undefined reference to `zend_hash_add_or_update'
modules/php4/libphp4.a(mod_php4.o): In function
`apache_php_module_shutdown_wrapper':
mod_php4.o(.text+0xd78): undefined reference to `sapi_shutdown'
modules/php4/libphp4.a(mod_php4.o): In function `php_init_handler':
mod_php4.o(.text+0xda4): undefined reference to
`php_module_shutdown_for_exec'
mod_php4.o(.text+0xdd1): undefined reference to `sapi_startup'
mod_php4.o(.text+0xde7): undefined reference to `core_globals'
modules/php4/libphp4.a(mod_php4.o)(.data+0xc): undefined reference to
`php_module_shutdown_wrapper'
modules/php4/libphp4.a(mod_php4.o)(.data+0x28): undefined reference to
`zend_error'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/installations/apache_1.3.12/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/installations/apache_1.3.12'
make: *** [build] Error 2
On Fri, 3 Nov 2000, Rasmus Lerdorf wrote:
> > Has any compiled 4.0.3pl1 with EAPI successfully? It compiles fine as a
> > module but then the apache server will not startup. When attempting to
> > compile statically I get all types of errors referring to undefined
> > functions etc.
>
> Compiles fine for me with EAPI.
>
> You need to provide exact error messages.
>
> -Rasmus
>
>
>