php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23007 "`OnUpdateLong' undeclared here (not in a function)" during make
Submitted: 2003-04-01 13:46 UTC Modified: 2003-04-01 14:45 UTC
From: joe at recompiled dot org Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4CVS-2003-04-01 (stable) OS: Mandrake 9.1
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: joe at recompiled dot org
New email:
PHP Version: OS:

 

 [2003-04-01 13:46 UTC] joe at recompiled dot org
Hi folks,

Having tons of trouble getting php4 to run on my new Mandrake 9.1 install. After getting an error I saw as fixed in cvs, I downloaded the cvs php4 tree today and started into it. buildconf then 'configure --with-apxs2=/usr/local/apache2/bin/apxs" then build:

===
[root@eversolej php4]# make
gcc  -Iext/ctype/ -I/usr/src/programs/php4/ext/ctype/ -DPHP_ATOM_INC -I/usr/src/programs/php4/include -I/usr/src/programs/php4/main -I/usr/src/programs/php4 -I/usr/src/programs/php4/Zend -I/usr/src/programs/php4/ext/xml/expat  -I/usr/src/programs/php4/TSRM  -g -O2  -c /usr/src/programs/php4/ext/ctype/ctype.c -o ext/ctype/ctype.o  && echo > ext/ctype/ctype.lo
gcc -I/usr/src/programs/php4/ext/mysql/libmysql -Iext/mysql/ -I/usr/src/programs/php4/ext/mysql/ -DPHP_ATOM_INC -I/usr/src/programs/php4/include -I/usr/src/programs/php4/main -I/usr/src/programs/php4 -I/usr/src/programs/php4/Zend -I/usr/src/programs/php4/ext/xml/expat  -I/usr/src/programs/php4/TSRM  -g -O2  -c /usr/src/programs/php4/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.o  && echo > ext/mysql/php_mysql.lo
/usr/src/programs/php4/ext/mysql/php_mysql.c:310: `OnUpdateLong' undeclared here (not in a function)
/usr/src/programs/php4/ext/mysql/php_mysql.c:310: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:310: (near initialization for `ini_entries[0].on_modify')
/usr/src/programs/php4/ext/mysql/php_mysql.c:310: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:310: (near initialization for `ini_entries[0]')
/usr/src/programs/php4/ext/mysql/php_mysql.c:311: `OnUpdateLong' undeclared here (not in a function)
/usr/src/programs/php4/ext/mysql/php_mysql.c:311: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:311: (near initialization for `ini_entries[1].on_modify')
/usr/src/programs/php4/ext/mysql/php_mysql.c:311: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:311: (near initialization for `ini_entries[1]')
/usr/src/programs/php4/ext/mysql/php_mysql.c:312: `OnUpdateLong' undeclared here (not in a function)
/usr/src/programs/php4/ext/mysql/php_mysql.c:312: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:312: (near initialization for `ini_entries[2].on_modify')
/usr/src/programs/php4/ext/mysql/php_mysql.c:312: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:312: (near initialization for `ini_entries[2]')
/usr/src/programs/php4/ext/mysql/php_mysql.c:313: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:313: (near initialization for `ini_entries[3]')
/usr/src/programs/php4/ext/mysql/php_mysql.c:314: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:314: (near initialization for `ini_entries[4]')
/usr/src/programs/php4/ext/mysql/php_mysql.c:315: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:315: (near initialization for `ini_entries[5]')
/usr/src/programs/php4/ext/mysql/php_mysql.c:316: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:316: (near initialization for `ini_entries[6]')
/usr/src/programs/php4/ext/mysql/php_mysql.c:317: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:317: (near initialization for `ini_entries[7]')
/usr/src/programs/php4/ext/mysql/php_mysql.c:318: `OnUpdateLong' undeclared here (not in a function)
/usr/src/programs/php4/ext/mysql/php_mysql.c:318: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:318: (near initialization for `ini_entries[8]')
/usr/src/programs/php4/ext/mysql/php_mysql.c:319: `OnUpdateLong' undeclared here (not in a function)
/usr/src/programs/php4/ext/mysql/php_mysql.c:319: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:319: `OnUpdateLong' undeclared here (not in a function)
/usr/src/programs/php4/ext/mysql/php_mysql.c:319: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:319: (near initialization for `ini_entries[9].on_modify')
/usr/src/programs/php4/ext/mysql/php_mysql.c:319: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:319: (near initialization for `ini_entries[9]')
/usr/src/programs/php4/ext/mysql/php_mysql.c:320: initializer element is not constant
/usr/src/programs/php4/ext/mysql/php_mysql.c:320: (near initialization for `ini_entries[10]')
make: *** [ext/mysql/php_mysql.lo] Error 1
===

php5 from cvs builds just fine on the same box, so, I dunno if it's something I'm doing wrong or a real bug... so, here you go. Let me know if there's any info I can give you guys.

Thanks for everything you do! --je

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-01 14:27 UTC] jay@php.net
How did you pull down php4? OnUpdateLong is only in 
HEAD/php5, not in the php4 branch. When you checkout php4, 
make sure you use 'cvs co -r PHP_4_3 php4'.  
 
J 
 [2003-04-01 14:45 UTC] joe at recompiled dot org
I checked out with just "cvs co php4." I rm'd the php4 directory and used the -r PHP_4_3 tag this time and it worked. I assumed (not being all that familar with cvs) that if I just specified the project as php4, it'd send the current php4 tree. Obviously, I assumed wrong. Thanks for the assistance! The build and test went as expected and I'll sufficiently flog myself.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 08:01:34 2025 UTC