Re: EAPI/PHP 4.0.3pl1 compile
| From: | Patrick Lanphier | Date: | Sun, 05 Nov 2000 17:39:22 +0000 |
| Subject: | Re: EAPI/PHP 4.0.3pl1 compile | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-622@lists.php.net to get a copy of this message | ||
That didn't seem to do it. Below are the error messages again when
attempting compile apache with EAPI and PHP. My configuration looks like
this. Thanks everyone for your help on this issue.
*******************************************
export LDFLAGS='-L/usr/lib -lgdbm'
rm config.cache
make clean
./configure \
--with-layout=RedHat \
--enable-module=all \
--enable-shared=max \
--activate-module=src/modules/php4/libphp4.a
make
**********************************************
gcc -c -I./os/unix -I./include -DLINUX=2
-I/home/installations/php-4.0.3pl1 -I/home/instal
.3pl1/main -I/home/installations/php-4.0.3pl1/main
-I/home/installations/php-4.0.3pl1/Zend -I
ions/php-4.0.3pl1/Zend -I/home/installations/php-4.0.3pl1/TSRM
-I/home/installations/php-4.0.
me/installations/php-4.0.3pl1 -DUSE_EXPAT -I./lib/expat-lite
./apaci
modules.c
gcc -c -I./os/unix -I./include -DLINUX=2
-I/home/installations/php-4.0.3pl1 -I/home/instal
.3pl1/main -I/home/installations/php-4.0.3pl1/main
-I/home/installations/php-4.0.3pl1/Zend -I
ions/php-4.0.3pl1/Zend -I/home/installations/php-4.0.3pl1/TSRM
-I/home/installations/php-4.0.
me/installations/php-4.0.3pl1 -DUSE_EXPAT -I./lib/expat-lite ./apaci
buildmark.c
gcc -DLINUX=2 -I/home/installations/php-4.0.3pl1
-I/home/installations/php-4.0.3pl1/main -I/
ons/php-4.0.3pl1/main -I/home/installations/php-4.0.3pl1/Zend
-I/home/installations/php-4.0.3
e/installations/php-4.0.3pl1/TSRM -I/home/installations/php-4.0.3pl1/TSRM
-I/home/installatio
-DUSE_EXPAT -I./lib/expat-lite ./apaci -L/usr/lib -lgdbm -rdynamic \
-o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/php4/libphp4.a ma
os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -rdynamic
-Lmodules/php4 -L../modules/
dules/php4 -lmodphp4 -lpam -ldl -lresolv -lm -ldl -lcrypt -lnsl
-lresolv -lm -lcrypt -ld
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'
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'
mod_php4.o(.text+0x68e): undefined reference to `sapi_globals'
mod_php4.o(.text+0x694): undefined reference to `sapi_globals'
mod_php4.o(.text+0x69c): undefined reference to `sapi_globals'
mod_php4.o(.text+0x6a2): undefined reference to `_estrdup'
mod_php4.o(.text+0x6ac): undefined reference to `sapi_globals'
mod_php4.o(.text+0x6b4): undefined reference to `sapi_globals'
mod_php4.o(.text+0x6be): 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_wr
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
Patrick Lanphier
The Artemis Group
http://www.artemisgroup.com
On Fri, 3 Nov 2000, Rasmus Lerdorf wrote:
> Probably due to a glibc-2.1.x bug related to dynamically loading a library
> linked against pthreads into a binary that isn't linked against
> pthreads. Try it using --without-mysql and see if it works. If it does
> then you know it is a mysql-related problem. To fix it you will need the
> non-threaded mysql client rpm available from www.mysql.com.
>
> -Rasmus
>
> On Fri, 3 Nov 2000, Lic. Rodolfo Gonzalez Gonzalez wrote:
>
> > Hi,
> >
> > I fact dunno if it's due to EAPI, anyway, I can't manage to get PHP
> > running as a DSO with Apache (the latest upgrade from RH) under RedHat
> > 6.2. RedHat provides a PHP3 (they say it's 'cause a "binary
> > incompatibility" between Apache and the original PHP rpm which came with
> > RH6.2). The fact is that httpd doens't start after installing PHP3 (or
> > PHP4) compiled in my box just with --with-apxs, --with-gd, --with-mysql
> > and --with-pgsql, and it dies without logging ANY error, the processes
> > just suddenly dissapear. Any clue?. Thanks.
> >
> > Rodolfo.
> >
> > 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.
> >
> >
> >
>
>