[Pythonmac-SIG] Problem building PyXML v0.8 in Python v2.2
W.T. Bridgman
wtbridgman@radix.net
Mon, 2 Sep 2002 15:45:04 -0400
Jack,
Okay, it's not the filepath spaces. I found the paths built in
/usr/local/lib/python2.2/distutils/util.py and found the variable
machine, forcing it to 'Power_Macintosh'.
The last command fails with the same error:
cc -bundle -flat_namespace -undefined suppress
build/temp.darwin-5.5-Power_Macintosh-2.2/pyexpat.o
build/temp.darwin-5.5-Power_Macintosh-2.2/xmlparse.o
build/temp.darwin-5.5-Power_Macintosh-2.2/xmlrole.o
build/temp.darwin-5.5-Power_Macintosh-2.2/xmltok.o -o
build/lib.darwin-5.5-Power_Macintosh-2.2/_xmlplus/parsers/pyexpat.so
-flat_namespace
/usr/bin/ld: -undefined: unknown argument: -lbundle1.o
error: command 'cc' failed with exit status 1
So much for that idea.
Now let me get out of 'root' before I hurt myself... ;^)
Tom
>Jack,
>
>There is the 'cc -bundle' part as though it thinks it's a library.
>About the only environment variables I've changed are CVSROOT. I'm
>running a straight default build.
>
>This is what has me wondering about the spaces in the file paths.
>The line parser for cc could be interpreting the entire line in very
>strange ways. I know it drove me up a wall for several weeks trying
>to solve an earlier problem before I hit on that.
>
>Just where does this system get the 'darwin-5.5-Power Macintosh-2.2'
>string in the path? I've looked in the setup.py file with no luck.
>I have found
>
>>>> os.uname()
>('Darwin', 'localhost', '5.5', 'Darwin Kernel Version 5.5: Thu May
>30 14:51:26 PDT 2002; root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC ',
>'Power Macintosh')
>
> which might be from whence this string hails. However, I see it's
>a tuple so changing it might be tricky.
>
>Any other thoughts?
>
>Tom
>
>>On Sunday, September 1, 2002, at 11:50 , W.T. Bridgman wrote:
>>
>>>cc -bundle -flat_namespace -undefined suppress
>>>build/temp.darwin-5.5-Power Macintosh-2.2/pyexpat.o
>>>build/temp.darwin-5.5-Power Macintosh-2.2/xmlparse.o
>>>build/temp.darwin-5.5-Power Macintosh-2.2/xmlrole.o
>>>build/temp.darwin-5.5-Power Macintosh-2.2/xmltok.o -o
>>>build/lib.darwin-5.5-Power
>>>Macintosh-2.2/_xmlplus/parsers/pyexpat.so -flat_namespace
>>>/usr/bin/ld: -undefined: unknown argument: -lbundle1.o
>>>error: command 'cc' failed with exit status 1
>>
>>Very strange... There's no "-lbundle1.o" anywhere on your command
>>line... You don't have anything set in your LDFLAGS environment
>>variable, or in another environment variable that could be picked
>>up by ld or cc? Alternatively, it is complaining about the value to
>>the -undefined option, but why it would be reading "suppress" as
>>"-lbundle1.o" is beyond me...
>>--
>>- Jack Jansen <Jack.Jansen@oratrix.com>
>>http://www.cwi.nl/~jack -
>>- If I can't dance I don't want to be part of your revolution --
>>Emma Goldman -
>
>
>_______________________________________________
>Pythonmac-SIG maillist - Pythonmac-SIG@python.org
>http://mail.python.org/mailman/listinfo/pythonmac-sig