[Distutils] OSF/1 glitch?

A.M. Kuchling akuchlin@mems-exchange.org
Thu, 15 Jun 2000 22:38:06 -0400


This was reported on the XML-SIG by Mark Favas, and looks like it
might be a Distutils problem.

=================
The link step also appears to have a wildcard quoting problem. The ld
command used is:
ld -shared -expect_unresolved "*"
build/temp.osf1V-alpha/extensions/pyexpat.o
build/temp.osf1V-alpha/extensions/expat/xmltok/xmltok.o
build/temp.osf1V-alpha/extensions/expat/xmltok/xmlrole.o
 ...
which works correctly if put into a /bin/sh script produces pyexpat.so
without warnings of unresolved externals (the -expect_unresolved "*"
pattern matches all). However, when run by Python via the "python
setup.py build" command, ld complains about all the unresolved
externals:
ld:
Warning: Unresolved:
fread
strlen
strncpy
strcmp
 ...
as if the pattern that ld is trying to match is literally "*"
=================

Presumably the link step quotes the * for the sake of the shell, and
sysconfig.py doesn't know this, so it winds up passing "*" as the
argument.

--amk