Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260153 - sys-apps/grep-2.5.4 fails to compile with USE="-nls"
Summary: sys-apps/grep-2.5.4 fails to compile with USE="-nls"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-24 17:22 UTC by Armando Di Cianno
Modified: 2009-03-13 20:47 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Armando Di Cianno 2009-02-24 17:22:03 UTC
grep-2.54 fails, like so:

mv -f .deps/egrep.Tpo .deps/egrep.Po
i686-apple-darwin9-gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../lib -DLOCALEDIR=\"/Library/Gentoo/usr/share/locale\"    -O2 -pipe -march=prescott -MT fsearch.o -MD -MP -MF .deps/fsearch.Tpo -c -o fsearch.o fsearch.c
In file included from fsearch.c:2:
search.c: In function 'check_multibyte_string':
search.c:169: warning: passing argument 1 of 'wcrtomb' discards qualifiers from pointer target type
mv -f .deps/fsearch.Tpo .deps/fsearch.Po
mv -f .deps/fgrep.Tpo .deps/fgrep.Po
i686-apple-darwin9-gcc  -O2 -pipe -march=prescott   -o fgrep fgrep.o fsearch.o kwset.o ../lib/libgreputils.a 
Undefined symbols:
  "_libintl_gettext", referenced from:
      _print_and_abort in libgreputils.a(obstack.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [fgrep] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/dfa.Tpo .deps/dfa.Po
make[2]: Leaving directory `/Library/Gentoo/var/tmp/portage/sys-apps/grep-2.5.4/work/grep-2.5.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Library/Gentoo/var/tmp/portage/sys-apps/grep-2.5.4/work/grep-2.5.4'
make: *** [all] Error 2
 * ERROR: sys-apps/grep-2.5.4 failed:
 *   emake failed
 * 
 * Call stack:
 *               ebuild.sh:  49: <call src_compile>
 *             environment:2224:     emake || die "emake failed"
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.



Reproducible: Always




I reemerged gettext "just in case", but that didn't change anything; I also tried with MAKEOPTS="-j1".

Portage 2.2.00.12671-prefix (prefix/darwin/macos/10.5/x86, gcc-4.2.1, unavailable, 9.6.0 i386)
=================================================================
System uname: Darwin-9.6.0-i386-32bit
Timestamp of tree: Tue, 24 Feb 2009 15:02:31 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p48
dev-lang/python:     2.5.4-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.10.2-r00.1
sys-devel/gcc-config: 1.4.0-r04.6
sys-devel/libtool:   1.5.26
ACCEPT_KEYWORDS="~x86-macos"
CBUILD="i686-apple-darwin9"
CFLAGS="-O2 -pipe -march=prescott"
CHOST="i686-apple-darwin9"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=prescott"
DISTDIR="/Library/Gentoo/usr/portage/distfiles"
EPREFIX="/Library/Gentoo"
FEATURES="buildpkg collision-protect distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS=""
MAKEOPTS="-j3"
PKGDIR="/Library/Gentoo/usr/portage/packages"
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="/Library/Gentoo/var/tmp"
PORTDIR="/Library/Gentoo/usr/portage"
PORTDIR_OVERLAY="/Users/fafhrd/Projects/gentoo/overlay"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aac amr aqua bzip2 coreaudio cracklib dirac emacs gif gsm ipv6 jpeg midi mmx mmxext mp3 ncurses objc objc++ png prefix readline schroedinger speex spell sse sse2 ssl theora tiff unicode vorbis x264 x86-macos xpm xvid zlib" 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="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Fabian Groffen gentoo-dev 2009-02-25 19:09:31 UTC
I don't see nls in your USE-flags so I assume that's the problem, as it compiles fine for me with USE="nls"
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-03 15:49:30 UTC
We could force it in package.use.force?
Comment 3 Fabian Groffen gentoo-dev 2009-03-13 20:47:08 UTC
nls patch was readded, please reopen if the bug persists in an hour from now