Hi all,
compiling graphviz-2.8 with gcc-4.1.1 and Python-2.5 failed due to
some type mismatches. I didn't bother finding out which one's caused
the trouble (thus the bland name), the fix is straightforward and should
be backward-compatible.
The small patch is attached.
Hans-Joachim
--- graphviz-2.8/tclpkg/gv/gv_python.cpp.orig 2006-10-20 07:52:16.000000000
+0200
+++ graphviz-2.8/tclpkg/gv/gv_python.cpp 2006-10-20 08:02:27.000000000
+0200
@@ -1228,7 +1228,7 @@
obj = pyobj;
if (PyCFunction_Check(obj)) {
/* here we get the method pointer for callbacks */
- char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
c = doc ? strstr(doc, "swig_ptr: ") : 0;
if (c) {
c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
@@ -5498,11 +5498,11 @@
swig_type_info **types_initial) {
size_t i;
for (i = 0; methods[i].ml_name; ++i) {
- char *c = methods[i].ml_doc;
+ const char *c = methods[i].ml_doc;
if (c && (c = strstr(c, "swig_ptr: "))) {
int j;
swig_const_info *ci = 0;
- char *name = c + 10;
+ const char *name = c + 10;
for (j = 0; const_table[j].type; ++j) {
if (strncmp(const_table[j].name, name,
strlen(const_table[j].name)) == 0) {
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page