#23007 [NEW]: "`OnUpdateLong' undeclared here (not in a function)" during make
| From: | joe at recompiled dot org | Date: | Tue, 01 Apr 2003 19:46:13 +0000 |
| Subject: | #23007 [NEW]: "`OnUpdateLong' undeclared here (not in a function)" during make | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-36937@lists.php.net to get a copy of this message | ||
From: joe at recompiled dot org
Operating system: Mandrake 9.1
PHP version: 4CVS-2003-04-01 (stable)
PHP Bug Type: Compile Failure
Bug description: "`OnUpdateLong' undeclared here (not in a function)" during make
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
--
Edit bug report at http://bugs.php.net/?id=23007&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23007&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23007&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23007&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23007&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23007&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23007&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23007&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23007&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23007&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23007&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23007&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23007&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23007&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23007&r=gnused