Description of problem:
Recent ocaml-3.09.3-1.fc5 update results in bad C++ code being generated by swig.
ocaml-3.09.2-1.fc5 + swig-1.3.24-2.2.1 is OK.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. compile graphviz-2.12 (upstream release from www.graphviz.org) on fully
gv_ocaml.cpp: In function 'double caml_double_val(caml_value_t)':
gv_ocaml.cpp:1092: warning: converting to 'caml_value_t' from 'double'
gv_ocaml.cpp: In function 'void* caml_ptr_val(caml_value_t, swig_type_info*)':
gv_ocaml.cpp:1148: error: invalid conversion from 'void*' to 'caml_value_t'
gv_ocaml.cpp:1148: error: invalid conversion from 'caml_value_t' to 'void*'
gv_ocaml.cpp: In function 'caml_value_t _wrap_graph__SWIG_0gv(caml_value_t)':
gv_ocaml.cpp:1581: error: 'value' was not declared in this scope
gv_ocaml.cpp:1581: error: expected `;' before 'caml__temp_result'
gv_ocaml.cpp:1581: error: 'caml__temp_result' was not declared in this scope
Does it work with the newest version of swig? If yes, you might request an
update for swig. Otherwise, does it work with upstream ocaml? If yes, then there
might be a problem with packaging. In any other case, I fear the problem lies
with upstream ocaml, and you have to report it to them.
ocaml-3.09.3-1.fc7 + swig-1.3.31-0.fc7 on Fedora Rawhide is OK.
ocaml-3.09.3-1.fc7 + swig-1.3.31-0.fc5 (built from fc7 src.rpm) on FC5 is OK
Sounds like swig should be updated on FC5. I'll generate a bug against swig.
(In reply to comment #2)
> Sounds like swig should be updated on FC5.
> I'll generate a bug against swig.
Good, so the problem is found.
However, I fear that the update won't happen :-(
Cross referencing related bugs:
swig is now 1.3.31 in fc5