swig -c++ -ocaml -o gv_ocaml.cpp ./gv.i
SWIG:1: Warning 524: Experimental target language. Target language OCaml
specified by -ocaml is an experimental language. Please read about SWIG
experimental languages,
http://swig.org/Doc4.0/Introduction.html#Introduction_experimental_status.
mv gv_ocaml.cpp gv_ocaml.cpp.orig
sed '/int caml_array_length/d' gv_ocaml.cpp.orig > gv_ocaml.cpp
rm gv_ocaml.cpp.orig
  CXX      libgv_ocaml_la-gv_ocaml.lo
gv_ocaml.cpp: In function 'long int caml_long_val_full(caml_value_t, const
char*)':
gv_ocaml.cpp:1362:48: error: invalid conversion from 'const caml_value_t*'
{aka 'const long int*'} to 'caml_value_t*' {aka 'long int*'} [-fpermissive]
 1362 |      CAML_VALUE *enum_to_int = caml_named_value(SWIG_MODULE
"_enum_to_int");
      |
 ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                |
      |                                                const caml_value_t*
{aka const long int*}
gv_ocaml.cpp: In function 'int caml_ptr_val_internal(caml_value_t, void**,
swig_type_info*)':
gv_ocaml.cpp:1416:37: error: invalid conversion from 'const caml_value_t*'
{aka 'const long int*'} to 'caml_value_t*' {aka 'long int*'} [-fpermissive]
 1416 |          func_val = caml_named_value("caml_obj_ptr");
      |                     ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
      |                                     |
      |                                     const caml_value_t* {aka const
long int*}
gv_ocaml.cpp: In function 'caml_value_t SWIG_Ocaml_ptr_to_val(const char*,
void*, swig_type_info*)':
gv_ocaml.cpp:1529:47: error: invalid conversion from 'const caml_value_t*'
{aka 'const long int*'} to 'caml_value_t*' {aka 'long int*'} [-fpermissive]
 1529 |         CAML_VALUE *fromval = caml_named_value(name);
      |                               ~~~~~~~~~~~~~~~~^~~~~~
      |                                               |
      |                                               const caml_value_t*
{aka const long int*}
make[4]: *** [Makefile:2227: libgv_ocaml_la-gv_ocaml.lo] Error 1
make[4]: Leaving directory
'/var/lib/sources/graphviz/graphviz-2.42.1/tclpkg/gv'
make[3]: *** [Makefile:2758: all-recursive] Error 1
make[3]: Leaving directory
'/var/lib/sources/graphviz/graphviz-2.42.1/tclpkg/gv'
make[2]: *** [Makefile:646: all-recursive] Error 1
make[2]: Leaving directory
'/var/lib/sources/graphviz/graphviz-2.42.1/tclpkg'
make[1]: *** [Makefile:825: all-recursive] Error 1
make[1]: Leaving directory '/var/lib/sources/graphviz/graphviz-2.42.1'
make: *** [Makefile:633: all] Error 2
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to