-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.6.18 doesn't build against vendor built sqlite #67
Comments
From rogerbinns on September 13, 2009 05:17:07 Your SQLite is built with -DSQLITE_OMIT_LOAD_EXTENSION so you need to build APSW with Status: Invalid |
From bchesneau on September 13, 2009 05:54:21 well issue is valid.... This is to the packager to make sure that its stuff works on Attachment: apsw_setup.py.patch |
From rogerbinns on September 13, 2009 06:00:41 That patch is bogus because it unilaterally disables loadable extensions on all Macs! It only works for the case of the Apple supplied SQLite where they have disabled Additionally the next APSW release will require SQLite 3.6.18 at a minimum and |
From bchesneau on September 13, 2009 06:10:50 there are many other way to detect sqlite like using a little c code to do it like Which is the main objectiv of packaging ie provide the default. Rather than closing |
From rogerbinns on September 13, 2009 06:33:10 I understand your frustration, but lets be clear that it is Apple who changed the pysqlite does not do any detection - it ships source with extension loading omitted The environment of code running within setup.py is particularly horrible hence the Some example fun reading: http://cournape.wordpress.com/2009/04/01/python-packaging-a-few-observations-cabal-for-a-solution/ |
From rogerbinns on September 17, 2009 17:47:52 After playing around a bit more I've thought of an alternate approach. When using the amalgamation then default to load extension being enabled otherwise Summary: 3.6.18 doesn't build against vendor built sqlite |
From rogerbinns on September 25, 2009 19:50:56 Revision be112563b8 changes the defaults so extension loading is on when using the Status: Verified |
From bchesneau on September 13, 2009 04:45:10
Just launched tests and got :
enlil-2:apsw benoitc$ sudo python setup.py install
SQLite: Using system sqlite include/libraries
running install
running build
running build_ext
building 'apsw' extension
creating build
creating build/temp.macosx-10.6-universal-2.6
creating build/temp.macosx-10.6-universal-2.6/src
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os
-Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64
-pipe -DEXPERIMENTAL=1 -DNDEBUG=1 -Isrc
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
src/apsw.c -o build/temp.macosx-10.6-universal-2.6/src/apsw.o
creating build/lib.macosx-10.6-universal-2.6
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc
-arch x86_64 build/temp.macosx-10.6-universal-2.6/src/apsw.o -lsqlite3 -o
build/lib.macosx-10.6-universal-2.6/apsw.so
running install_lib
copying build/lib.macosx-10.6-universal-2.6/apsw.so ->
/Library/Python/2.6/site-packages
running install_egg_info
enlil-2:apsw benoitc$ python tests.py
Traceback (most recent call last):
File "tests.py", line 9, in
import apsw
ImportError: dlopen(/Library/Python/2.6/site-packages/apsw.so, 2): Symbol
not found: _sqlite3_enable_load_extension
Referenced from: /Library/Python/2.6/site-packages/apsw.so
Expected in: flat namespace
in /Library/Python/2.6/site-packages/apsw.so
Original issue: http://code.google.com/p/apsw/issues/detail?id=67
The text was updated successfully, but these errors were encountered: