Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89102 - ncurses fails to install /usr/include/ncursesw with USE="unicode"
Summary: ncurses fails to install /usr/include/ncursesw with USE="unicode"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-14 10:20 UTC by Graeme Humphries
Modified: 2005-04-26 16:31 UTC (History)
1 user (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 Graeme Humphries 2005-04-14 10:20:14 UTC
dialog-1.0.20050206 is marked as stable on AMD64 now, but it fails to emerge with the following error:

x86_64-pc-linux-gnu-gcc -march=k8 -Os -mfpmath=sse -pipe  -D_GNU_SOURCE -DHAVE_CONFIG_H -I. -I. -DLOCALEDIR=\"/usr/share/locale\" -c buttons.c
arrows.c: In function `dlg_draw_arrows2':
arrows.c:69: error: `WACS_UARROW' undeclared (first use in this function)
arrows.c:69: error: (Each undeclared identifier is reported only once
arrows.c:69: error: for each function it appears in.)
arrows.c:80: error: `WACS_DARROW' undeclared (first use in this function)
make: *** [arrows.o] Error 1
make: *** Waiting for unfinished jobs....
buttons.c: In function `string_to_char':
buttons.c:65: error: `mbstate_t' undeclared (first use in this function)
buttons.c:65: error: (Each undeclared identifier is reported only once
buttons.c:65: error: for each function it appears in.)
buttons.c:65: error: parse error before "state"
buttons.c:67: error: `state' undeclared (first use in this function)
make: *** [buttons.o] Error 1

Here's my emerge info:

emerge info
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3-vanilla, glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar  8 2005, 11:59:46)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.4, 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -Os -mfpmath=sse -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -Os -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 16bit 3ds S3TC X a52 aac aalib accessibility acl acpi acpi4linux aim alsa apache2 apm artworkextra asm asterisk audiofile avi bash-completion bdf beepmp bitmap-fonts blender-game bmp bootsplash bzip2 bzlib cacheemu cairo calendar canna caps ccache cdda cddb cdf cdinstall cdio cdparanoia cdr cdrom clamav codecs cpulimit cracklib crypt css csv ctype cups curl curlwrappers dar64 dba dbx devfs26 devmap dga dhcp dict dio disk-cache distribution divx4linux djbfft dnd dpms droproot dts dv dvb dvd dvdr dvdread ecc editor edl eds elf emoticon emul-linux encode enscript erandom escreen esd ethereal evms2 evo evo2 exif exim faad fam fame fb fbcon festival ffmpeg fftw figlet flac flash fmod foomaticdb fpx freetds freetts freetype freewnn ftp gd gdbm geoip gg gif gimp gimpprint glgd glitz glut gmail gmp gmtfull gmthigh gmtsuppl gmttria gnokii gnome gnomedb gnuplot gphoto2 gps graphviz gs gsl gstreamer gtk gtk2 gtkhtml hal howl html http icq icu idea idn ieee1394 imagemagick imap imlib imlib2 irc irda jabber jack java javacomm javadoc javascript jbig jce jit joystick jp2 jpeg jpeg2k kcal kdeenablefinal kdepim kerberos ladcca ladspa largeterminal ldap libcaca libclamav libgd libsamplerate live lm_sensors logrotate ltsp lua lufsusermount lzo lzw lzw-tiff m17n-lib maildir math matroska md5sum mdb mem-cache memlimit mew mikmod mime mimencode ming mixer mjpeg mmap mng monkey mozcalendar mozdevelop mozilla mozsvg mp3 mpeg mpeg4 mpi mplayer msn msql mssql multilib multiprocess mysql mysqli native net netbeans network neural nfsv4 nis nntp nptl ntlm oav odbc ofx ogg oggvorbis openal openexr opengl opie oscar oss pam pda pdf pdfkit pdflib pear-db php physfs pic pie playlist png pnp portaudio posix postgres povray ppds pri print priority qemu-fast qt quicktime quotas quotes rdesktop real recode remix remote rpm rrdtool rss rtc samba sasl sblive scanner screenshot sdk sdl sharedmem silc silverxp skey smime smtp sndfile snmp sockets softmmu softquota sox spamassassin speex spell sql sqlite sqlite3 startup-notification stencil-buffer stream subject-rewrite subversion svg svgz symlink szip tga theora threads thumbnail tiff timidity tokenizer tools tos transcode translator truetype truetype-fonts type1 type1-fonts underscores unicode urandom usb userland utf8 v4l v4l2 vcd vcdimager vhosts videos vidix vnc voice winbind wmf wxwindows x11vnc xanim xattr xfs xim xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xrandr xscreensaver xsl xslt xv xvid xvmc yahoo yp yv12 zaptel zeroconf zvbi"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-14 12:13:29 UTC
can you paste the output of this please: emerge -Duv --newuse world -p

