Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 221285

Summary: nano-2.1.1 fails to build without USE=spell
Product: Gentoo Linux Reporter: Michael Edenfield <kutulu>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Edenfield 2008-05-11 03:38:31 UTC
When trying to build nano without the "spell" USE flag set, there is an undefined identifier compile error.  Building with USE="spell" succeeded as expected.  The problem may be upstream, since it appears that nano is incorrectly using !defined(NANO_TINY) where it should be using !defined(DISABLE_SPELLER) to check for the availability of the spellchecking functions.  I'm not sure if this is an upstream bug or if the absence of USE="spell" should be doing something different.

Reproducible: Always

Steps to Reproduce:
1. USE="-spell" emerge nano
Actual Results:  
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon-xp -O2 -pipe -MT global.o -MD -MP -MF .deps/global.Tpo -c -o global.o global.c
global.c: In function 'shortcut_init':
global.c:1036: error: 'do_spell' undeclared (first use in this function)
global.c:1036: error: (Each undeclared identifier is reported only once
global.c:1036: error: for each function it appears in.)

Expected Results:  
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon-xp -O2 -pipe -MT global.o -MD -MP -MF .deps/global.Tpo -c -o global.o global.c
mv -f .deps/global.Tpo .deps/global.Po


Portage 2.1.5_rc10 (selinux/2007.0/x86, gcc-4.2.3, glibc-2.7-r2, 2.6.24-hardened-r1 i686)
=================================================================
System uname: 2.6.24-hardened-r1 i686 AMD Athlon(TM) XP 2100+
Timestamp of tree: Sat, 10 May 2008 17:05:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r2
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks loadpolicy parallel-fetch sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa bash-completion berkdb bzip2 cracklib crypt cups curses dri firefox gnome gtk gtk2 jpeg mad mmx mp3 mpeg mysql nptl nptlonly opengl pam perl png python readline selinux sse sse2 ssl tcpd threads vim-syntax x86 xorg zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_user autoindex dav deflate dir env expires filter headers ident info log_config mime mime_magic negotiation rewrite status unique_id userdir version" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="nvidia vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Mart Raudsepp gentoo-dev 2008-05-11 09:37:16 UTC

*** This bug has been marked as a duplicate of bug 221219 ***