|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-10 14:57 UTC] wez@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
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"