Re: [APSW 3.3.13-r1] Fails compiling in CentOS?
Roger Binns <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fred wrote: > ================================ > AstLinux host: > 1. cd /usr/lib/python2.4/site-packages > 2. wget http://192.168.0.3/apsw.so > 3. # python > Python 2.4.2 (#1, Jan 26 2008, 17:41:42) > [GCC 4.1.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import apsw > 8. libc.so.6: aborted attempt to load python! > ================================ This can be caused by library versions being different between your CentOS host and AST, or possibly a missing library such as the math library. Get strace into your AST environment and then run: $ strace -o /tmp/loadlog python -c "import apsw" You should end up with a file /tmp/loadlog which you can put in pastebin. > oks like it could be due to compiling for a different instruction set: > The CentOS host is i686, the AstLinux host is a i586: > > ========= > creating build/temp.linux-i686-2.4 > gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic > -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -DNDEBUG=1 > -DEXPERIMENTAL=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -Isqlite3 > -I/usr/include/python2.4 -c apsw.c -o build/temp.linux-i686-2.4/apsw.o > In file included from apsw.c:66: > statementcache.c: In function ‘statementcache_free’: > statementcache.c:99: warning: unused variable ‘res’ > creating build/lib.linux-i686-2.4 > gcc -pthread -shared build/temp.linux-i686-2.4/apsw.o -Lsqlite3 -lsqlite3 > -o build/lib.linux-i686-2.4/apsw.so > ========= > > Is it possible to tell the python build script to compile for i586? The -m32 says to compile as 32 bit code. -march=i386 says to make it work on the 80386. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHnBJ+mOOfHg372QQRAhR5AJ96iYuHoo0Op3gHur/hBbK2cFcs/ACg0R0T +yMHNWiwiqd5M7mIAEgdSE4= =cszj -----END PGP SIGNATURE----- _______________________________________________ pysqlite mailing list [email protected] http://lists.initd.org/mailman/listinfo/pysqlite