Strangely, graphviz doesn't have an ocaml use flag, but compiled fine before I had ocaml installed on the system - now I can't get it to build. # emerge -pv dev-lang/ocaml graphviz These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-lang/ocaml-3.09.3 USE="latex tcltk" 0 kB [ebuild R ] media-gfx/graphviz-2.8 USE="X tcltk* -cairo -minimal -static" 0 kB ... Making all in gv make[3]: Entering directory `/tmp/portage/graphviz-2.8-r1/work/graphviz-2.8/tclpkg/gv' /bin/sh ../../libtool --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/lib/ocaml -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/python2.4 -I/usr/lib/ruby/1.8/i686-linux -Os -march=i686 -pipe -fomit-frame-pointer -c -o gv.lo gv.cpp /bin/sh ../../libtool --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/lib/ocaml -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/python2.4 -I/usr/lib/ruby/1.8/i686-linux -Os -march=i686 -pipe -fomit-frame-pointer -c -o gv_lua.lo gv_lua.cpp /bin/sh ../../libtool --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/lib/ocaml -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/python2.4 -I/usr/lib/ruby/1.8/i686-linux -Os -march=i686 -pipe -fomit-frame-pointer -c -o gv_ocaml.lo gv_ocaml.cpp mkdir .libs i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/lib/ocaml -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/python2.4 -I/usr/lib/ruby/1.8/i686-linux -Os -march=i686 -pipe -fomit-frame-pointer -c gv.cpp -fPIC -DPIC -o .libs/gv.o i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/lib/ocaml -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/python2.4 -I/usr/lib/ruby/1.8/i686-linux -Os -march=i686 -pipe -fomit-frame-pointer -c gv_ocaml.cpp -fPIC -DPIC -o .libs/gv_ocaml.o i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/lib/ocaml -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/python2.4 -I/usr/lib/ruby/1.8/i686-linux -Os -march=i686 -pipe -fomit-frame-pointer -c gv_lua.cpp -fPIC -DPIC -o .libs/gv_lua.o gv_ocaml.cpp: In function `double caml_double_val(caml_value_t)': gv_ocaml.cpp:1107: 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:1163: error: invalid conversion from `void*' to `caml_value_t' gv_ocaml.cpp:1163: 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:1521: error: `value' was not declared in this scope gv_ocaml.cpp:1521: error: expected `;' before "caml__temp_result" gv_ocaml.cpp:1521: error: `caml__temp_result' was not declared in this scope gv_ocaml.cpp: In function `caml_value_t _wrap_digraphgv(caml_value_t)': gv_ocaml.cpp:1550: error: `value' was not declared in this scope gv_ocaml.cpp:1550: error: expected `;' before "caml__temp_result" gv_ocaml.cpp:1550: error: `caml__temp_result' was not declared in this scope [hundreds more lines] make[3]: *** [gv_ocaml.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/lib/ocaml -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/python2.4 -I/usr/lib/ruby/1.8/i686-linux -Os -march=i686 -pipe -fomit-frame-pointer -c gv_perl.cpp -fPIC -DPIC -o .libs/gv_perl.o make[3]: Leaving directory `/tmp/portage/graphviz-2.8-r1/work/graphviz-2.8/tclpkg/gv' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/portage/graphviz-2.8-r1/work/graphviz-2.8/tclpkg' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/graphviz-2.8-r1/work/graphviz-2.8' make: *** [all] Error 2 !!! ERROR: media-gfx/graphviz-2.8-r1 failed. ... So I see two problems: 1. Packages shouldn't depend on another when it's not required without a USE flag. 2. Graphviz support for ocaml's busted.
*** This bug has been marked as a duplicate of 148677 ***