Number: 1036
Title: gv_ocaml.cpp: In function `double caml_double_val(caml_value_t)':
Submitter: taurnil
Date: Wed Oct 11 13:17:23 2006
Subsys: Build/Installation
Version: 2.8
System: x86-Linux-2.6.18
Severity: major
I have ocaml-3.09.3 and tcl-8.4.13 installed both compiled from source and installed fine. The make phase of graphviz fails with (snip):

gv_ocaml.cpp:6274: error: `value' was not declared in this scope
gv_ocaml.cpp:6274: error: expected `;' before "caml__temp_result"
gv_ocaml.cpp:6274: error: `caml__temp_result' was not declared in this scope
make[3]: *** [gv_ocaml.lo] Error 1
make[3]: Leaving directory `/usr/src/graphviz-2.8/tclpkg/gv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/graphviz-2.8/tclpkg'

Attached is a more complete log of the build and make phases.
Output file: b1036.bz2
[ellson] If you are not specifically looking for the ocaml interface you might try: ./configure --disable-ocaml

Otherwise, it looks like some kind of problem with the swig-generated code. The ocaml binding works here with:


what versions are you using?

[north] The problem seems to be a misunderstanding between ocaml and swig. It goes away with swig 1.3.31

We do encounter this problem locally because we aren't updating John's set of build tools so /home/ellson/FIX is still on swig 1.3.27 which has the bug.

(I feel that where possible locally we should drop FIX and use the system tools.)
Owner: ellson
Status: *