Dulcise
2008-05-23, 05:40 AM CDT
I'm trying to get the SQLite extension of PHP to work.
I tried to compile the extension, but it throws this error
/bin/sh /home/hug-attack/Download/HTTP/SQLite-1.0.3/libtool --mode=compile gcc -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/libsqlite/src -I. -I/home/hug-attack/Download/HTTP/SQLite-1.0.3 -DPHP_ATOM_INC -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/include -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/main -I/home/hug-attack/Download/HTTP/SQLite-1.0.3 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c -o sqlite.lo
mkdir .libs
gcc -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/libsqlite/src -I. -I/home/hug-attack/Download/HTTP/SQLite-1.0.3 -DPHP_ATOM_INC -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/include -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/main -I/home/hug-attack/Download/HTTP/SQLite-1.0.3 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c -fPIC -DPIC -o .libs/sqlite.o
/home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_NONE' undeclared here (not in a function)
/home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_FORCE' undeclared here (not in a function)
/home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c:125: warning: initialization from incompatible pointer type
/home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c:126: warning: initialization from incompatible pointer type
make: *** [sqlite.lo] Error 1
So I tried the patch (http://turin.nss.udel.edu/programming/dropbox2/), but it just seems to cause SQLite to crash (just a out of memory exception).
Ideas anyone?
Fedora 9 -
$ uname -a
Linux localhost.localdomain 2.6.25.3-18.fc9.x86_64 #1 SMP Tue May 13 04:54:47 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9300216905728 bytes) in /var/www/html/sf_sandbox/lib/symfony/vendor/creole/drivers/sqlite/SQLitePreparedStatement.php on line 40
Call Stack
# Time Memory Function Location
1 0.0004 85928 {main}( ) ../frontend_dev.php:0
2 0.0570 3665448 sfFrontWebController->dispatch( ) ../frontend_dev.php:10
3 0.0593 3692168 sfController->forward( ) ../sfFrontWebController.class.php:48
4 0.0707 4247272 sfFilterChain->execute( ) ../sfController.class.php:276
5 0.0713 4257368 sfRenderingFilter->execute( ) ../sfFilterChain.class.php:43
6 0.0713 4257368 sfFilterChain->execute( ) ../sfRenderingFilter.class.php:33
7 0.0716 4262432 sfWebDebugFilter->execute( ) ../sfFilterChain.class.php:43
8 0.0717 4262432 sfFilterChain->execute( ) ../sfWebDebugFilter.class.php:35
9 0.0721 4268800 sfCommonFilter->execute( ) ../sfFilterChain.class.php:43
10 0.0721 4268800 sfFilterChain->execute( ) ../sfCommonFilter.class.php:29
11 0.0725 4274704 sfFlashFilter->execute( ) ../sfFilterChain.class.php:43
12 0.0725 4274704 sfFilterChain->execute( ) ../sfFlashFilter.class.php:50
13 0.0730 4281360 sfExecutionFilter->execute( ) ../sfFilterChain.class.php:43
14 0.0743 4282408 sfActions->execute( ) ../sfExecutionFilter.class.php:129
15 0.0749 4290464 postActions->executeUpdate( ) ../sfActions.class.php:53
16 0.1017 5938848 BasePost->save( ) ../actions.class.php:63
17 0.1078 6117752 BasePost->doSave( ) ../BasePost.php:238
18 0.1078 6117752 BasePostPeer::doInsert( ) ../BasePost.php:256
19 0.1133 6550744 BasePeer::doInsert( ) ../BasePostPeer.php:224
20 0.1186 6822584 BasePeer::populateStmtValues( ) ../BasePeer.php:303
21 0.1188 6822584 PreparedStatementCommon->setString( ) ../BasePeer.php:887
22 0.1188 6822584 SQLitePreparedStatement->escape( ) ../PreparedStatementCommon.php:598
23 0.1188 6822584 sqlite_escape_string ( ) ../SQLitePreparedStatement.php:40
PHP is Version 5.2.5 from the repositories, I don't really want to roll my own, but I will if it comes to that.
I need the extension for the synfony framework, which uses pear/pecl, which uses the (normally built in but mysteriously not fedoras version and there is no package for it in the official repositories) SQLite extension.
I was going to make a bug report about this, but I couldn't find where to make it.
Thanks
Dulcise
I tried to compile the extension, but it throws this error
/bin/sh /home/hug-attack/Download/HTTP/SQLite-1.0.3/libtool --mode=compile gcc -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/libsqlite/src -I. -I/home/hug-attack/Download/HTTP/SQLite-1.0.3 -DPHP_ATOM_INC -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/include -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/main -I/home/hug-attack/Download/HTTP/SQLite-1.0.3 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c -o sqlite.lo
mkdir .libs
gcc -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/libsqlite/src -I. -I/home/hug-attack/Download/HTTP/SQLite-1.0.3 -DPHP_ATOM_INC -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/include -I/home/hug-attack/Download/HTTP/SQLite-1.0.3/main -I/home/hug-attack/Download/HTTP/SQLite-1.0.3 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c -fPIC -DPIC -o .libs/sqlite.o
/home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_NONE' undeclared here (not in a function)
/home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_FORCE' undeclared here (not in a function)
/home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c:125: warning: initialization from incompatible pointer type
/home/hug-attack/Download/HTTP/SQLite-1.0.3/sqlite.c:126: warning: initialization from incompatible pointer type
make: *** [sqlite.lo] Error 1
So I tried the patch (http://turin.nss.udel.edu/programming/dropbox2/), but it just seems to cause SQLite to crash (just a out of memory exception).
Ideas anyone?
Fedora 9 -
$ uname -a
Linux localhost.localdomain 2.6.25.3-18.fc9.x86_64 #1 SMP Tue May 13 04:54:47 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9300216905728 bytes) in /var/www/html/sf_sandbox/lib/symfony/vendor/creole/drivers/sqlite/SQLitePreparedStatement.php on line 40
Call Stack
# Time Memory Function Location
1 0.0004 85928 {main}( ) ../frontend_dev.php:0
2 0.0570 3665448 sfFrontWebController->dispatch( ) ../frontend_dev.php:10
3 0.0593 3692168 sfController->forward( ) ../sfFrontWebController.class.php:48
4 0.0707 4247272 sfFilterChain->execute( ) ../sfController.class.php:276
5 0.0713 4257368 sfRenderingFilter->execute( ) ../sfFilterChain.class.php:43
6 0.0713 4257368 sfFilterChain->execute( ) ../sfRenderingFilter.class.php:33
7 0.0716 4262432 sfWebDebugFilter->execute( ) ../sfFilterChain.class.php:43
8 0.0717 4262432 sfFilterChain->execute( ) ../sfWebDebugFilter.class.php:35
9 0.0721 4268800 sfCommonFilter->execute( ) ../sfFilterChain.class.php:43
10 0.0721 4268800 sfFilterChain->execute( ) ../sfCommonFilter.class.php:29
11 0.0725 4274704 sfFlashFilter->execute( ) ../sfFilterChain.class.php:43
12 0.0725 4274704 sfFilterChain->execute( ) ../sfFlashFilter.class.php:50
13 0.0730 4281360 sfExecutionFilter->execute( ) ../sfFilterChain.class.php:43
14 0.0743 4282408 sfActions->execute( ) ../sfExecutionFilter.class.php:129
15 0.0749 4290464 postActions->executeUpdate( ) ../sfActions.class.php:53
16 0.1017 5938848 BasePost->save( ) ../actions.class.php:63
17 0.1078 6117752 BasePost->doSave( ) ../BasePost.php:238
18 0.1078 6117752 BasePostPeer::doInsert( ) ../BasePost.php:256
19 0.1133 6550744 BasePeer::doInsert( ) ../BasePostPeer.php:224
20 0.1186 6822584 BasePeer::populateStmtValues( ) ../BasePeer.php:303
21 0.1188 6822584 PreparedStatementCommon->setString( ) ../BasePeer.php:887
22 0.1188 6822584 SQLitePreparedStatement->escape( ) ../PreparedStatementCommon.php:598
23 0.1188 6822584 sqlite_escape_string ( ) ../SQLitePreparedStatement.php:40
PHP is Version 5.2.5 from the repositories, I don't really want to roll my own, but I will if it comes to that.
I need the extension for the synfony framework, which uses pear/pecl, which uses the (normally built in but mysteriously not fedoras version and there is no package for it in the official repositories) SQLite extension.
I was going to make a bug report about this, but I couldn't find where to make it.
Thanks
Dulcise