Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214132 - app-editors/nano-2.1.0 fails to build with USE="minimal"
Summary: app-editors/nano-2.1.0 fails to build with USE="minimal"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: SpanKY
URL: https://savannah.gnu.org/bugs/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-21 10:18 UTC by John SJ Anderson
Modified: 2008-03-29 20:15 UTC (History)
3 users (show)

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 John SJ Anderson 2008-03-21 10:18:29 UTC
nano-2.10 fails to build if USE="minimal" is set. With USE="-minimal", it builds just fine.

Reproducible: Always

Steps to Reproduce:
1. USE="minimal" emerge -av nano
2.
3.

Actual Results:  
make[2]: Entering directory `/var/tmp/portage/app-editors/nano-2.1.0/work/nano-2.1.0/src'
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon64 -O3 -pipe -MT browser.o -MD -MP -MF ".deps/browser.Tpo" -c -o browser.o browser.c; \
        then mv -f ".deps/browser.Tpo" ".deps/browser.Po"; else rm -f ".deps/browser.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon64 -O3 -pipe -MT chars.o -MD -MP -MF ".deps/chars.Tpo" -c -o chars.o chars.c; \
        then mv -f ".deps/chars.Tpo" ".deps/chars.Po"; else rm -f ".deps/chars.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon64 -O3 -pipe -MT color.o -MD -MP -MF ".deps/color.Tpo" -c -o color.o color.c; \
        then mv -f ".deps/color.Tpo" ".deps/color.Po"; else rm -f ".deps/color.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon64 -O3 -pipe -MT cut.o -MD -MP -MF ".deps/cut.Tpo" -c -o cut.o cut.c; \
        then mv -f ".deps/cut.Tpo" ".deps/cut.Po"; else rm -f ".deps/cut.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon64 -O3 -pipe -MT files.o -MD -MP -MF ".deps/files.Tpo" -c -o files.o files.c; \
        then mv -f ".deps/files.Tpo" ".deps/files.Po"; else rm -f ".deps/files.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon64 -O3 -pipe -MT global.o -MD -MP -MF ".deps/global.Tpo" -c -o global.o global.c; \
        then mv -f ".deps/global.Tpo" ".deps/global.Po"; else rm -f ".deps/global.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon64 -O3 -pipe -MT help.o -MD -MP -MF ".deps/help.Tpo" -c -o help.o help.c; \
        then mv -f ".deps/help.Tpo" ".deps/help.Po"; else rm -f ".deps/help.Tpo"; exit 1; fi
files.c: In function 'do_insertfile':
files.c:747: warning: passing argument 7 of 'do_prompt' from incompatible pointer type
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon64 -O3 -pipe -MT move.o -MD -MP -MF ".deps/move.Tpo" -c -o move.o move.c; \
        then mv -f ".deps/move.Tpo" ".deps/move.Po"; else rm -f ".deps/move.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -march=athlon64 -O3 -pipe -MT nano.o -MD -MP -MF ".deps/nano.Tpo" -c -o nano.o nano.c; \
        then mv -f ".deps/nano.Tpo" ".deps/nano.Po"; else rm -f ".deps/nano.Tpo"; exit 1; fi
global.c: In function 'shortcut_init':
global.c:827: error: 'nano_prevfile_msg' undeclared (first use in this function)
global.c:827: error: (Each undeclared identifier is reported only once
global.c:827: error: for each function it appears in.)
global.c:829: error: 'nano_nextfile_msg' undeclared (first use in this function)
make[2]: *** [global.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/app-editors/nano-2.1.0/work/nano-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-editors/nano-2.1.0/work/nano-2.1.0'
make: *** [all] Error 2
 *
 * ERROR: app-editors/nano-2.1.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2124:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-editors/nano-2.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/nano-2.1.0/temp/environment'.
 *



Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.2.3, glibc-2.7-r1, 2.6.24-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Timestamp of tree: Fri, 21 Mar 2008 04:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
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=athlon64 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.pair.com/ "
LC_ALL="POSIX"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 berkdb cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog kdeenablefinal kdehiddenvisibility midi mmx mudflap ncurses nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Olliver Schinagl 2008-03-21 17:32:20 UTC
Calculating dependencies... done!
[ebuild     U ] app-editors/nano-2.1.0 [2.0.7] USE="nls slang spell unicode -debug -justify -minimal -ncurses" 0 kB 

files.c: In function 'do_insertfile':
files.c:747: warning: passing argument 7 of 'do_prompt' from incompatible pointer type
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -O2 -march=k8 -msse3 -pipe -fomit-frame-pointer -MT global.o -MD -MP -MF ".deps/global.Tpo" -c -o global.o global.c; \
	then mv -f ".deps/global.Tpo" ".deps/global.Po"; else rm -f ".deps/global.Tpo"; exit 1; fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"    -O2 -march=k8 -msse3 -pipe -fomit-frame-pointer -MT help.o -MD -MP -MF ".deps/help.Tpo" -c -o help.o help.c; \
	then mv -f ".deps/help.Tpo" ".deps/help.Po"; else rm -f ".deps/help.Tpo"; exit 1; fi
global.c: In function 'shortcut_init':
global.c:827: error: 'nano_prevfile_msg' undeclared (first use in this function)
global.c:827: error: (Each undeclared identifier is reported only once
global.c:827: error: for each function it appears in.)
global.c:829: error: 'nano_nextfile_msg' undeclared (first use in this function)
make[2]: *** [global.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/tmp/portage/app-editors/nano-2.1.0/work/nano-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tmp/portage/app-editors/nano-2.1.0/work/nano-2.1.0'
make: *** [all] Error 2
 * 
 * ERROR: app-editors/nano-2.1.0 failed.


I don't think it's related to the minimal flag, as I don't have it set.

For me it builds fine with USE="-*" and fails when I start adding the 'slang' or 'minimal' useflags. nls for example work fine however. I haven't tested much more though.

I belive it's Bug #203672 haunting us still?

It emerged fine in the end with:
[ebuild   R   ] app-editors/nano-2.1.0  USE="nls spell unicode -debug -justify -minimal -ncurses -slang" 0 kB 
set.
Comment 2 John SJ Anderson 2008-03-21 17:53:47 UTC
> I don't think it's related to the minimal flag, as I don't have it set.

It builds for me with no flags set and fails with a simple "USE=minimal" and no other flags set.

In other words, this build:

[ebuild   R   ] app-editors/nano-2.1.0  USE="minimal* -debug -justify -ncurses -nls -slang -spell -unicode" 0 kB 

fails, and this build:

[ebuild   R   ] app-editors/nano-2.1.0  USE="-debug -justify -minimal -ncurses -nls -slang -spell -unicode" 0 kB 

succeeds. 

So, naively, it seems like the minimal flag has something to do with it. 
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-22 08:01:23 UTC
(In reply to comment #2)
> It builds for me with no flags set and fails with a simple "USE=minimal" and no
> other flags set.

Try this: EXTRA_ECONF="--disable-multibuffer" emerge nano
Comment 4 Leonardo Valeri Manera 2008-03-22 08:47:48 UTC
No, its weirder than that.

On my development VirtualBox, I'm getting it with USE="nls slang spell unicode"... or in fact with just about any combination of use flags. I cannot compile nano 2.1.0 at all.

On the VBox's host, with "danger is my middle name" *FLAGS, everything is peachy.

Colour me confused.
Comment 5 John SJ Anderson 2008-03-22 12:41:53 UTC
> Try this: EXTRA_ECONF="--disable-multibuffer" emerge nano

Yep, that works and allows building with USE="minimal".
Comment 6 SpanKY gentoo-dev 2008-03-29 20:15:02 UTC
those options used to be implied disabled by --enable-tiny, but ive reinforced it in the ebuild by binding to USE=-minimal.  thus the issue is avoided.  upstream can handle the fallout otherwise.

http://sources.gentoo.org/app-editors/nano/nano-2.1.0.ebuild?r1=1.1&r2=1.2