OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005093 [py_libxml2] regular use major always 2013-07-16 10:43 2013-07-18 10:17
Reporter cgrzemba View Status public  
Assigned To cgrzemba
Priority normal Resolution fixed  
Status closed  
Summary 0005093: PyCapsule_CheckExact: referenced symbol not found
Description 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
Additional Information observed on unstable10x
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010500)
cgrzemba (developer)
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 (developer)
2013-07-18 10:17

fixed in build 2.9.1,REV=2013.07.17


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker