[lxml-dev] building lxml for OS X 10.4 on PPC?
Michael Guntsche
mike at it-loops.com
Thu Jul 16 23:04:48 CEST 2009
On Jul 16, 2009, at 19:59, Pascal Oberndoerfer wrote:
> I get the following "last lines" (below) during compiling libxml2,
> where
> I suppose the important bit is:
>
>> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld:
>> warning /usr/lib/libiconv.dylib cputype (18,
>> architecture ppc) does not match cputype (7)
>> for specified -arch flag: i386 (file not loaded)
>
Ok, I was able to reproduce the problem. I also have a quick fix but
it's more a hack than anything else.
First the problem. During the creation of the static libxml.a library
libtool also creates an libxml2.la file.
libtool finds /usr/lib/libiconv.la which defines /usr/lib/
libiconv.dylib above. Now this file is no fat-binary and just has the
PCC architecture.
As a workaround rename /usr/lib/libiconv.la or move it somewhere else,
build lxml and move/rename the file back. This way the "correct"
libiconv.dylib will be used.
I think the most proper fix would be to build libiconv as part of the
static-deps as well. Stefan what do you think?
Kind regards,
Michael
More information about the lxml-dev
mailing list