thanks
Comment 2 Graeme Humphries 2005-04-14 12:22:26 UTC
[blocks B     ] media-gfx/bootsplash (is blocking media-gfx/splashutils-0.9.1)
[blocks B     ] media-gfx/splashutils (is blocking media-gfx/bootsplash-0.6.1-r7)
[ebuild   R   ] app-shells/bash-2.05b-r9  -build -debug -nls* (-uclibc) 1,923 kB
[ebuild   R   ] sys-apps/sed-4.0.9  -bootstrap -build -debug -nls* -static 751 kB
[ebuild     U ] sys-devel/gcc-config-1.3.10-r2 [1.3.10-r1] 0 kB
[ebuild   R   ] sys-devel/gcc-3.4.3-r1  (-altivec) -bootstrap -boundschecking -build -debug -fortran -gcj +gtk -hardened* (-ip28) +multilib -multislot (-n32) (-n64) -nls -nocxx -objc -static (-uclibc) 0 kB
[ebuild   R   ] sys-apps/grep-2.5.1-r6  -build -debug -nls* -pcre -static (-uclibc) 667 kB
[ebuild   R   ] sys-apps/pam-login-3.14  -livecd -nls* (-selinux) 137 kB
[ebuild   R   ] sys-fs/e2fsprogs-1.35-r1  -debug -diet -nls* -static 3,078 kB
[ebuild   R   ] sys-devel/make-3.80-r1  -build -debug -hardened -nls* -static (-uclibc) 899 kB
[ebuild   R   ] dev-util/pkgconfig-0.15.0  -debug -hardened* 0 kB
[ebuild     U ] dev-util/dialog-1.0.20050206 [1.0.20040731] +unicode* 0 kB
[ebuild   R   ] x11-base/xorg-x11-6.8.2-r1  (-3dfx) (-3dnow) +bitmap-fonts -cjk -debug -dlloader -dmx -doc -font-server -hardened* -insecure-drivers -ipv6 -minimal (-mmx) -nls +opengl +pam +sdk (-sse) -static +truetype-fonts +type1-fonts (-uclibc) +xprint +xv 0 kB
[ebuild   R   ] app-shells/sash-3.7  -debug -readline* 49 kB
[ebuild     U ] x11-libs/pango-1.8.1 [1.6.0] -debug -doc -static 973 kB
[ebuild   R   ] dev-libs/popt-1.7-r1  -nls* 561 kB
[ebuild   R   ] sys-apps/tcp-wrappers-7.6-r8  -ipv6* 115 kB
[ebuild     U ] sys-libs/db-1.85-r2 [1.85-r1] 14 kB
[ebuild  N    ] app-admin/sudo-1.6.7_p5-r2  +pam +skey 341 kB
[ebuild     U ] dev-db/postgresql-8.0.1-r2 [7.4.7-r1] -debug -doc +kerberos -libg++ -nls +pam -perl -pg-hier -pg-intdatetime -python -readline (-selinux) -ssl -tcltk +xml2 -zlib 7,745 kB
[ebuild   R   ] net-print/cups-1.1.23-r1  -debug -nls +pam +samba (-slp)* -ssl 0 kB
[ebuild     U ] dev-db/mysql-4.0.24 [4.0.22-r2] -berkdb -debug -innodb -perl -readline (-selinux) -ssl -static -tcpd 16,489 kB
[ebuild   R   ] sys-apps/diffutils-2.8.7  -debug -nls* -static 1,033 kB
[ebuild   R   ] net-nds/openldap-2.1.26  -berkdb +crypt -debug +gdbm -ipv6 +kerberos +odbc -perl -readline +samba +sasl (-slp)* -ssl -tcpd 0 kB
[ebuild     U ] dev-perl/perl-ldap-0.31 [0.29] +sasl -ssl +xml 216 kB
[ebuild     U ] sys-apps/usbutils-0.11-r5 [0.11-r3] 48 kB
[ebuild     U ] sys-apps/hal-0.4.5-r2 [0.4.1-r1] -debug -doc -pcmcia 0 kB
[ebuild     U ] gnome-base/gnome-vfs-2.8.4-r1 [2.8.3-r1] -debug -doc -gnutls +hal +howl -ipv6 +samba -ssl 1,848 kB
[ebuild     U ] app-text/opensp-1.5.1 [1.5-r1] -nls 1,385 kB
[ebuild     U ] app-text/docbook-xsl-stylesheets-1.66.1 [1.65.1] 1,514 kB
[ebuild  N    ] sys-fs/cryptsetup-0.1-r1  243 kB
[ebuild     U ] app-cdr/cdrtools-2.01-r2 [2.01] +crypt +unicode 24 kB
[ebuild   R   ] media-sound/xmms-1.2.10-r13  (-3dnow) +alsa -arts -debug -directfb +esd +flac +jack -lirc -mad* +mikmod (-mmx) +mp3 -nls +oggvorbis +oss +sndfile 0 kB
[ebuild   R   ] gnome-base/nautilus-2.8.2-r1  +cups -debug +flac +gstreamer -mad* +oggvorbis 0 kB
[ebuild   R   ] media-video/totem-0.100-r2  -debug +gstreamer -lirc -mad* 0 kB
[ebuild   R   ] app-editors/nano-1.3.4  -build -debug -justify -ncurses* -nls* -nomac -slang +spell* 939 kB
[ebuild   R   ] app-pda/pilot-link-0.11.8-r1  +java* -perl +png -python -readline -tcltk 0 kB
[ebuild     U ] app-text/enchant-1.1.5 [1.1.3] -debug 430 kB
[ebuild     U ] media-libs/libexif-0.5.12-r2 [0.5.12-r1] -nls 0 kB
[ebuild   R   ] sys-devel/distcc-2.18.3-r2  -debug +gnome* +gtk* -ipv6 (-selinux) 0 kB
[ebuild   R   ] media-gfx/splashutils-0.9.1  -hardened* 0 kB
[ebuild   R   ] sys-apps/findutils-4.1.20-r1  (-afs) -build -debug -nls* (-selinux) -static 759 kB
[ebuild     U ] media-libs/smpeg-0.4.4-r5 [0.4.4-r4] +X -debug +gtk +opengl 0 kB
[ebuild   R   ] gnome-extra/gnome-media-2.8.0  -debug -mad* +oggvorbis 0 kB
[ebuild     U ] dev-perl/PodParser-1.28 [1.22] 89 kB
[ebuild     U ] dev-util/gob-2.0.9 [2.0.6] -debug 232 kB
[ebuild     U ] media-libs/libpixman-0.1.2 [0.1.1] 359 kB
[ebuild     U ] www-client/mozilla-1.7.6-r1 [1.7.5] +crypt -debug +gnome +java +ldap +mozdevelop -moznomail -moznoxft +mozsvg -mozxmlterm +postgres -ssl +xinerama +xprint 29,734 kB
[ebuild  NS   ] x11-libs/qt-2.3.2-r2  -debug +gif -nas +opengl 8,767 kB
[ebuild   R   ] games-roguelike/slashem-0.0.648  +X -debug +gnome +gtk +qt* 0 kB
[ebuild   R   ] net-misc/iputils-021109-r3  -debug -doc -ipv6* -static (-uclibc) 418 kB
[ebuild     U ] media-gfx/bootsplash-0.6.1-r7 [0.6.1-r4] 301 kB
[ebuild     U ] app-portage/ufed-0.36 [0.35-r2] 12 kB
[ebuild   R   ] media-sound/rhythmbox-0.8.8-r1  +aac -debug +flac -mad* +oggvorbis +pda 0 kB
[ebuild   R   ] media-video/avidemux-2.0.38_rc1  +a52 +aac +alsa (-altivec) -arts -debug +encode -mad* (-mmx) -nls +oggvorbis +pic +sdl +truetype +xv +xvid 0 kB
[ebuild     U ] dev-java/ant-core-1.6.2-r2 [1.6.2] -doc 0 kB
[ebuild  NS   ] dev-java/jakarta-oro-2.0.8-r1  -doc -examples -jikes -source 0 kB
[ebuild     U ] dev-java/commons-net-1.2.2-r1 [1.2.2] -doc -jikes -source 0 kB
[ebuild  N    ] dev-java/gnu-crypto-2.0.1  -doc 3,804 kB
[ebuild  N    ] dev-java/jakarta-regexp-1.3-r2  -doc -jikes -source 0 kB
[ebuild     U ] dev-java/bcel-5.1-r1 [5.1] -doc -jikes -source 0 kB
[ebuild  N    ] dev-java/servletapi-2.3-r1  -doc -jikes 124 kB
[ebuild  N    ] dev-java/bsf-2.3.0-r2  -doc -jikes -jython -rhino 1,021 kB
[ebuild  N    ] dev-java/javacup-0.10k  186 kB
[ebuild     U ] dev-java/xalan-2.6.0-r2 [2.6.0] -doc -jikes -source 0 kB

