[Distutils] darwin Python 2.1 problem
Bob Ippolito
bob at redivi.com
Sat Oct 25 11:29:30 EDT 2003
On Oct 25, 2003, at 5:21 AM, Robin Becker wrote:
> In article <20031025060859.68323.qmail at web42002.mail.yahoo.com>, Chris
> Leonello <cleonello at yahoo.com> writes
>> I am trying to build _renderPM.so for use with Python 2.1.3 in a Zope
>> 2.6.2 installation on a Mac OS X Jaguar (10.2.8). I recieve the
>> following
>> error:
>>
>> creating build/lib.darwin-6.8-Power Macintosh-2.1
>> gcc -flat_namespace -bundle -undefined suppress
>> build/temp.darwin-6.8-Power Macintosh-2.1/_renderPM.o
>> -Lbuild/temp.darwin-6.8-Power Macintosh-2.1 -l_renderPM_libart
>> -l_renderPM_gt1 -o build/lib.darwin-6.8-Power
>> Macintosh-2.1/_renderPM.so
>> ld: archive: build/temp.darwin-6.8-Power
>> Macintosh-2.1/lib_renderPM_libart.a has no table of contents, add one
>> with
>> ranlib(1) (can't load from it)
>> ld: archive: build/temp.darwin-6.8-Power
>> Macintosh-2.1/lib_renderPM_gt1.a
>> has no table of contents, add one with ranlib(1) (can't load from it)
>> error: command 'gcc' failed with exit status 1
>
> Is there any way to make static library builds do a ranlib? Some Mac
> users say there's a problem with 2.1.
There's some kind of patch (you should even be able to do it from your
setup.py) you can do to distutils to make it always run ranlib, but you
can also just ranlib build/temp*/*.a and then start the build again and
it should work.
*NOBODY* should be using pre-2.3 Python on Darwin, though.
-bob
More information about the Distutils-SIG
mailing list