Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363101 - [patch] sys-apps/grep-2.7 fails to compile with use -nls on Gentoo/FBSD
Summary: [patch] sys-apps/grep-2.7 fails to compile with use -nls on Gentoo/FBSD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: new-fbsd-stage
  Show dependency tree
 
Reported: 2011-04-11 13:22 UTC by Yuta SATOH
Modified: 2011-07-07 03:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for grep-2.7.ebuild (grep.ebuild.patch,619 bytes, patch)
2011-04-11 13:26 UTC, Yuta SATOH
Details | Diff
files/grep-2.7-nonls-fbsd.patch (grep-2.7-nonls-fbsd.patch,910 bytes, text/plain)
2011-04-11 13:26 UTC, Yuta SATOH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2011-04-11 13:22:24 UTC
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.
Comment 1 Yuta SATOH 2011-04-11 13:26:02 UTC
Created attachment 269485 [details, diff]
patch for grep-2.7.ebuild
Comment 2 Yuta SATOH 2011-04-11 13:26:29 UTC
Created attachment 269487 [details]
files/grep-2.7-nonls-fbsd.patch
Comment 3 Alexis Ballier gentoo-dev 2011-07-06 19:24:03 UTC
grep-2.9 has the patch, though it should depend on virtual/libiconv it seems;
Comment 4 SpanKY gentoo-dev 2011-07-06 21:10:49 UTC
feel free to add virtual/libiconv to grep-2.9 if it needs it
Comment 5 Alexis Ballier gentoo-dev 2011-07-07 03:04:12 UTC
(In reply to comment #4)
> feel free to add virtual/libiconv to grep-2.9 if it needs it

done, thx