The following message is displayed and fails to compile on Gentoo/FBSD. CC grep.o CCLD grep ../lib/libgreputils.a(striconv.o): In function `str_cd_iconv': striconv.c:(.text+0x64): undefined reference to `libiconv' striconv.c:(.text+0xef): undefined reference to `libiconv' striconv.c:(.text+0x16d): undefined reference to `libiconv' ../lib/libgreputils.a(striconv.o): In function `str_iconv': striconv.c:(.text+0x24a): undefined reference to `libiconv_open' striconv.c:(.text+0x26b): undefined reference to `libiconv_close' striconv.c:(.text+0x29b): undefined reference to `libiconv_close' ../lib/libgreputils.a(striconv.o): In function `mem_cd_iconv': striconv.c:(.text+0x2e3): undefined reference to `libiconv' striconv.c:(.text+0x378): undefined reference to `libiconv' striconv.c:(.text+0x3f6): undefined reference to `libiconv' striconv.c:(.text+0x452): undefined reference to `libiconv' striconv.c:(.text+0x4c1): undefined reference to `libiconv' ../lib/libgreputils.a(striconv.o):striconv.c:(.text+0x502): more undefined references to `libiconv' follow collect2: ld returned 1 exit status gmake[2]: *** [grep] Error 1 Reproducible: Always Steps to Reproduce: 1. USE="-nls" emerge =grep-2.7 2. 3. grep without nls is necessary to make new stage1.
Created attachment 269485 [details, diff] patch for grep-2.7.ebuild
Created attachment 269487 [details] files/grep-2.7-nonls-fbsd.patch
grep-2.9 has the patch, though it should depend on virtual/libiconv it seems;
feel free to add virtual/libiconv to grep-2.9 if it needs it
(In reply to comment #4) > feel free to add virtual/libiconv to grep-2.9 if it needs it done, thx