You are here: Re: [SQLite] Compiling in PHP statically? « PHP Programming Language « IT news, forums, messages
Re: [SQLite] Compiling in PHP statically?

Posted by Gilles Ganault on 09/28/59 12:01

On Mon, 28 Jan 2008 21:27:58 -0500, Jerry Stuckle
<jstucklex@attglobal.net> wrote:
>You don't say what messages you get, so we have no idea what might be wrong.

This kind of error:

===================
os_unix.c:(.text+0x149): undefined reference to `dlclose'
ext/pdo_sqlite/sqlite/src/os_unix.o: In function `sqlite3UnixDlsym':
os_unix.c:(.text+0x14e): undefined reference to `dlsym'
collect2: ld returned 1 exit status
ext/pdo_sqlite/sqlite/src/os_unix.o: Inmake[1]: *** [sapi/cli/php]
Error 1
make[1]: *** Waiting for unfinished jobs....
function `sqlite3UnixDlopen':
os_unix.c:(.text+0x15f): undefined reference to `dlopen'
ext/pdo_sqlite/sqlite/src/os_unix.o: In function `sqlite3UnixDlclose':
os_unix.c:(.text+0x149): undefined reference to `dlclose'
ext/pdo_sqlite/sqlite/src/os_unix.o: In function `sqlite3UnixDlsym':
os_unix.c:(.text+0x14e): undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[1]: *** [sapi/cgi/php-cgi] Error 1
make[1]: Leaving directory
`/home/compile/astlinux-trunk/build_i586/php-5.2.5'
make: ***
[/home/compile/astlinux-trunk/build_i586/php-5.2.5/sapi/cgi/php-cgi]
Error 2
===================

>If you don't tell where sqllite is located, config looks for it in the
>system's default environment.

Maybe that's what the problem is. BTW, which among the three files
does it use to compile SQLite statically into PHP5's binary?

/usr/local/lib/libsqlite3.a
/usr/local/lib/libsqlite3.la
/usr/local/lib/libsqlite3.so.0.8.6

>Also, you should also not need to do any editing of the makefile before
>rerunning. In fact, it's not a good idea to do so. But you do want to
>do a
>
>make clean
>
>before doing a second compile.

"make clean" itself returns errors :-/

=========
make: [sfdisk-clean] Error 2 (ignored)
make -j2 -C /home/compile/astlinux-trunk/build_i586/sipp-2.0.1.src
clean
make: *** /home/compile/astlinux-trunk/build_i586/sipp-2.0.1.src: No
such file or directory. Stop.
make: *** [sipp-clean] Error 2
=========

I'll just scrap the thing and start again.

Do you know what SQLite-related switches to put in the command-line,
what steps to take before (eg. editing some env't variable, etc.) so
it does what I need, which is disable PDO and add SQLite statically?

Thank you.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация