Jan Kratochvil <jan.kratoch...@redhat.com> added the comment:

Here is the implementation.

Python/getargs.c was modified for:
ImportError: /usr/lib64/python2.7/lib-dynload/fcntlmodule.so: undefined symbol: 
_PyArg_ParseTuple_SizeT
but I guess that patch part should be different.  There is no need to do #ifdef 
HAVE_DECLSPEC_DLL as PyAPI_FUNC is properly defined even without it.  So the 
declaration+export block should be unified there.

The Modules/ files were modified for:
*** WARNING: renaming "_ctypes_test" since importing it failed: dynamic module 
does not define init function (init_ctypes_test)
*** WARNING: renaming "_elementtree" since importing it failed: dynamic module 
does not define init function (init_elementtree)
*** WARNING: renaming "_hotshot" since importing it failed: dynamic module does 
not define init function (init_hotshot)
*** WARNING: renaming "_json" since importing it failed: dynamic module does 
not define init function (init_json)
*** WARNING: renaming "ossaudiodev" since importing it failed: dynamic module 
does not define init function (initossaudiodev)

without this patch:
-rw-r--r-- 1 jkratoch jkratoch 5775829 Jan 12 17:42 
python-libs-2.7.2-18.fc17.x86_64.rpm
-r-xr-xr-x 1 jkratoch jkratoch 1738264 Jan 12 17:44 
./clean/python-libs-2.7.2-18.fc17.x86_64/usr/lib64/libpython2.7.so.1.0*
1226 libpython2.7.so.1.0 .dynsym exports
+
-rw-r--r-- 1 jkratoch jkratoch 1986161 Jan 12 17:48 
gdb-7.4.50.20120103-8.fc17.x86_64.rpm
-rwxr-xr-x 1 jkratoch jkratoch 5018800 Jan 12 19:13 
clean/gdb-7.4.50.20120103-8.fc17.x86_64/usr/bin/gdb*

with this patch:
-rw-r--r-- 1 jkratoch jkratoch 5762537 Jan 12 19:04 
python-libs-2.7.2-18hidden3.fc17.x86_64.rpm
-r-xr-xr-x 1 jkratoch jkratoch 1720920 Jan 12 19:06 
./hidden3/python-libs-2.7.2-18hidden3.fc17.x86_64/usr/lib64/libpython2.7.so.1.0*
1046 libpython2.7.so.1.0 .dynsym exports
+
-rw-r--r-- 1 jkratoch jkratoch 1886781 Jan 12 19:11 
gdb-7.4.50.20120103-8.fc17.x86_64.rpm
-rwxr-xr-x 1 jkratoch jkratoch 4732080 Jan 12 19:13 
hidden3/gdb-7.4.50.20120103-8.fc17.x86_64/usr/bin/gdb*

----------
keywords: +patch
versions: +Python 2.7 -Python 3.2
Added file: http://bugs.python.org/file24221/hidden.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10112>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to