From:             [EMAIL PROTECTED]
Operating system: RH9.0
PHP version:      4CVS-2003-07-04 (stable)
PHP Bug Type:     Compile Failure
Bug description:  sqlite doesn't compiled

Description:
------------
(i'm using PECL_4_3 of pecl)

here is the log:

[EMAIL PROTECTED] sqlite]# phpize
Configuring for:
  PHP Api Version:   20020918
  Zend Module Api No:   20020429
  Zend Extension Api No:   20021010
[EMAIL PROTECTED] sqlite]# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php
-I/usr/local/include/php/m
ain -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
checking for PHP extension directory...
/usr/local/lib/php/extensions/debug-non-
zts-20020429
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for gawk... gawk
checking for sqlite support... yes, shared
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for char *... yes
checking size of char *... 4
checking for lemon... no
checking for usleep... yes
checking for nanosleep... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
configure: creating ./config.status
config.status: creating config.h
[EMAIL PROTECTED] sqlite]# make
sed -e s/--VERS--/2.8.3/ -e s/--ENCODING--/ISO8859/
/home/moshe/downloads/sqlite
/libsqlite/src/sqlite.h.in
>/home/moshe/downloads/sqlite/libsqlite/src/sqlite.h
/bin/sh /home/moshe/downloads/sqlite/libtool --mode=compile gcc
-I/home/moshe/do
wnloads/sqlite/libsqlite/src -I. -I/home/moshe/downloads/sqlite
-DPHP_ATOM_INC -
I/home/moshe/downloads/sqlite/include -I/home/moshe/downloads/sqlite/main
-I/hom
e/moshe/downloads/sqlite -I/usr/local/include/php
-I/usr/local/include/php/main
-I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM 
-DHAVE_CONFIG_H  -g
 -O2  -prefer-pic -c /home/moshe/downloads/sqlite/sqlite.c -o sqlite.lo
gcc -I/home/moshe/downloads/sqlite/libsqlite/src -I.
-I/home/moshe/downloads/sql
ite -DPHP_ATOM_INC -I/home/moshe/downloads/sqlite/include
-I/home/moshe/download
s/sqlite/main -I/home/moshe/downloads/sqlite -I/usr/local/include/php
-I/usr/loc
al/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM
-DHAVE_CONFIG_H -g -O2 -c /home/moshe/downloads/sqlite/sqlite.c  -fPIC
-DPIC -o
sqlite.lo
echo '/* Automatically generated file.  Do not edit */'
>/home/moshe/downloads/s
qlite/libsqlite/src/opcodes.h
grep '^case OP_' /home/moshe/downloads/sqlite/libsqlite/src/vdbe.c | \
  sed -e 's/://' | \
  awk '{printf "#define %-30s %3d\n", $2, ++cnt}'
>>/home/moshe/downloads/sqlite
/libsqlite/src/opcodes.h
echo '/* Automatically generated file.  Do not edit */'
>/home/moshe/downloads/s
qlite/libsqlite/src/opcodes.c
echo 'char *sqliteOpcodeNames[] = { "???", '
>>/home/moshe/downloads/sqlite/libs
qlite/src/opcodes.c
grep '^case OP_' /home/moshe/downloads/sqlite/libsqlite/src/vdbe.c | \
  sed -e 's/^.*OP_/  "/' -e 's/:.*$/", /'
>>/home/moshe/downloads/sqlite/libsqli
te/src/opcodes.c
echo '};' >>/home/moshe/downloads/sqlite/libsqlite/src/opcodes.c
/bin/sh /home/moshe/downloads/sqlite/libtool --mode=compile gcc
-I/home/moshe/do
wnloads/sqlite/libsqlite/src -I. -I/home/moshe/downloads/sqlite
-DPHP_ATOM_INC -
I/home/moshe/downloads/sqlite/include -I/home/moshe/downloads/sqlite/main
-I/hom
e/moshe/downloads/sqlite -I/usr/local/include/php
-I/usr/local/include/php/main
-I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM 
-DHAVE_CONFIG_H  -g
 -O2  -prefer-pic -c /home/moshe/downloads/sqlite/libsqlite/src/opcodes.c
-o lib
sqlite/src/opcodes.lo
gcc -I/home/moshe/downloads/sqlite/libsqlite/src -I.
-I/home/moshe/downloads/sql
ite -DPHP_ATOM_INC -I/home/moshe/downloads/sqlite/include
-I/home/moshe/download
s/sqlite/main -I/home/moshe/downloads/sqlite -I/usr/local/include/php
-I/usr/loc
al/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM
-DHAVE_CONFIG_H -g -O2 -c
/home/moshe/downloads/sqlite/libsqlite/src/opcodes.c
-fPIC -DPIC -o libsqlite/src/opcodes.lo
/bin/sh /home/moshe/downloads/sqlite/libtool --mode=compile gcc
-I/home/moshe/do
wnloads/sqlite/libsqlite/src -I. -I/home/moshe/downloads/sqlite
-DPHP_ATOM_INC -
I/home/moshe/downloads/sqlite/include -I/home/moshe/downloads/sqlite/main
-I/hom
e/moshe/downloads/sqlite -I/usr/local/include/php
-I/usr/local/include/php/main
-I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM 
-DHAVE_CONFIG_H  -g
 -O2  -prefer-pic -c /home/moshe/downloads/sqlite/libsqlite/src/parse.c -o
libsq
lite/src/parse.lo
gcc -I/home/moshe/downloads/sqlite/libsqlite/src -I.
-I/home/moshe/downloads/sql
ite -DPHP_ATOM_INC -I/home/moshe/downloads/sqlite/include
-I/home/moshe/download
s/sqlite/main -I/home/moshe/downloads/sqlite -I/usr/local/include/php
-I/usr/loc
al/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM
-DHAVE_CONFIG_H -g -O2 -c
/home/moshe/downloads/sqlite/libsqlite/src/parse.c  -f
PIC -DPIC -o libsqlite/src/parse.lo
In file included from
/home/moshe/downloads/sqlite/libsqlite/src/vdbe.h:69,
                 from
/home/moshe/downloads/sqlite/libsqlite/src/sqliteInt.h:19,
                 from
/home/wez/src/php/php4.3-cvs/ext/sqlite/libsqlite/src/pars
e.y:36:
/home/moshe/downloads/sqlite/libsqlite/src/opcodes.h:17: parse error
before nume
ric constant
make: *** [libsqlite/src/parse.lo] Error 1


Reproduce code:
---------------
 

Expected result:
----------------
 

Actual result:
--------------
 

-- 
Edit bug report at http://bugs.php.net/?id=24492&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24492&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24492&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24492&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24492&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24492&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24492&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24492&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24492&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24492&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24492&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24492&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24492&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24492&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24492&r=gnused

Reply via email to