Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591026 - app-editors/nano-2.6.3[minimal]: emake failed: winio.c:515:20: error: ‘do_prev_block’ undeclared
Summary: app-editors/nano-2.6.3[minimal]: emake failed: winio.c:515:20: error: ‘do_pre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SpanKY
URL: https://savannah.gnu.org/bugs/?48751
Whiteboard:
Keywords:
: 608070 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-08-11 11:05 UTC by Perfect Gentleman
Modified: 2017-02-18 18:57 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,7.70 KB, text/plain)
2016-08-22 06:12 UTC, Toralf Förster
Details
app-editors:nano-2.6.3:20160822-030122.log (app-editors:nano-2.6.3:20160822-030122.log,14.75 KB, text/plain)
2016-08-22 06:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,23.32 KB, text/plain)
2016-08-22 06:12 UTC, Toralf Förster
Details
environment (environment,87.08 KB, text/plain)
2016-08-22 06:12 UTC, Toralf Förster
Details
fixes compilation with --enable-tiny and on BSDs (fix-compilation.patch,2.36 KB, patch)
2016-08-29 08:00 UTC, Benno Schulenberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Perfect Gentleman 2016-08-11 11:05:57 UTC
app-editors/nano-2.6.3::gentoo [2.6.1::gentoo] USE="magic minimal ncurses nls spell unicode -debug -justify -slang -static"
-------------------------------------------------------
cat /tmp/portage/app-editors/nano-2.6.3/temp/build.log
 * Package:    app-editors/nano-2.6.3
 * Repository: gentoo
 * Maintainer: vapier@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux magic minimal ncurses nls spell unicode userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking nano-2.6.3.tar.gz to /tmp/portage/app-editors/nano-2.6.3/work
>>> Source unpacked in /tmp/portage/app-editors/nano-2.6.3/work
>>> Preparing source in /tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3 ...
>>> Source prepared.
>>> Configuring source in /tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3 ...
 * econf: updating nano-2.6.3/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating nano-2.6.3/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64 --bindir=/bin --htmldir=/trash --disable-color --disable-multibuffer --disable-nanorc --disable-wrapping-as-root --enable-libmagic --enable-speller --disable-justify --disable-debug --enable-nls --enable-utf8 --enable-tiny --without-slang --with-wordbounds
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... (cached) yes
checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none
checking whether ln -s works... yes
checking for strerror in -lcposix... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking whether to enable UTF-8 support... yes
checking whether to use slang... no
checking for getdelim... yes
checking for getline... yes
checking for isblank... yes
checking for strcasecmp... yes
checking for strcasestr... yes
checking for strncasecmp... yes
checking for strnlen... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for iswalnum... yes
checking for iswblank... yes
checking for iswpunct... yes
checking for iswspace... yes
checking for nl_langinfo... yes
checking for mblen... yes
checking for mbstowcs... yes
checking for mbtowc... yes
checking for wctomb... yes
checking for wcwidth... yes
checking whether C compiler accepts -Wall... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for getopt_long... yes
checking for NCURSESW... yes
Using ncursesw as the curses library
checking for use_default_colors in -lncursesw... yes
checking for key_defined in -lncursesw... yes
checking for enhanced regular expression flag... REG_EXTENDED
checking whether LINES and COLS can be redefined... yes
checking magic.h usability... yes
checking magic.h presence... yes
checking for magic.h... yes
checking for magic_open in -lmagic... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for inflate in -lz... yes
checking for HTML support in groff... yes
checking for makeinfo... yes
checking whether building from git... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/nanorc.sample
config.status: creating doc/man/Makefile
config.status: creating doc/man/fr/Makefile
config.status: creating doc/syntax/Makefile
config.status: creating doc/texinfo/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir setting
config.status: creating src/Makefile
config.status: creating nano.spec
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
>>> Source configured.
>>> Compiling source in /tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3 ...
make -j7 
make  all-recursive
make[1]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3'
Making all in doc
make[2]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc'
Making all in man
make[3]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/man'
make  all-recursive
make[4]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/man'
Making all in fr
make[5]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/man/fr'
make  all-am
make[6]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/man/fr'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/man/fr'
make[5]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/man/fr'
make[5]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/man'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/man'
make[4]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/man'
make[3]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/man'
Making all in texinfo
make[3]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/texinfo'
make  all-am
make[4]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/texinfo'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/texinfo'
make[3]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc/texinfo'
make[3]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc'
make[2]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/doc'
Making all in m4
make[2]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/m4'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/m4'
Making all in po
make[2]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/po'
Making all in src
make[2]: Entering directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o browser.o browser.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o chars.o chars.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o color.o color.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o cut.o cut.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o files.o files.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o global.o global.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o help.o help.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o move.o move.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o prompt.o prompt.c
files.c: In function ‘read_file’:
files.c:748:10: warning: variable ‘writable’ set but not used [-Wunused-but-set-variable]
     bool writable = TRUE;
          ^
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o rcfile.o rcfile.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o search.o search.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o text.o text.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o utils.o utils.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o winio.o winio.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -Wall -c -o nano.o nano.c
winio.c: In function ‘parse_kbinput’:
winio.c:515:20: error: ‘do_prev_block’ undeclared (first use in this function)
   return sc_seq_or(do_prev_block, 0);
                    ^
