php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4994 undefined functions in zend_execute.c cause compile failure
Submitted: 2000-06-12 22:32 UTC Modified: 2000-06-23 21:38 UTC
From: garrem at alum dot rpi dot edu Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.0 Release OS: AIX 4.3.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: garrem at alum dot rpi dot edu
New email:
PHP Version: OS:

 

 [2000-06-12 22:32 UTC] garrem at alum dot rpi dot edu
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.)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-23 21:38 UTC] sas at cvs dot php dot net
This has been addressed in CVS by adding a new option called --enable-c9x-inline. Please wait until PHP 4.0.1 is released or use a snapshot in the meantime:

http://snaps.php.net/

Thanks for your report.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 19:01:36 2025 UTC