[Pythonmac-SIG] CVS compile error: bz2 --> out of date; rerun ranlib(1) (can't load from it)

Daniel Lord daniellord@telocity.com
Wed, 27 Nov 2002 23:00:46 -0800


Anybody,

I got the error below and it says to run ranlib (which I thought was 
superceded on OSX by libtool so that's what I'd use). But I don't know 
exactly what options to give libtool and reading the voluminous man 
page didn't clear it up. Anybody care to give me a hint? I've been 
trying to figure out how to compile a simple C extension to python as a 
dynamic library and cannot get that to work with libtool either.

building 'bz2' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double 
-no-cpp-precomp -fno-common -dynamic -I. 
-I/usr/local/src/python/dist/src/./Include 
-I/usr/local/src/python/dist/src/./Mac/Include -I/usr/local/include 
-I/usr/local/src/python/dist/src/Include 
-I/usr/local/src/python/dist/src -c 
/usr/local/src/python/dist/src/Modules/bz2module.c -o 
/usr/local/src/python/dist/src/Modules/bz2module.o
cc1: warning: changing search order for system directory 
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system 
directory
gcc -Wl,-F. -bundle -framework Python 
/usr/local/src/python/dist/src/Modules/bz2module.o -L/usr/local/lib 
-lbz2 -o build/lib.darwin-6.2-Power Macintosh-2.3/bz2.so
ld: table of contents for archive: /usr/lib/libbz2.a is out of date; 
rerun ranlib(1) (can't load from it)

Cheers,
Daniel