[XML-SIG] Re: Install_problems_on_NT4.0_Sp4_VC6.0_sp_3

Andrew M. Kuchling akuchlin@mems-exchange.org
Wed, 15 Mar 2000 10:05:03 -0500 (EST)


Greg Ward writes:
>> extensions/expat/xmlwf/unixfilemap.c(32) : fatal error C1083: Cannot
>> open include file: 'sys/mman.h'
>> : No such file or directory
>[...big hairy traceback...]
>> distutils.errors.DistutilsExecError: command 'cl.exe' failed with exit
>> status 2

Try editing setup.py and changing the definition of FILEMAP_SRC from
'extensions/expat/xmlwf/unixfilemap.c' to
'extensions/expat/xmlwf/readfilemap.c', so it doesn't try to use the
Unix-specific mmap() system call to read files.  (Presumably this
change is also needed for pre-version-10 MacOS.) I'll check in a patch
that checks sys.platform and picks the correct value.

-- 
A.M. Kuchling			http://starship.python.net/crew/amk/
    "You're developing into a theologian, Dunny."
    "A diabologian, rather. It's a fairly clear field, these days."
    -- Robertson Davies, _World Of Wonders_ (1975)