winio.c:515:20: note: each undeclared identifier is reported only once for each function it appears in
winio.c:517:20: error: ‘do_next_block’ undeclared (first use in this function)
   return sc_seq_or(do_next_block, 0);
                    ^
winio.c:519:20: error: ‘do_prev_word_void’ undeclared (first use in this function)
   return sc_seq_or(do_prev_word_void, 0);
                    ^
winio.c:521:20: error: ‘do_next_word_void’ undeclared (first use in this function)
   return sc_seq_or(do_next_word_void, 0);
                    ^
make[2]: *** [Makefile:427: winio.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/src'
make[1]: *** [Makefile:405: all-recursive] Error 1
make[1]: Leaving directory '/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3'
make: *** [Makefile:344: all] Error 2
 * ERROR: app-editors/nano-2.6.3::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-editors/nano-2.6.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/nano-2.6.3::gentoo'`.
 * The complete build log is located at '/tmp/portage/app-editors/nano-2.6.3/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/app-editors/nano-2.6.3/temp/environment'.
 * Working directory: '/tmp/portage/app-editors/nano-2.6.3
Comment 1 Perfect Gentleman 2016-08-11 11:06:33 UTC
Portage 2.3.0 (python 3.5.2-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r2, 4.7.0-gentoo x86_64)
=================================================================
System uname: Linux-4.7.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16084268 total,    585040 free
KiB Swap:   16777212 total,  16711156 free
sh bash 4.3_p46
ld GNU gold (Gentoo 2.26.1 p1.0 2.26.1) 1.11
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p46::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/openrc:          0.21.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: 1

kde
    location: /usr/portage/proj/kde
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 3

x11
    location: /usr/portage/proj/x11
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/x11.git
    masters: gentoo
    priority: 3

pg_overlay
    location: /usr/local/overlay
    sync-type: git
    sync-uri: git://github.com/perfect7gentleman/pg_overlay.git
    masters: gentoo
    priority: 7

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X acl acpi amd64 bash-completion branding bzip2 cairo cli consolekit cracklib custom-cflags cxx dbus dri dts exif fam ffmpeg flac fontconfig gif gmp gzip iconv icu introspection jabber jit jpeg lcms libass libnotify lm_sensors lua lzma lzo matroska minimal mmap mmx mmxext mng modules multilib ncurses nls nptl nsplugin ntpl opengl openmp orc pam pango pcre pdf png policykit ppds pulseaudio readline seccomp session smp sox spell sse sse2 ssl svg symlink tcmalloc threads tiff truetype udev udisks udisks2 unicode usb v4l vaapi wavpack webp wxwidgets x264 xattr xcb xml xmpp xv xvid zlib" ABI_X86="64" ALSA_CARDS="emu10k1" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="roccat_kovaplus roccat_ryosmk" KERNEL="linux" L10N="en en-US ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Perfect Gentleman 2016-08-11 11:08:27 UTC
builds fine without USE="minimal"
Comment 3 Lars Isakson 2016-08-18 07:14:42 UTC
I have the same error, and almost the same error on gentoo-freeBSD:

 * Package:    app-editors/nano-2.6.3
 * Repository: gentoo
 * Maintainer: vapier@gentoo.org
 * USE:        abi_x86_64 amd64-fbsd elibc_FreeBSD kernel_FreeBSD magic ncurses spell unicode userland_BSD
 * FEATURES:   preserve-libs userpriv
...
x86_64-gentoo-freebsd10.3-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_
C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -O2 -pipe -Wall -c -o text.o text.c
x86_64-gentoo-freebsd10.3-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_BSD_TYP
ES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -O2 -pipe -Wall -c -o utils.o utils.c
x86_64-gentoo-freebsd10.3-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -O2 -pipe -Wall -c -o winio.o winio.c
x86_64-gentoo-freebsd10.3-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -O2 -pipe -Wall -c -o nano.o nano.c
winio.c: In function 'parse_kbinput':
winio.c:513:15: error: 'TIOCLINUX' undeclared (first use in this function)
  if (ioctl(0, TIOCLINUX, &modifiers) >= 0 && (modifiers & 0x04)) {
               ^
winio.c:513:15: note: each undeclared identifier is reported only once for each function it appears in
gmake[2]: *** [Makefile:427: winio.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/var/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3/src'
gmake[1]: *** [Makefile:405: all-recursive] Error 1
gmake[1]: Leaving directory '/var/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3'
gmake: *** [Makefile:344: all] Error 2
 * ERROR: app-editors/nano-2.6.3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-editors/nano-2.6.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/nano-2.6.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-editors/nano-2.6.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/nano-2.6.3/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3'
 * S: '/var/tmp/portage/app-editors/nano-2.6.3/work/nano-2.6.3'
Comment 4 Toralf Förster gentoo-dev 2016-08-22 06:12:26 UTC
Created attachment 443840 [details]
emerge-info.txt

same at a tinderbox image
Comment 5 Toralf Förster gentoo-dev 2016-08-22 06:12:32 UTC
Created attachment 443842 [details]
app-editors:nano-2.6.3:20160822-030122.log
Comment 6 Toralf Förster gentoo-dev 2016-08-22 06:12:36 UTC
Created attachment 443844 [details]
emerge-history.txt
Comment 7 Toralf Förster gentoo-dev 2016-08-22 06:12:39 UTC
Created attachment 443846 [details]
environment
Comment 8 Benno Schulenberg 2016-08-29 08:00:57 UTC
Created attachment 444372 [details, diff]
fixes compilation with --enable-tiny and on BSDs

Bug has been handled upstream.  Attached patch should fix it.
Comment 9 Joshua Kinard gentoo-dev 2016-10-18 08:14:32 UTC
I've just added nano-2.7.0 to the tree.  Please test with that version and see if it solves this problem and report back.  Thanks!
Comment 10 Yann Leprince 2017-01-25 15:36:33 UTC
Since app-editors/nano-2.6.3 has been stabilized (#606792), the failure just appeared on stable systems.

Keywording and emerging app-editors/nano-2.7.4 fixes the problem for me.
Comment 11 SpanKY gentoo-dev 2017-02-18 18:46:46 UTC
*** Bug 608070 has been marked as a duplicate of this bug. ***
Comment 12 SpanKY gentoo-dev 2017-02-18 18:57:55 UTC
added the upstream fix to the 2.6.3 ebuild:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c19e1befd6f45fb1cf63b148db7e0cf87ac6e7b