php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23774 Pbm with gawk and internal_functions.c
Submitted: 2003-05-23 06:38 UTC Modified: 2003-05-23 10:05 UTC
From: guillaume dot rix at sun dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.2RC4 OS: Solaris 9
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: guillaume dot rix at sun dot com
New email:
PHP Version: OS:

 

 [2003-05-23 06:38 UTC] guillaume dot rix at sun dot com
PHP version tested ===>

4.3.2RC3 and 4.3.1

System ===>

SunOS -a 5.9 Generic sun4u sparc SUNW,Ultra-5_10

BUG Description ===>

bash-2.05# gunzip -c php-4.3.1.tar.gz | tar xvf -
bash-2.05# cd ../php-4.3.1
bash-2.05# CFLAGS='-DEAPI' ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
--with-zlib=/usr/local
--with-gd

No problem during the configure.

bash-2.05# make

gcc  -Imain/ -I/space/IDS/apache/php-4.3.2RC3/main/ -DPHP_ATOM_INC -I/space/IDS/apache/php-4.3.2RC3/include
-I/space/IDS/apache/php-4.3.2RC3/main -I/space/IDS/apache/php-4.3.2RC3 -I/space/IDS/apache/php-4.3.2RC3/Zend
-I/usr/local/mysql/include -I/space/IDS/apache/php-4.3.2RC3/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS
-I/space/IDS/apache/php-4.3.2RC3/TSRM  -c main/internal_functions.c -o main/internal_functions.o  && echo > main/internal_functions.lo
main/internal_functions.c:41: `phpext_xml_ptr' undeclared here (not in a function)
main/internal_functions.c:41: initializer element is not constant
main/internal_functions.c:41: (near initialization for `php_builtin_extensions[0]')
main/internal_functions.c:42: `phpext_tokenizer_ptr' undeclared here (not in a function)
main/internal_functions.c:42: initializer element is not constant
main/internal_functions.c:42: (near initialization for `php_builtin_extensions[1]')
main/internal_functions.c:43: `phpext_standard_ptr' undeclared here (not in a function)
main/internal_functions.c:43: initializer element is not constant
main/internal_functions.c:43: (near initialization for `php_builtin_extensions[2]')
main/internal_functions.c:44: `phpext_session_ptr' undeclared here (not in a function)
main/internal_functions.c:44: initializer element is not constant
main/internal_functions.c:44: (near initialization for `php_builtin_extensions[3]')
main/internal_functions.c:45: `phpext_posix_ptr' undeclared here (not in a function)
main/internal_functions.c:45: initializer element is not constant
main/internal_functions.c:45: (near initialization for `php_builtin_extensions[4]')
main/internal_functions.c:46: `phpext_pcre_ptr' undeclared here (not in a function)
main/internal_functions.c:46: initializer element is not constant
main/internal_functions.c:46: (near initialization for `php_builtin_extensions[5]')
main/internal_functions.c:47: `phpext_overload_ptr' undeclared here (not in a function)
main/internal_functions.c:47: initializer element is not constant
main/internal_functions.c:47: (near initialization for `php_builtin_extensions[6]')
main/internal_functions.c:48: `phpext_mysql_ptr' undeclared here (not in a function)
main/internal_functions.c:48: initializer element is not constant
main/internal_functions.c:48: (near initialization for `php_builtin_extensions[7]')
main/internal_functions.c:49: `phpext_ctype_ptr' undeclared here (not in a function)
main/internal_functions.c:49: initializer element is not constant
main/internal_functions.c:49: (near initialization for `php_builtin_extensions[8]')
*** Error code 1
make: Fatal error: Command failed for target `main/internal_functions.lo'

OK, I see how the file "main/internal_functions.c" had been cretad by "./configure" :

bash-2.05# grep internal_functions config.status
  echo "creating main/internal_functions.c"
  sh ./build/genif.sh ./main/internal_functions.c.in . "" gawk $extensions > main/internal_functions.c


bash-2.05# pkgrm SMCgawk

bash-2.05# cp main/internal_functions.c /tmp/internal_functions.c;bad
bash-2.05# gunzip -c php-4.3.1.tar
bash-2.05# cd ../php-4.3.1
bash-2.05# CFLAGS='-DEAPI' ./configure
--with-apxs=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql
--with-zlib=/usr/local
--with-gd

No problem during the configure.

bash-2.05# grep internal_functions config.status
  echo "creating main/internal_functions.c"
  sh ./build/genif.sh ./main/internal_functions.c.in . "" nawk $extensions > main/internal_functions.c

Here, nawk is used instead of gawk.

bash-2.05# make
bash-2.05# make install

All is OK and all work correctly.

If I make a diff on the new main/internal_functions.c and the old one /tmp/internal_functions.c, I can see a big difference.

Guillaume,

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-23 09:56 UTC] sniper@php.net
Due to a bug in the installed sed on your system the build
fails. Install GNU sed and it should be okay.
 
Thank you for your interest in PHP.

.
 [2003-05-23 09:59 UTC] guillaume dot rix at sun dot com
Hi,

Thanks for your quick answer on this.

Do you have any reference on this BUG of sed for me ?
It will be very appreciated.

Thanks in advance!

Guillaume,
 [2003-05-23 10:05 UTC] sniper@php.net
http://mail.gnu.org/archive/html/libtool/2001-07/msg00101.html

(the sed in PATH in most of the solaris systems is the broken one which can't handle lines over 1024 chars, iirc)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 22:00:02 2025 UTC