Re: Mac OS X - run from source

Adit Panchal <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
I noticed this about 6-8 months ago, but I stopped using BitPim from  
source at that time so it never seemed like it was an issue to me.

Anways I got the same error back then as I do now with the latest  
APSW code and SQLite:

ImportError: Failure linking new module: /Library/Frameworks/ 
Python.framework/Versions/2.4/lib/python2.4/site-packages/apsw.so:  
Symbol not found: _sqlite3_enable_shared_cache
   Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/site-packages/apsw.so
   Expected in: dynamic lookup

Curiously, the following warnings were reported when installing apsw  
to site-packages:

apsw.c:54:1: warning: "INT32_MIN" redefined
In file included from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/ 
_endian.h:88,
                  from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/ 
i386/endian.h:92,
                  from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/ 
machine/endian.h:32,
                  from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/ 
sys/wait.h:182,
                  from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/ 
stdlib.h:64,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.4/include/python2.4/Python.h:39,
                  from apsw.c:37:
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1/ 
include/stdint.h:135:1: warning: this is the location of the previous  
definition
apsw.c:54:1: warning: "INT32_MIN" redefined
In file included from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/ 
_endian.h:88,
                  from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/ 
ppc/endian.h:107,
                  from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/ 
machine/endian.h:30,
                  from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/ 
sys/wait.h:182,
                  from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/ 
stdlib.h:64,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.4/include/python2.4/Python.h:39,
                  from apsw.c:37:
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- 
darwin8/4.0.1/include/stdint.h:135:1: warning: this is the location  
of the previous definition
apsw.c: In function 'convert_value_to_pyobject':
apsw.c:1262: warning: pointer targets in passing argument 1 of  
'convertutf8string' differ in signedness
apsw.c: In function 'convert_value_to_pyobject':
apsw.c:1262: warning: pointer targets in passing argument 1 of  
'convertutf8string' differ in signedness
apsw.c: In function 'Cursor_next':
apsw.c:2955: warning: pointer targets in passing argument 1 of  
'convertutf8string' differ in signedness
apsw.c: In function 'Cursor_next':
apsw.c:2955: warning: pointer targets in passing argument 1 of  
'convertutf8string' differ in signedness

But it installed fine - this is on an Intel Mac but with Python 2.4.  
I haven't tried with Python 2.3 or 2.5 though.

Maybe we should forward this to Roger or to the PySQLite mailing list  
since it may be more appropriate there.

Adit

On Feb 26, 2007, at 2:37 PM, Sean Burke wrote:

> Not for nothing,* but I recall having to build apsw and sqlite  
> before BP would work on my PPC/10.4 laptop.  In both cases, it  
> required an "install" step at the end.  For apsw, see:
> http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/ 
> apsw.html#Building
> For sqlite3, I think it is a "./configure make make install" thing.
> Bitpim is easy to get running from source on OS X.  Its the  
> dependencies (apsw, etc...) that are a bear to get going.  Its been  
> a few months since I have had to do it so my recollection is a bit  
> hazy.  Hope this helps.  If not, send more questions.
>
> Sean
>
> * Why do people always start out something really insulting with  
> "not for nothing?"  My wife does this all the time.  e.g. "Not for  
> nothing, but you aren't eighteen any more and you look fat in that  
> shirt."
>
>
> On 2/26/07, T Gallagher <[email protected]> wrote:
> I put the apsw folder as a subdirectory of my home directory and  
> the sqlite3 as a subdirectory of
> the apsw directory.
>
>
> On 2/26/07, Allen Hancock < [email protected]> wrote:
>
> On Feb 26, 2007, at 12:54 PM, T Gallagher wrote:
>
> > Those instructions assumed that you built the sqlite3 library as a
> > subdirectory of the apsw
> > module directory, so the cd .. would put you back into the apsw
> > directory which has a
> > setup.py.
> >
> > I think if you complete that step and then try to run bitpim
> > (python bp.py) from the source
> > directory, you will be where I am.
> >
>
> humor me please, and from / which directory should one be putting the
> apsw-3.3.10-r1.zip and  sqlite-3.3.10.tar.gz folders to start with?
>
> I just can't seem to get apsw happy.
>
> this is on an intel based mac running 10.4.8.
>
> could there be an issue with this stuff being built under intel code,
> and bp.py making ppc calls?  (not that I really believe this... but
> want to ask)
>
> Then maybe Tim & I can move forward!
>
> thanks
>
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> BitPim-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bitpim-devel
>
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> BitPim-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bitpim-devel
>
>
>
>
> -- 
> Sean Burke
> Imaging Analysis Specialist
> Albert Einstein College of Medicine
> Yeshiva University
> Bronx, NY 10461
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV________________________________ 
> _______________
> BitPim-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bitpim-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
BitPim-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
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.