Total size of downloads: 87,243 kB
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2005-04-22 10:56:38 UTC
i think this is a know issue, another user already informed me. Re-merging ncurses seemed to fix it. could you try a `emerge ncurses dialog` please?
Comment 4 Graeme Humphries 2005-04-22 11:40:46 UTC
Did it, it dies with the same error.
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2005-04-22 11:58:40 UTC
what does emerge -pv ncurses show? i can't reproduce this with USE="unicode" :/
Comment 6 Graeme Humphries 2005-04-22 13:58:04 UTC
emerge -pv gives me:

[ebuild   R   ] sys-libs/ncurses-5.4-r5  -bootstrap -build -debug -doc -gpm -nocxx (-uclibc) +unicode 0 kB
Comment 7 Simon Stelling (RETIRED) gentoo-dev 2005-04-25 02:03:56 UTC
it looks like your ncurses doesn't install /usr/include/ncursesw and so uses the wrong curses.h although you emerged it with USE="unicode". This is pretty strange, here it works fine as soon as ncurses is also emerged with unicode support which is the expected behaviour. Could you give me the output of `ls -l /usr/include/ncursesw`?

On a side note: I strongly advise you to update your profile to 2005.0 and to do a general system update.
Comment 8 Graeme Humphries 2005-04-25 08:19:29 UTC
ls -l /usr/include/ncursesw
ls: /usr/include/ncursesw: No such file or directory


