Discussion:
[Bitpim-devel] Re: [bitpim-cvs-checkins] bitpim com_audiovoxcdm8900.py,1.14,1.15
Roger Binns
2004-12-21 06:00:53 UTC
Permalink
- data=com_brew.escape(data+com_brew.crcs(data))+self.pbterminator
+ data=common.pppescape(data+common.crcs(data))+common.pppterminator
I was just about to commit the other way of solving this, namely by adding
these lines near the top of com_brew.py:

# other modules depend on using the same mechanism as brew for
# checksums and escaping - ensure they are also available from this
# module

escape=common.pppescape
unescape=common.pppunescape
crc=common.crc
crcs=common.crcs

That way the modules can still refer to com_brew.escape and all will work
well.

Roger
Vic Heintz
2004-12-22 14:50:24 UTC
Permalink
After a recent cvs update I found I could not run without apsw. (Roger
warned that this would soon be required.) Of course i had to download,
make, and install sqlite which I believe was successful. However, I
have been unable to get through the installation of apsw. First I got
an error that sqlite3.h was missing. Fixed this with a sym link
/usr/local/include/sqlite3.h -> sqlite.h but I'm still getting errors.
Here is the start of a long list:
/usr/local/bin/pythonw setup.py install
running install
running build
running build_ext
building 'apsw' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -DEXPERIMENTAL=1
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c apsw.c -o build/temp.darwin-6.8-Power_Macintosh-2.3/apsw.o
apsw.c:173: parse error before "sqlite3"
apsw.c:174: warning: function declaration isn't a prototype

Not sure how to proceed.

Vic
Roger Binns
2004-12-22 15:43:40 UTC
Permalink
Post by Vic Heintz
However, I
have been unable to get through the installation of apsw. First I got
an error that sqlite3.h was missing. Fixed this with a sym link
/usr/local/include/sqlite3.h -> sqlite.h but I'm still getting errors.
You will find life considerably easier extracting the SQLite code
into a subdirectory of the apsw code as documented in the instructions:

http://www.rogerbinns.com/apsw.html#Building

Roger
Vic Heintz
2004-12-23 18:34:57 UTC
Permalink
Post by Roger Binns
However, I have been unable to get through the installation of apsw.
First I got an error that sqlite3.h was missing. Fixed this with a
sym link /usr/local/include/sqlite3.h -> sqlite.h but I'm still
getting errors.
You will find life considerably easier extracting the SQLite code
http://www.rogerbinns.com/apsw.html#Building
Mea culpa. I grabbed the tarball and followed the README there because
I use Mac OS and the comments about sqlite-source-3.0.8.zip said "This
file is provided as a service to MS-Windows users who lack the build
support infrastructure of Unix."

How about that. It did work better following your instructions!

Vic

Loading...