camlimages (version 2.11 and 2.20) fails to compile if ocaml is compiled with useflag "-tcltk". No useful warning is issued by emerge to explain the problem. Reproducible: Always Steps to Reproduce: 1. emerge ocaml with useflag "-tcltk" 2. emerge camlimages Actual Results: Compilation fails because the ocaml "Graphics" module is unknown. Expected Results: Warn about the missing useflag "tcltk" (something like what can be found in ebuild active-dvi-1.6.0). Stop emerging before trying to compile. Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5- r0, 2.6.11-gentoo-r3 i686) ================================================================= System uname: 2.6.11-gentoo-r3 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1 1/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://linux.rz.ruhr-uni-boc hum.de/download/gentoo-mirror/ http://www.die.unipd.it/pub/Linux/distributions/g entoo-sources/ ftp://mirrors.blueyonder.co.uk/mirrors/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/maggesi/Trees/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi bash-completion berkdb bitmap-fonts crypt cups curl doc emboss encode esd fam foomaticdb fortran gd gdbm gif gnome gpm gtk gtk2 ima p imlib ipv6 java jpeg kde kerberos libg++ libwww mad mikmod motif mp3 mpeg mysq l ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime r eadline sasl sdl spell ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-f onts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
dev-ml/camlimages-2.11-r1 gave me this error: ocamlc.opt -I ../corelib -c oFreetype.ml In file included from ftintf.c:23: /usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /usr/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>" /usr/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" make[1]: *** [ftintf.o] Error 2 make[1]: Leaving directory `/var/tmp/portage/camlimages-2.11-r1/work/camlimages-2.11/freetype2' make: *** [all.byte] Error 2 But, version 2.20 compiles fine, with "-tcltk" in the USE flags in make.conf.
2.12 is no longer in CVS and 2.20 is already fixed.