php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27729 cant compile ext/sqlite as shared
Submitted: 2004-03-27 08:09 UTC Modified: 2005-09-06 00:29 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: joerg@php.net Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 5CVS-2004-03-27 (dev) OS: IRIX64 6.5.23m
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joerg@php.net
New email:
PHP Version: OS:

 

 [2004-03-27 08:09 UTC] 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"



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-10 14:57 UTC] wez@php.net
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

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 09:01:28 2024 UTC