Whenever I try to compile ocaml (either directly or because of dependency), it fails with this error: libcamlrun.a(terminfo.o): In function `caml_terminfo_setup': terminfo.c:(.text+0x67): undefined reference to `tgetent' terminfo.c:(.text+0x86): undefined reference to `tgetnum' terminfo.c:(.text+0x9b): undefined reference to `tgetstr' terminfo.c:(.text+0xb1): undefined reference to `tgetstr' terminfo.c:(.text+0xc7): undefined reference to `tgetstr' terminfo.c:(.text+0xdd): undefined reference to `tgetstr' terminfo.c:(.text+0x167): undefined reference to `tgetstr' libcamlrun.a(terminfo.o):terminfo.c:(.text+0x17d): more undefined references to `tgetstr' follow libcamlrun.a(terminfo.o): In function `caml_terminfo_backup': terminfo.c:(.text+0x1bd): undefined reference to `tputs' libcamlrun.a(terminfo.o): In function `caml_terminfo_standout': terminfo.c:(.text+0x203): undefined reference to `tputs' libcamlrun.a(terminfo.o): In function `caml_terminfo_resume': terminfo.c:(.text+0x24d): undefined reference to `tputs' collect2: error: ld returned 1 exit status make[2]: *** [ocamlrun] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-lang/ocaml-3.12.1/work/ocaml-3.12.1/byterun' make[1]: *** [coldstart] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-lang/ocaml-3.12.1/work/ocaml-3.12.1' make: *** [world] Error 2 emake failed Reproducible: Always Steps to Reproduce: 1. emerge -pqv '=dev-lang/ocaml-3.12.1' 2. wait Actual Results: The compilation fails. Expected Results: The ocaml compiles fine / install.
Created attachment 359826 [details] build.log
Created attachment 359828 [details] build environment
Created attachment 359830 [details] emerge --info '=dev-lang/ocaml-3.12.1'
Happens with ocaml 4.01 too.
*** This bug has been marked as a duplicate of bug 459512 ***