dev-ml/lablgl-0.98 compilation failed ocamlc -c -w s -ccopt "-c -O -I/usr/X11R6/include -ITogl" ml_togl.c ml_togl.c:9:16: tk.h: No such file or directory In file included from ml_togl.c:15: Togl/togl.h:86:16: tk.h: No such file or directory In file included from ml_togl.c:15: Togl/togl.h:206: error: syntax error before "Togl_TkWin" Togl/togl.h:206: warning: type defaults to `int' in declaration of `Togl_TkWin' Togl/togl.h:206: warning: data definition has no type or storage class ml_togl.c: In function `ml_Togl_Init': ml_togl.c:35: warning: pointer/integer type mismatch in conditional expression make: *** [ml_togl.o] Error 2 !!! ERROR: dev-ml/lablgl-0.98 failed. !!! Function src_compile, Line 55, Exitcode 2 !!! (no error message) Earlier in the emerge process, it gave me a warning: /usr/bin/ocaml * It seems you don't have ocaml compiled with tk support * or you don't have ocaml installed and tcltk USE flag is * not defined. * * lablgl requires ocaml be built with tk support. * * Please make sure that ocaml is installed with tk support. Also, some more compiler warnings: ocamlc -c -w s -ccopt "-c -O -I/usr/X11R6/include -ITogl" ml_gl.c ml_gl.c: In function `ml_glHint': ml_gl.c:202: warning: `targ' might be used uninitialized in this function ml_gl.c: In function `ml_glMap1d': ml_gl.c:280: warning: `ustride' might be used uninitialized in this function ml_gl.c:281: warning: `targ' might be used uninitialized in this function ml_gl.c: In function `ml_glMap2d': ml_gl.c:311: warning: `ustride' might be used uninitialized in this function ml_gl.c:312: warning: `targ' might be used uninitialized in this function ocamlrun ./var2def < glu_tags.var > glu_tags.h ./var2switch GLU_ < glu_tags.var > glu_tags.c ocamlc -c -w s -ccopt "-c -O -I/usr/X11R6/include -ITogl" ml_glu.c ml_glu.c: In function `ml_gluNurbsCurve': ml_glu.c:140: warning: `targ' might be used uninitialized in this function ml_glu.c:141: warning: `ustride' might be used uninitialized in this function ml_glu.c: In function `ml_gluNurbsSurface': ml_glu.c:197: warning: `type' might be used uninitialized in this function ml_glu.c:198: warning: `sStride' might be used uninitialized in this function ml_glu.c: In function `ml_gluPwlCurve': ml_glu.c:274: warning: `type' might be used uninitialized in this function ml_glu.c:275: warning: `stride' might be used uninitialized in this function ml_glu.c: In function `ml_gluTessProperty': ml_glu.c:311: warning: `data' might be used uninitialized in this function This all happened when I tried to emerge net-p2p/mldonkey Reproducible: Always Steps to Reproduce: 1. emerge dev-ml/lablgl-0.98 Actual Results: Compiler errors. emerge stopped Expected Results: compiled correctly and installed the software corelli:~$ emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1) ================================================================= System uname: 2.6.1 i686 Intel(R) Celeron(R) CPU 2.00GHz Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
You must run opengl-update <driver> to update symlinks
Fixed ebuild, added eerror when user enables tcltk and ocaml doesn't support it.