php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22819 main/internal_functions_cli.c undeclared phpext_*
Submitted: 2003-03-21 13:20 UTC Modified: 2003-03-22 04:55 UTC
From: Information-Cascade at ntlworld dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.2RC1 OS: Linux
Private report: No CVE-ID: None
 [2003-03-21 13:20 UTC] Information-Cascade at ntlworld dot com
Lots of things compile OK, but then libtool compile gcc fails with:

main/internal_functions_cli.c:41:

41: error: `phpext_xml_ptr' undeclared here (not in a function)
41: error: initializer element is not constant
41: error: (near initialization for `php_builtin_extensions[0]')

Ditto for:
	phpext_xml_ptr
	phpext_tokenizer_ptr
	phpext_standard_ptr
	phpext_session_ptr
	phpext_posix_ptr
	phpext_pcre_ptr
	phpext_overload_ptr
	phpext_mysql_ptr
	phpext_ctype_ptr

The build environment is 

	gcc (GCC) 3.3 20020916 (experimental)
	binutils-2.13
	apache-1.3.27
	Linux-4.2.19 i586

config.nice edited to multiline says: 
( I know its an absurd CFLAGS, but it is otherwise OK)

CFLAGS='-g -O2 
	-L/tools/2003/www/lib
	-Wl,--rpath=/tools/2003/www/lib
	-I/tools/2003/www/include

	-L/tools/2003/libs/lib
	-Wl,--rpath=/tools/2003/libs/lib
	-I/tools/2003/libs/include

	-L/tools/2003/mysql/lib
	-Wl,--rpath=/tools/2003/mysql/lib
	-I/tools/2003/mysql/include

	-L/tools/2003/pgsql/lib
	-Wl,--rpath=/tools/2003/pgsql/lib
	-I/tools/2003/pgsql/include

	-L/tools/2003/xml/lib
	-Wl,--rpath=/tools/2003/xml/lib
	-I/tools/2003/xml/include' \                                             

CXXFLAGS='-g -O2' \                                                             

'/tools/2003_src/www/php-4.3.2RC1/configure' \                                  
'--prefix=/tools/2003/www' \                                                    
'--with-apxs=/tools/2003/www/bin/apxs' \                                        
'--with-config-file-path=/tools/2003/www' \                                     
"$@"                                                                            
  
Graham

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-21 15:10 UTC] helly@php.net
Did you try it with a fresh checkout/source tree?
You ay also try ./cvsclean ; ./buildconf ; ./configure ; make
 [2003-03-21 15:36 UTC] Information-Cascade at ntlworld dot com
No, I havent tried it with a new CVS checkout, 
but I have tried it with 4.3.1 - exact same
 [2003-03-21 16:55 UTC] sniper@php.net
Either broken GCC installation, mismatching binutils, or 
just broken OS/machine. But definately not PHP bug.
I've never heard of Linux-4.2.19 either..

And don't try outsmarting the configure with setting
those CXXFLAGS/CFLAGS


 [2003-03-21 16:55 UTC] sniper@php.net
And using experimental GCC version..well..that's what you
get.

 [2003-03-21 18:59 UTC] Information-Cascade at ntlworld dot com
5534 / 22526 = 25% of PHP resolutions are bogus.

Blame it on GCC 
Blame it on Binutils
Blame it on OS/machine.

It's not configure that is outsmarted.
 [2003-03-22 04:55 UTC] sniper@php.net
This is _NOT_ any bug in PHP.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC