#27729 [NoF->Sus]: cant compile ext/sqlite as shared
| From: | wez@php.net | Date: | Sat, 10 Jul 2004 12:57:41 +0000 |
| Subject: | #27729 [NoF->Sus]: cant compile ext/sqlite as shared | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61991@lists.php.net to get a copy of this message | ||
ID: 27729
Updated by: wez@php.net
Reported By: joerg@php.net
-Status: No Feedback
+Status: Suspended
Bug Type: Compile Failure
Operating System: IRIX64 6.5.23m
PHP Version: 5CVS-2004-03-27 (dev)
New Comment:
If someone submits a patch that allows the extension to build in these
three cases:
1/ static
2/ shared, as part of a php distro
3/ shared, as a self contained extension
it will be accepted.
Right now, (2) is unsupported.
In the meantime, if you want a shared sqlite, disable it while building
the main distro, and once you have installed php5:
cd php5/ext/sqlite
phpize # make sure this is your php5 phpize
./configure
make
make install
Previous Comments:
------------------------------------------------------------------------
[2004-04-21 00:14:28] iliaa@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2004-04-13 13:09:26] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-03-27 08:09:11] joerg@php.net
Description:
------------
I have problems with compiling the ext/sqlite as a shared one with
todays php5 cvs. The build is for a cli version. It makes NO problem
when compiling the extension into the mod_php.
[o2k]:/mnt/MIPS/php-src $ cat config.nice.cli
#! /bin/sh
#
# Created by configure
rm config.cache;
gmake distclean;
CFLAGS='-O3 -mp -OPT:Olimit=0:roundoff=3
-TARG:platform=IP27:proc=r10000 -mips4 -Xcpluscomm
-I/usr/freeware/include -I/usr/local/include ' \
CXXFLAGS='-O3 -mips4' \
LDFLAGS=' -mp -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/freeware/lib32
-lcrypto ' \
CC='cc' \
CXX='C' \
'./configure' \
'--prefix=/usr/local/php5' \
'--enable-tokenizer' \
'--enable-dio' \
'--enable-aggregate' \
'--enable-memory-limit' \
'--enable-dba' \
'--enable-dbx' \
'--disable-cgi' \
'--enable-exif' \
'--enable-calendar' \
'--enable-bcmath' \
'--enable-shmop' \
'--enable-ftp' \
'--enable-sysvshm=yes' \
'--enable-sysvsem=yes' \
'--enable-track-vars=yes' \
'--enable-url-includes' \
'--enable-versioning' \
'--enable-sockets' \
'--enable-dbase' \
'--enable-memory-limit' \
'--enable-wddx' \
'--with-gd=shared' \
'--with-png-dir=/usr/local' \
'--with-jpeg-dir=/usr/local' \
'--with-freetype-dir=/usr/local' \
'--with-zlib-dir=/usr/freeware' \
'--with-zlib' \
'--with-config-file-path=/etc/php5' \
'--with-pear' \
'--with-sqlite=shared' \
'--with-mcrypt=shared,/usr/local' \
'--with-hash=shared,/usr/local' \
'--with-mysql=/usr/local/mysql' \
'--with-ming=shared,/usr/local' \
'--with-mnogosearch=shared,/usr/local/mnogosearch' \
'--with-imagick-gm=shared,/usr/local' \
'--with-localizer=shared=/usr/local' \
'--with-pgsql=shared,/usr/local/pgsql' \
'--with-pear' \
'--with-curl=shared,/usr/local' \
"$@"
./config.nice.cli
[..]
checking whether to enable UTF-8 support in sqlite (default:
ISO-8859-1)... no
checking for sqlite support... yes, shared
checking size of char *... 4
checking for lemon... no
[..]
gmake -j 16
cc-1005 cc: ERROR File =
/mnt/MIPS/php-src/ext/sqlite/libsqlite/src/config.h, Line = 1
The source file "/mnt/MIPS/php-src/config.h" is unavailable.
#include "/mnt/MIPS/php-src/config.h"
^
1 catastrophic error detected in the compilation of
"/mnt/MIPS/php-src/ext/sqlite/libsqlite/src/parse.c".
The config.h isnt create on compile time.. but i dont know why.
A workaround is to edit the ext/sqlite/libsqlite/src/config.h file and
include /mnt/MIPS/php-src/main/php_config.h instead of
#include "/mnt/MIPS/php-src/config.h"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27729&edit=1