#23774 [NEW]: Pbm with gawk and internal_functions.c

From: Date: Fri, 23 May 2003 11:38:16 +0000
Subject: #23774 [NEW]: Pbm with gawk and internal_functions.c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40263@lists.php.net to get a copy of this message
From:             guillaume dot rix at sun dot com
Operating system: Solaris 9
PHP version:      4.3.2RC4
PHP Bug Type:     Compile Failure
Bug description:  Pbm with gawk and internal_functions.c

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,

-- 
Edit bug report at http://bugs.php.net/?id=23774&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23774&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23774&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23774&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23774&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23774&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23774&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23774&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23774&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23774&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23774&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23774&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23774&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23774&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23774&r=gnused



Thread (5 messages)

« previous php.bugs (#40263) next »