[Python-Dev] [PATCH] fixing 2.5.1 build with unicode and dynamic loading disabled

Alexander Neundorf alex.neundorf at kitware.com
Wed Jul 11 19:12:49 CEST 2007


Hi,

this is my first email to this list, I'm currently porting python to some 
platforms with limited capabilities and so I thought it would be a good idea 
to subscribe here.
While doing the porting, I found two small problems in Python 2.5.1:

If Py_USING_UNICODE is disabled, in Python/ast.c decode_unicode() still calls 
unicode-related functions, which leads to undefined references when linking.

If HAVE_DYNAMIC_LOADING is disabled, in Python/import.c 
_PyImport_DynLoadFiletab is still initialized, which also leads to undefined 
references when linking, since then no source file which defines this 
variable is used.

A patch against 2.5.1 is attached.

Best regards
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-2.5.1.diff
Type: text/x-diff
Size: 1795 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20070711/f1dcb6a7/attachment.bin 


More information about the Python-Dev mailing list