|
Posted by Jerry Stuckle on 09/28/10 12:01
Gilles Ganault wrote:
> 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
>
Not positive, but I think the .a. But I'm not an expert on linux.
>> 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
> =========
>
Sounds like you've got something really screwed up.
> I'll just scrap the thing and start again.
>
I think that's the best solution.
> 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.
>
Check the output of ./config --help. But IIRC, it's something like:
--with-sqllite=/path/to/development/libs
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|