build.log: * CPV: net-p2p/mldonkey-3.0.0 * REPO: gentoo * USE: doc elibc_glibc kernel_linux ocamlopt userland_GNU x86 * Running autoconf ... [ ok ] Arguments to configure: '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--sysconfdir=/etc/mldonkey' '--sharedstatedir=/var/mldonkey' '--localstatedir=/var/mldonkey' '--enable-checks' '--disable-batch' '--disable-fasttrack' '--disable-gnutella' '--disable-gnutella2' '--disable-gd' '--disable-magic' '--enable-ocamlver=3.10' '--disable-gui' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=native -pipe -fomit-frame-pointer' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CXXFLAGS=-O2 -march=native -pipe -fomit-frame-pointer' checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu -------------------------------- Checking system tools. -------------------------------- checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for gmake... gmake checking for make... (cached) gmake checking if gmake is GNU make ... yes checking for bzip2... bzip2 checking for gzip... (cached) bzip2 checking for perl... /usr/bin/perl checking for rpmbuild... no checking for rpm... no checking for wget... wget ---------------------------------------- Checking system tools finished. ---------------------------------------- -------------------------------- Checking Ocaml compiler. -------------------------------- checking for ocamlc.opt... /usr/bin/ocamlc.opt checking for i686-pc-linux-gnu-ocamlc... /usr/bin/ocamlc.opt checking for camlp4... /usr/bin/camlp4 Need build ******** Objective-Caml 3.10 is required ********* ******* Check http://caml.inria.fr/ ******** Do you want this script to try to download and install ocaml LOCALLY in mldonkey directory ? ./configure: line 4843: read: read error: 0: Bad file descriptor * ERROR: net-p2p/mldonkey-3.0.0 failed: * econf failed * * Call stack: * ebuild.sh, line 54: Called src_configure * environment, line 3180: Called econf '--sysconfdir=/etc/mldonkey' '--sharedstatedir=/var/mldonkey' '--localstatedir=/var/mldonkey' '--enable-checks' '--disable-batch' '--disable-fasttrack' '--disable-gnutella' '--disable-gnutella2' '--disable-gd' '--disable-magic' '--enable-ocamlver=3.10' '--disable-gui' * ebuild.sh, line 544: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of 'emerge --info =net-p2p/mldonkey-3.0.0', * the complete build log and the output of 'emerge -pqv =net-p2p/mldonkey-3.0.0'. * This ebuild used the following eclasses from overlays: * /var/cache/portage/ebuilds/hardened-development/eclass/flag-o-matic.eclass * The complete build log is located at '/var/log/portage/net-p2p:mldonkey-3.0.0:20091231-075611.log'. * The ebuild environment file is located at '/var/tmp/portage/net-p2p/mldonkey-3.0.0/temp/environment'. * S: '/var/tmp/portage/net-p2p/mldonkey-3.0.0/work/mldonkey-3.0.0' Reproducible: Always Portage 2.1.7.16 (hardened/linux/x86/10.0, gcc-4.4.2-hardenednopie, glibc-2.11-r1, 2.6.31-zen9 i686) ================================================================= System uname: Linux-2.6.31-zen9-i686-Genuine_Intel-R-_CPU_T2050_@_1.60GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 31 Dec 2009 04:45:02 +0000 app-shells/bash: 4.0_p35 dev-lang/python: 2.6.4, 3.1.1-r1 dev-util/cmake: 2.8.0 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.65 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--ask-enter-invalid --nospinner --quiet-build --with-bdeps y" FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://gentoo.aditsu.net" LANG="zh_TW.UTF-8" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="zh_TW zh af am ar as as_IN ast az be be_BY bg bn bn_BD bn_IN bo br brx bs ca crh cs csb cy da de de_FR dgo dz el en en_CA en_GB en_US en_ZA eo es es_AR es_CL es_CR es_ES es_LA es_MX et et_EE eu fa fi fo fr fr_CA fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hne hr hsb hu hy id is it ja ka kk km kn kn_IN ko ko_KR kok ks ku la lb lo lt lv mai mk ml ml_IN mn mni mr mr_IN ms mt my nb nb_NO nds ne nl nn nn_NO no nr ns nso oc or or_IN pa pa_IN pl pt pt_BR pt_PT rm ro ru rw sa_IN sat sd se sh sh_YU si sk sl sq sr sr@latin sr@Latn sr_CS ss st sv sv_SE sw sw_TZ ta ta_IN ta_LK te te_IN tg th ti_ER tk tl tn tr ts uk ur_IN ur_PK uz uz@cyrillic ve vi wa xh zh_CN zh_HK zh_TW zu" MAKEOPTS="-j3" PKGDIR="/var/cache/portage/packages" PORTAGE_COMPRESS="" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/cache/portage/ebuilds/gentoo" PORTDIR_OVERLAY="/var/cache/portage/ebuilds/gentoo-china /var/cache/portage/ebuilds/kde /var/cache/portage/ebuilds/gentoo-china /var/cache/portage/ebuilds/haskell /var/cache/portage/ebuilds/hardened-development /var/cache/portage/ebuilds/sunrise /var/cache/portage/ebuilds/oss-overlay /var/cache/portage/ebuilds/local" SYNC="rsync://mirror.averse.net/gentoo-portage" USE="X a52 aac acl acpi bash-completion berkdb bluetooth branding bzip2 cdr cli consolekit cracklib crypt cscope cups cxx dbus doc dri dts dvd dvdr encode faac fam ffmpeg flac gdbm gif gpm graphite gstreamer hal hardened hscolour iconv ipv6 jpeg jpeg2k kde latex ldap lzma mad mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg openexr opengl openmp oss pam pcre pdf perl pic png policykit ppds pppd python qt4 quicktime readline reflection samba sdl semantic-desktop session spell spl sse sse2 ssl startup-notification svg sysfs syslog tcpd theora tiff truetype unicode urandom v4l2 vim-syntax vorbis webkit win32codecs x264 x86 xcomposite xml xorg xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_TW zh af am ar as as_IN ast az be be_BY bg bn bn_BD bn_IN bo br brx bs ca crh cs csb cy da de de_FR dgo dz el en en_CA en_GB en_US en_ZA eo es es_AR es_CL es_CR es_ES es_LA es_MX et et_EE eu fa fi fo fr fr_CA fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hne hr hsb hu hy id is it ja ka kk km kn kn_IN ko ko_KR kok ks ku la lb lo lt lv mai mk ml ml_IN mn mni mr mr_IN ms mt my nb nb_NO nds ne nl nn nn_NO no nr ns nso oc or or_IN pa pa_IN pl pt pt_BR pt_PT rm ro ru rw sa_IN sat sd se sh sh_YU si sk sl sq sr sr@latin sr@Latn sr_CS ss st sv sv_SE sw sw_TZ ta ta_IN ta_LK te te_IN tg th ti_ER tk tl tn tr ts uk ur_IN ur_PK uz uz@cyrillic ve vi wa xh zh_CN zh_HK zh_TW zu" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
What does: ocamlc -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' print for you ?
$ ocamlc -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' 3.11.1
Well, in the configure.in latest supported version is 3.11.0*. If mldonkey still works with the new one, a patch will be required.
Created attachment 218052 [details, diff] Patch configure.in to accept newer ocaml. I can confirm this bug. It compiles fine with ocaml-3.11.1. I've attached a patch with the suggested fix. Please add this to the ebuild.
This bug is fixed in MLDonkey 3.0.2
Use mldonkey-3.0.5