Re: [APSW 3.3.13-r1] Fails compiling in CentOS?

Fred <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
Hello

At 10:13 26/01/2008 -0800, Roger Binns wrote:
>In that case you aren't using the SQLite you think you are :-)

I massaged the configuration so that it downloads the latest from the 
SQLite server, 3.5.4 currently.

To save space, AstLinux doesn't have any compiler, so if I need to do this 
kind of thing, I'll have to do it on CentOS and copy the output to AstLinux.

>Just what it says at 
>http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/apsw.html#Building

I followed this, and ended up with the errors in the original post :-/

# The static library is not built for inclusion into a seperate shared 
library by default.  If using gcc, then do this
$ env CC="gcc -fPIC" CFLAGS="-DHAVE_DLOPEN" ./configure --enable-threadsafe 
--disable-tcl
# otherwise do this
$ env CFLAGS="-DHAVE_DLOPEN" ./configure --enable-threadsafe --disable-tcl

=> I'm compiling this on CentOS 5.1. Is the first line for Linux and the 
second for Windows?

I'm unclear at to what I need to do to get APSW to install. At this point, 
I have this on the AstLinux host:

pbx ~ # uname -a
Linux pbx 2.6.20.21-astlinux #1 PREEMPT Sat Jan 26 17:34:00 CET 2008 i586 
unknown

pbx ~ # find / -name "libsq*"
/usr/lib/libsqlite3.so.0.8.6
/usr/lib/libsqlite3.so.0
/oldroot/mnt/asturo/usr/lib/libsqlite3.so.0.8.6
/oldroot/mnt/asturo/usr/lib/libsqlite3.so.0

pbx ~ # which sqlite3
/usr/bin/sqlite3

Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.