Heh, that might explain a thing or two. ;)

qpkg -l ncurses | grep -i ncursesw
/usr/lib/libncursesw.a
/usr/lib/libncursesw.so
/usr/lib/libncurses.a -> /usr/lib/libncursesw.a 1114441978
/usr/lib/libncurses.so -> /usr/lib/libncursesw.so 1114441978
/lib/libncursesw.so.5.4
/lib/libncursesw.so.5 -> libncursesw.so.5.4 1114441978
/lib/libncursesw.so -> libncursesw.so.5 1114441978
/lib/libcursesw.so -> libncursesw.so.5.4 1114441978
/lib/libncurses.so -> /lib/libncursesw.so 1114441978
/lib/libncurses.so.5 -> /lib/libncursesw.so.5 1114441978
/lib/libncurses.so.5.4 -> /lib/libncursesw.so.5.4 1114441978

So it looks like I've got the libraries, just not the include files. Note that the above is /after/ I switched to the 2005.0 profile, and did an "emerge sync && emerge -u ncurses dialog".
Comment 9 Simon Stelling (RETIRED) gentoo-dev 2005-04-25 08:41:29 UTC
yep, that's really strange:

aqua ~ # qpkg -f /usr/include/ncursesw/curses.h
sys-libs/ncurses *

ncurses installs that directory when you emerge it with USE="unicode", but you said you already did that...

so ncurses is the bad guy, but i can't figure out why :/
Comment 10 Graeme Humphries 2005-04-25 10:15:43 UTC
Just off hand, what's the easiest way to redirect the output of "emerge" to a file? It might be handy for me to scan through the emerge of ncurses, and see if anything sticks out at the point where it should be creating that directory.
Comment 11 SpanKY gentoo-dev 2005-04-25 13:43:24 UTC
chances are it's because he's using the ncurses which doesnt install both a narrow and a wide version

try emerging ncurses-5.4-r6
Comment 12 Graeme Humphries 2005-04-25 14:54:49 UTC
Yep, -r6 fixed it. Can we have a conditional dep in dialog, to dep on ncurses -r6 if USE="unicode"?
Comment 13 SpanKY gentoo-dev 2005-04-26 05:50:29 UTC
lanius: any issues with moving -r6 to stable ?  the only diff between -r5 and -r6 is the unicode change
Comment 14 Heinrich Wendel (RETIRED) gentoo-dev 2005-04-26 05:56:10 UTC
There are no issues, but i think -r6 is only a workaround. What's the output of ldd /usr/bin/dialog with ncurses-r6
Comment 15 Graeme Humphries 2005-04-26 08:01:32 UTC
ldd /usr/bin/dialog

        libncursesw.so.5 => /usr/lib/libncursesw.so.5 (0x40020000)
        libm.so.6 => /lib/tls/libm.so.6 (0x40066000)
        libc.so.6 => /lib/tls/libc.so.6 (0x40089000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Comment 16 Heinrich Wendel (RETIRED) gentoo-dev 2005-04-26 10:39:40 UTC
well, then go stable with -r6
Comment 17 SpanKY gentoo-dev 2005-04-26 16:31:20 UTC
thanks lanius, 5.4-r6 now stable