Mantis - py_libxml2
Viewing Issue Advanced Details
5093 regular use major always 2013-07-16 10:43 2013-07-18 10:17
cgrzemba  
cgrzemba  
normal  
closed  
fixed  
none    
none  
0005093: PyCapsule_CheckExact: referenced symbol not found
Cannot use py_libxml2:

cgrzemba@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
observed on unstable10x
Issue History
2013-07-16 10:43 cgrzemba New Issue
2013-07-16 15:40 cgrzemba Status new => assigned
2013-07-16 15:40 cgrzemba Assigned To => maciej
2013-07-17 16:59 cgrzemba Note Added: 0010500
2013-07-18 10:16 cgrzemba Assigned To maciej => cgrzemba
2013-07-18 10:17 cgrzemba Note Added: 0010501
2013-07-18 10:17 cgrzemba Status assigned => closed
2013-07-18 10:17 cgrzemba Resolution open => fixed

Notes
(0010500)
cgrzemba   
2013-07-17 16:59   
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
(0010501)
cgrzemba   
2013-07-18 10:17   
fixed in build 2.9.1,REV=2013.07.17