php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29106 error making with sqlite
Submitted: 2004-07-12 12:27 UTC Modified: 2004-07-14 08:24 UTC
From: info at sebastianmendel dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5CVS-2004-07-12 (dev) OS: Fedora Core 2 dev
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: info at sebastianmendel dot de
New email:
PHP Version: OS:

 

 [2004-07-12 12:27 UTC] info at sebastianmendel dot de
Description:
------------
doing:

$ cd /usr/src
$ cvs -d :pserver:cvsread@cvs.php.net:/repository co php-src
$ cd /usr/src/php-src
$ ./buildconf --force
$ './configure' 'i386-fedora-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/libexec' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/usr/com' '--localstatedir=/var' '--libdir=/usr/lib' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-apxs2=/usr/sbin/apxs' '--enable-debug' '--with-layout=GNU' '--with-config-file-path=/etc' '--enable-safe-mode' '--with-exec-dir=/usr/bin' '--with-zlib' '--enable-bcmath' '--with-bz2' '--enable-calendar' '--enable-dba' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-zlib-dir' '--with-ttf' '--with-freetype-dir' '--enable-gd-native-ttf' '--enable-mbstring' '--with-mime-magic' '--enable-shmop' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-memory-limit' '--enable-zend-multibyte' '--with-mysql=/usr,shared' '--with-mysqli=shared' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-xpm-dir=/usr/X11R6/lib'
$ make

...

gcc -I/usr/src/php-src/ext/sqlite/libsqlite/src -Iext/sqlite/ -I/usr/src/php-src/ext/sqlite/ -DPHP_ATOM_INC -I/usr/src/php-src/include -I/usr/src/php-src/main -I/usr/src/php-src -I/usr/src/php-src/Zend -I/usr/include/libxml2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/src/php-src/ext/mbstring/oniguruma -I/usr/src/php-src/ext/mbstring/libmbfl -I/usr/src/php-src/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/src/php-src/TSRM -g -Wall -c /usr/src/php-src/ext/sqlite/libsqlite/src/opcodes.c  -fPIC -DPIC -DPIC -o ext/sqlite/libsqlite/src/opcodes.o
mv -f ext/sqlite/libsqlite/src/opcodes.o ext/sqlite/libsqlite/src/opcodes.lo
bison -y  /usr/src/php-src/ext/sqlite/libsqlite/src/parse.y
/usr/src/php-src/ext/sqlite/libsqlite/src/parse.y:19.1-13: invalid directive: `%token_prefix'
/usr/src/php-src/ext/sqlite/libsqlite/src/parse.y:19.15-17: syntax error, unexpected "identifier"
make: *** [/usr/src/php-src/ext/sqlite/libsqlite/src/parse.c] Error 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-14 08:24 UTC] info at sebastianmendel dot de
works in 5CVS-2004-07-13 (dev)
 [2004-07-14 16:16 UTC] monte at ispi dot net
I get the exact same error with the newly released PHP 5.0.0 and Solaris 8 sparc.

$ LDFLAGS='-lstdc++'
$ export LDFLAGS
$ ./configure \
--enable-rpath                  \
--enable-wddx                   \
--enable-xml                    \
--enable-pear                   \
--enable-inline-optimization    \
--disable-debug                 \
--with-apxs                     \
--with-mysql=/usr/local/etc/mysql \
--with-zlib                     \
--with-tsrm-pthreads            \
--with-ldap                     \
--with-iconv-dir=/usr/local/etc/libiconv

$ make
bison -y  /export/projects/compile/php-5.0.0/ext/sqlite/libsqlite/src/parse.y
/export/projects/compile/php-5.0.0/ext/sqlite/libsqlite/src/parse.y:19.1-13: invalid directive: `%token_prefix'
/export/projects/compile/php-5.0.0/ext/sqlite/libsqlite/src/parse.y:19.15-17: syntax error, unexpected "identifier"
make: *** [/export/projects/compile/php-5.0.0/ext/sqlite/libsqlite/src/parse.c] Error 1
 [2004-08-11 13:59 UTC] thu at nykredit dot dk
Same problem here...
Though I have three installations of Fedora II - not identical but close...
On on of them I get the same error during compile, but not on the two others..??
I use tgis config..
./configure --with-mysql --with-apxs2 --with-gd --with-openssl --with-zlib --enable-bcmath --enable-calendar --with-curl --enable-dio --enable-ftp --with-ttf --enable-gd-native-ttf --with-kerberos --with-imap-ssl --with-mcrypt --enable-embedded-mysqli --enable-soap --with-xsl --with-pear --with-ming --with-oci8 --with-ldap --with-freetype-dir=/usr/lib


Notice that the one causing the troubles is installed with danish as primary language.. the other are set to english..
I do not know if this makes a difference??
 [2004-08-12 16:31 UTC] thu at nykredit dot dk
Seems that make clean does not clean up everything..
I removed the old source and tar xvfz the stuff again - and everything worked..
(I had copied the source+compile stuff from another server including the compiled stuff and done a make clean- but that was apparently not good enough)..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 13:01:30 2024 UTC