[bug-notifications] [py_libxml2 0005093]: PyCapsule_CheckExact: referenced symbol not found

Mantis Bug Tracker noreply at opencsw.org
Wed Jul 17 16:59:20 CEST 2013


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=5093 
====================================================================== 
Reported By:                cgrzemba
Assigned To:                maciej
====================================================================== 
Project:                    py_libxml2
Issue ID:                   5093
Category:                   regular use
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2013-07-16 10:43 CEST
Last Modified:              2013-07-17 16:59 CEST
====================================================================== 
Summary:                    PyCapsule_CheckExact: referenced symbol not found
Description: 
Cannot use py_libxml2:

cgrzemba at unstable10x:~/opencsw/evince/trunk$ python
Python 2.6.8 (unknown, Feb 27 2013, 14:48:09) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxml2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/csw/lib/python/site-packages/libxml2.py", line 1, in <module>
    import libxml2mod
ImportError: ld.so.1: python: fatal: relocation error: file
/opt/csw/lib/python/site-packages/libxml2mod.so: symbol
PyCapsule_CheckExact: referenced symbol not found

====================================================================== 

---------------------------------------------------------------------- 
 (0010500) cgrzemba (developer) - 2013-07-17 16:59
 https://www.opencsw.org/mantis/view.php?id=5093#c10500 
---------------------------------------------------------------------- 
This fix the problem for us Version 2.6.8.
I do not know how it is for other versions.

--- a/python/libxml_wrap.h
+++ b/python/libxml_wrap.h
@@ -34,13 +34,13 @@
 #define PyBytes_AsString PyString_AsString
 #define PyBytes_AS_STRING PyString_AS_STRING
 #define PyBytes_GET_SIZE PyString_GET_SIZE
+#endif

 #define PyCapsule_New PyCObject_FromVoidPtrAndDesc
 #define PyCapsule_CheckExact PyCObject_Check
 #define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o))

 #endif
-#endif



More information about the bug-notifications mailing list