Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326481 - sys-apps/util-linux-2.18 fails to build with ncurses[-unicode]
Summary: sys-apps/util-linux-2.18 fails to build with ncurses[-unicode]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 15:30 UTC by Wilbur Pan
Modified: 2010-07-01 19:01 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 Wilbur Pan 2010-07-01 15:30:00 UTC
Trying to emerge sys-apps/util-linux-2.18 results in this error:

Making all in fdisk
make[2]: Entering directory `/var/tmp/portage/sys-apps/util-linux-2.18/work/util-linux-ng-2.18/fdisk'
  CC     fdisk-fdisk.o
  CC     fdisk-fdiskbsdlabel.o
  CC     fdisk-fdisksgilabel.o
  CC     fdisk-fdisksunlabel.o
  CC     fdisk-fdiskaixlabel.o
  CC     fdisk-fdiskmaclabel.o
  CC     fdisk-partname.o
  CC     fdisk-i386_sys_types.o
  CC     fdisk-gpt.o
  CC     fdisk-blkdev.o
  CC     fdisk-wholedisk.o
  CC     fdisk-mbsalign.o
  CC     fdisk-linux_version.o
  CC     sfdisk.o
  CC     partname.o
  CC     i386_sys_types.o
  CC     gpt.o
  CC     blkdev.o
  CC     wholedisk.o
  CC     mbsalign.o
  CC     linux_version.o
  CC     cfdisk-cfdisk.o
cfdisk.c:73:30: error: ncursesw/ncurses.h: No such file or directory
cfdisk.c:307: error: 'FALSE' undeclared here (not in a function)
cfdisk.c: In function 'get_string':
cfdisk.c:425: warning: implicit declaration of function 'getyx'
cfdisk.c:425: error: 'stdscr' undeclared (first use in this function)
cfdisk.c:425: error: (Each undeclared identifier is reported only once
cfdisk.c:425: error: for each function it appears in.)
cfdisk.c:426: warning: implicit declaration of function 'clrtoeol'
cfdisk.c:431: warning: implicit declaration of function 'mvaddstr'
cfdisk.c:432: warning: implicit declaration of function 'move'
cfdisk.c:433: error: 'TRUE' undeclared (first use in this function)
cfdisk.c:436: warning: implicit declaration of function 'refresh'
cfdisk.c:442: warning: implicit declaration of function 'getch'
cfdisk.c:452: error: 'KEY_BACKSPACE' undeclared (first use in this function)
cfdisk.c:458: warning: implicit declaration of function 'mvaddch'
cfdisk.c: In function 'clear_warning':
cfdisk.c:519: error: 'COLS' undeclared (first use in this function)
cfdisk.c:520: warning: implicit declaration of function 'addch'
cfdisk.c: In function 'print_warning':
cfdisk.c:530: error: 'COLS' undeclared (first use in this function)
cfdisk.c:533: error: 'TRUE' undeclared (first use in this function)
cfdisk.c: In function 'fatal':
cfdisk.c:546: error: 'COLS' undeclared (first use in this function)
cfdisk.c: In function 'die_x':
cfdisk.c:576: warning: implicit declaration of function 'mvcur'
cfdisk.c:576: error: 'COLS' undeclared (first use in this function)
cfdisk.c:576: error: 'LINES' undeclared (first use in this function)
cfdisk.c:578: warning: implicit declaration of function 'nl'
cfdisk.c:579: warning: implicit declaration of function 'endwin'
cfdisk.c: In function 'menuUpdate':
cfdisk.c:1043: warning: implicit declaration of function 'standout'
cfdisk.c:1070: warning: implicit declaration of function 'standend'
cfdisk.c: In function 'get_partition_table_geometry':
cfdisk.c:1451: error: 'TRUE' undeclared (first use in this function)
cfdisk.c: In function 'fill_p_info':
cfdisk.c:1570: error: 'TRUE' undeclared (first use in this function)
cfdisk.c: In function 'write_part_table':
cfdisk.c:1779: error: 'TRUE' undeclared (first use in this function)
cfdisk.c: In function 'fp_printf':
cfdisk.c:1840: warning: implicit declaration of function 'printw'
cfdisk.c:1841: error: 'stdscr' undeclared (first use in this function)
cfdisk.c:1844: warning: implicit declaration of function 'erase'
cfdisk.c: In function 'print_raw_table':
cfdisk.c:1879: error: 'TRUE' undeclared (first use in this function)
cfdisk.c: In function 'print_p_info':
cfdisk.c:1998: error: 'TRUE' undeclared (first use in this function)
cfdisk.c: In function 'print_part_table':
cfdisk.c:2082: error: 'TRUE' undeclared (first use in this function)
cfdisk.c: In function 'print_tables':
cfdisk.c:2153: error: 'TRUE' undeclared (first use in this function)
cfdisk.c: In function 'change_geometry':
cfdisk.c:2264: error: 'TRUE' undeclared (first use in this function)
cfdisk.c: In function 'change_id':
cfdisk.c:2362: error: 'COLS' undeclared (first use in this function)
cfdisk.c: In function 'draw_partition':
cfdisk.c:2435: error: 'COLS' undeclared (first use in this function)
cfdisk.c:2444: warning: implicit declaration of function 'mvprintw'
cfdisk.c:2454: warning: implicit declaration of function 'addstr'
cfdisk.c: In function 'init_const':
cfdisk.c:2507: error: 'COLS' undeclared (first use in this function)
cfdisk.c:2515: error: 'LINES' undeclared (first use in this function)
cfdisk.c:2522: error: 'TRUE' undeclared (first use in this function)
cfdisk.c: In function 'draw_screen':
cfdisk.c:2531: error: 'COLS' undeclared (first use in this function)
cfdisk.c:2536: warning: implicit declaration of function 'inch'
cfdisk.c: In function 'do_curses_fdisk':
cfdisk.c:2631: error: 'TRUE' undeclared (first use in this function)
cfdisk.c:2648: warning: implicit declaration of function 'initscr'
cfdisk.c:2658: warning: implicit declaration of function 'cbreak'
cfdisk.c:2659: warning: implicit declaration of function 'noecho'
cfdisk.c:2660: warning: implicit declaration of function 'nonl'
cfdisk.c:2786: warning: implicit declaration of function 'clear'
cfdisk.c: In function 'main':
cfdisk.c:2839: error: 'TRUE' undeclared (first use in this function)
make[2]: *** [cfdisk-cfdisk.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.18/work/util-linux-ng-2.18/fdisk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.18/work/util-linux-ng-2.18'
make: *** [all] Error 2
 * ERROR: sys-apps/util-linux-2.18 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   48:  Called src_compile
 *   environment, line 2970:  Called _eapi2_src_compile
 *     ebuild.sh, line  640:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-apps/util-linux-2.18',
 * the complete build log and the output of 'emerge -pqv =sys-apps/util-linux-2.18'.
 * The complete build log is located at '/var/log/portage/sys-apps:util-linux-2.18:20100701-152507.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/util-linux-2.18/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/util-linux-2.18/work/util-linux-ng-2.18'

>>> Failed to emerge sys-apps/util-linux-2.18, Log file:

>>>  '/var/log/portage/sys-apps:util-linux-2.18:20100701-152507.log'



Reproducible: Always

Steps to Reproduce:




Emerge info:

# emerge --info =sys-apps/util-linux-2.18
Portage 2.2_rc67 (hardened/linux/x86/10.0, gcc-4.3.5, glibc-2.11.2-r0, 2.6.32-hardened-r9 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.32-hardened-r9-i686-Intel-R-_Core-TM-2_CPU_4400_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 01 Jul 2010 14:45:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en ja ko zh_CN zh_TW"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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.us.gentoo.org/gentoo-portage"
USE="acl bash-completion berkdb bzip2 cjk clamav clamdtop cli cracklib crypt cups cxx device-mapper dri extras gdbm git gnutls gpm hardened iconv modules mudflap ncurses nls nptl nptlonly offensive openmp pam pcre perl pic pppd python python3 readline reflection reiserfs rtc session spl sse sse2 ssh ssl symlink sysfs tcpd urandom usb x86 xattr xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja ko zh_CN zh_TW" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-07-01 15:35:37 UTC

*** This bug has been marked as a duplicate of bug 326373 ***
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-07-01 15:53:55 UTC
Sorry, seems to no duplicate. I shouldn't wrangle bugs when I'm in a rush. 
Could you please post the output of

  emerge -qpv ncurses
Comment 3 Rafał Mużyło 2010-07-01 16:08:16 UTC
Yes, most likely reason is that due to the new patch, 
ncurces[unicode] is required.
Comment 5 Wilbur Pan 2010-07-01 18:58:26 UTC
(In reply to comment #3)
> Yes, most likely reason is that due to the new patch, 
> ncurces[unicode] is required.
> 


# emerge -qpv ncurses
[ebuild   R   ] sys-libs/ncurses-5.7-r3  USE="cxx gpm -ada -debug -doc -minimal -profile -trace -unicode" 

Comment 6 Wilbur Pan 2010-07-01 19:01:55 UTC
(In reply to comment #4)
> probably fixed now in cvs
> 
> http://sources.gentoo.org/sys-apps/util-linux/files/util-linux-2.18-ncursesw.patch?r1=1.1&r2=1.2
> 

Thanks, that worked.