ID:               27729
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: IRIX64 6.5.23m
 PHP Version:      5CVS-2004-03-27 (dev)
 New Comment:

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




Previous Comments:
------------------------------------------------------------------------

[2004-03-27 08:09:11] [EMAIL PROTECTED]

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

Reply via email to