For Programmers: Free Programming Magazines  


Home > Archive > PHP Mirrors > January 2006 > Problem with SQLite









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem with SQLite
Nitesh \

2006-01-23, 3:55 am

Hello,

I want to create a mirror site for http://www.php.net
<http://www.php.net/> . For the same purpose, I grabbed the entire website
using rsync as specified in the website. While all the pages have been set
perfectly, only the manual page is not displayed. I think the problem is
with SQLite. I tried to install SQLite using the command $ pear install
sqlite, but it fails midway. I get the following message when I try to
install SQLite.



[root@mirror /]# pear install sqlite

downloading SQLite-1.0.3.tar ...

Starting to download SQLite-1.0.3.tar (-1 bytes)

...................................................done: 1,539,072 bytes

50 source files, building

running: phpize

Configuring for:

PHP Api Version: 20031224

Zend Module Api No: 20041030

Zend Extension Api No: 220040412

building in /var/tmp/pear-build-root/SQLite-1.0.3

running: /tmp/tmpQix7DJ/SQLite-1.0.3/configure

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

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/main -I/usr/local/include/php/TSRM
-I/usr/local/include/php/Zend

checking for PHP extension directory...
/usr/local/lib/php/extensions/no-debug-non-zts-20041030

checking for re2c... exit 0;

checking for gawk... gawk

checking for sqlite support... yes, shared

checking how to run the C preprocessor... gcc -E

checking for egrep... grep -E

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 usleep... yes

checking for nanosleep... yes

checking time.h usability... yes

checking time.h presence... yes

checking for time.h... yes

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

running: make

/bin/sh /var/tmp/pear-build-root/SQLite-1.0.3/libtool --mode=compile gcc
-I/tmp/tmpQix7DJ/SQLite-1.0.3/libsqlite/src -I.
-I/tmp/tmpQix7DJ/SQLite-1.0.3 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/SQLite-1.0.3/include
-I/var/tmp/pear-build-root/SQLite-1.0.3/main -I/tmp/tmpQix7DJ/SQLite-1.0.3
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -DHAVE_CONFIG_H
-g -O2 -c /tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c -o sqlite.lo

gcc -I/tmp/tmpQix7DJ/SQLite-1.0.3/libsqlite/src -I.
-I/tmp/tmpQix7DJ/SQLite-1.0.3 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/SQLite-1.0.3/include
-I/var/tmp/pear-build-root/SQLite-1.0.3/main -I/tmp/tmpQix7DJ/SQLite-1.0.3
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -DHAVE_CONFIG_H
-g -O2 -c /tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c -fPIC -DPIC -o sqlite.lo

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:56: `BYREF_NONE' undeclared here (not
in a function)

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:56: initializer element is not constant

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:56: (near initialization for
`arg3_force_ref[1]')

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:56: `BYREF_NONE' undeclared here (not
in a function)

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:56: initializer element is not constant

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:56: (near initialization for
`arg3_force_ref[2]')

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:56: `BYREF_FORCE' undeclared here (not
in a function)

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:56: initializer element is not constant

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:56: (near initialization for
`arg3_force_ref[3]')

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:125: warning: initialization from
incompatible pointer type

/tmp/tmpQix7DJ/SQLite-1.0.3/sqlite.c:126: warning: initialization from
incompatible pointer type

make: *** [sqlite.lo] Error 1

`make' failed



Can somebody help me with installing the Sqlite so that I can set the mirror
properly.



Warm Regards,

Nitesh Shah
System Admin
Technical Desk
QualiSpace - A QuantumPages Enterprise
===========================
Tel India: +91 (22) 5592 - 1480
Tel US: +1 (614) 212 - 5084
Fax India: +91 (22) 5592 - 1484
URL: <http://www.qualispace.com/> http://www.qualispace.com
===========================
For Any Technical Query Please Use: <http://helpdesk.qualispace.com/>
http://helpdesk.qualispace.com
QualiSpace Community Discussion forum: <http://forum.qualispace.com/>
http://forum.qualispace.com




Nuno Lopes

2006-01-23, 7:56 am

First of all, this mailling list isn't a support forum for such issues.
Probably you are just running an old version of PHP that isn't supported by
the sqlite extension.
Anyway, *before* setting the mirror, don't forget to read the big warning at
http://php.net/mirroring.php

Nuno


----- Original Message -----
> Hello,
>
> I want to create a mirror site for http://www.php.net
> <http://www.php.net/> . For the same purpose, I grabbed the entire website
> using rsync as specified in the website. While all the pages have been set
> perfectly, only the manual page is not displayed. I think the problem is
> with SQLite. I tried to install SQLite using the command $ pear install
> sqlite, but it fails midway. I get the following message when I try to
> install SQLite.
>
>
> Can somebody help me with installing the Sqlite so that I can set the
> mirror
> properly.
>
>
>
> Warm Regards,
>
> Nitesh Shah
> System Admin
> Technical Desk
> QualiSpace - A QuantumPages Enterprise

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com