RE: [PHP-DEV] PHP 4.0 Bug #4994: undefined functions in zend_execute.c cause compile failure
| From: | David Shafer | Date: | Mon, 12 Jun 2000 20:39:06 +0000 |
| Subject: | RE: [PHP-DEV] PHP 4.0 Bug #4994: undefined functions in zend_execute.c cause compile failure | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21156@lists.php.net to get a copy of this message | ||
This problem is fixed with the following:
export CFLAGS="-ma -Dinline="
./configure {your options here}
To the developers: As I understand it, the problem has to do with some
inline declarations in the Zend code. Is there any way this can be fixed in
the code, without the CFLAGS hack above?
- Dave
> -----Original Message-----
> From: garrem@alum.rpi.edu [mailto:garrem@alum.rpi.edu]
> Sent: Monday, June 12, 2000 3:33 PM
> To: php-dev@lists.php.net
> Subject: [PHP-DEV] PHP 4.0 Bug #4994: undefined functions in
> zend_execute.c cause compile failure
>
>
> From: garrem@alum.rpi.edu
> Operating system: AIX 4.3.3
> PHP version: 4.0.0 Release
> PHP Bug Type: Compile Failure
> Bug description: undefined functions in zend_execute.c cause
> compile failure
>
> These five functions referenced in zend_execute.c are not
> defined, causing compilation failure:
>
> zend_ptr_stack_get_arg
> zend_ptr_stack_clear_multiple
> zend_assign_to_variable_reference
> zend_assign_to_variable_reference
> safe_free_zval_ptr
>
> Also, one function used in basic_functions.c is not defined:
>
> is_numeric_string
>
> During compilation, warnings about the above are produced, but
> during final linking as static Apache module, fatal errors occur:
>
>
> # configure --with-apache=../apache_1.3.12
> # make
> .
> .
> .
> /bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I.
> -I. -I.. -DXM
> L_BYTE_ORDER=21 -O2 -qmaxmem=8192 -c ./zend_execute.c
> "./zend_execute.c", line 2375.1: 1506-162 (W) No definition was
> found for functi
> on zend_ptr_stack_get_arg. Storage class changed to extern.
> "./zend_execute.c", line 2375.1: 1506-162 (W) No definition was
> found for functi
> on zend_ptr_stack_clear_multiple. Storage class changed to extern.
> "./zend_execute.c", line 2375.1: 1506-162 (W) No definition was
> found for functi
> on zend_assign_to_variable_reference. Storage class changed to extern.
> "./zend_execute.c", line 2375.1: 1506-162 (W) No definition was
> found for functi
> on i_zend_is_true. Storage class changed to extern.
> "./zend_execute.c", line 2375.1: 1506-162 (W) No definition was
> found for functi
> on safe_free_zval_ptr. Storage class changed to extern.
> .
> .
> .
> cc -DHAVE_CONFIG_H -I.
> -I/usr/local/packages/php-4.0.0/ext/standard -I/usr/local
> /packages/php-4.0.0 -I/usr/local/bind/include
> -I/usr/local/packages/apache_1.3.1
> 2/src/include -I/usr/local/packages/apache_1.3.12/src/os/unix
> -I/usr/local/packa
> ges/php-4.0.0/Zend -I/usr/local/packages/php-4.0.0
> -I/usr/local/packages/php-4.0
> .0/ext/xml/expat/xmltok
> -I/usr/local/packages/php-4.0.0/ext/xml/expat/xmlparse
> -DXML_BYTE_ORDER=21 -O2 -qmaxmem=8192 -c basic_functions.c &&
> touch basic_funct
> ions.lo
> "basic_functions.c", line 1993.1: 1506-162 (W) No definition was
> found for funct
> ion is_numeric_string. Storage class changed to extern.
>
> .
> .
> .
> # while making Apache httpd:
>
> xlc -O2 -qmaxmem=8192 -DAIX=43 -U__STR__ -DAIX_BIND_PROCESSOR
> -I/usr/local/packa
> ges/php-4.0.0 -I/usr/local/packages/php-4.0.0/Zend
> -I/usr/local/packages/php-4.0
> .0/Zend -I/usr/local/packages/php-4.0.0 -DUSE_EXPAT
> -I./lib/expat-lite -DNO_DL_N
> EEDED
./apaci -lm -L/usr/local/bind/lib \
> -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 -lbind -Lmodules/php4 -L../modules/php4 -L../../modules/php4
> -lmodphp4 -ldl
> -lresolv -lbind -lm -ldl -lcrypt -lresolv
> ld: 0711-317 ERROR: Undefined symbol: .alloca
> ld: 0711-317 ERROR: Undefined symbol: .safe_free_zval_ptr
> ld: 0711-317 ERROR: Undefined symbol: .zend_assign_to_variable_reference
> ld: 0711-317 ERROR: Undefined symbol: .i_zend_is_true
> ld: 0711-317 ERROR: Undefined symbol: .zend_ptr_stack_clear_multiple
> ld: 0711-317 ERROR: Undefined symbol: .zend_ptr_stack_get_arg
> ld: 0711-317 ERROR: Undefined symbol: .is_numeric_string
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> make[2]: *** [target_static] Error 8
> make[2]: Leaving directory `/usr/local/packages/apache_1.3.12/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/usr/local/packages/apache_1.3.12'
>
>
>
> (These undefined functions also cause the same problem when
> building php as a standalone cgi program.)
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>