Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110172 - dev-util/dialog-1.0.20050206 configure fails with USE="unicode"
Summary: dev-util/dialog-1.0.20050206 configure fails with USE="unicode"
Status: RESOLVED LATER
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-22 12:31 UTC by Nick Dimiduk (RETIRED)
Modified: 2006-04-12 10:53 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 Nick Dimiduk (RETIRED) gentoo-dev 2005-10-22 12:31:21 UTC
The configure script for dev-util/dialog-1.0.20050206 fails to find the ncurses library for linking.

>>> emerge (1 of 1) dev-util/dialog-1.0.20050206 to /
>>> md5 files   ;-) dialog-1.0.20040731.ebuild
>>> md5 files   ;-) dialog-1.0.20050206.ebuild
>>> md5 files   ;-) dialog-1.0.20050306.ebuild
>>> md5 files   ;-) files/digest-dialog-1.0.20040731
>>> md5 files   ;-) files/digest-dialog-1.0.20050206
>>> md5 files   ;-) files/digest-dialog-1.0.20050306
>>> md5 src_uri ;-) dialog_1.0-20050206.orig.tar.gz
>>> Unpacking source...
>>> Unpacking dialog_1.0-20050206.orig.tar.gz to /var/tmp/portage/dialog-1.0.20050206/work
>>> Source unpacked.
./configure --prefix=/usr --host=powerpc-apple-darwin --mandir=/usr/share/man --infodir=/usr/
share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=powerpc-apple-
darwin --with-ncursesw
checking for package version... 1.0
checking for package patch date... 20050206
checking for powerpc-apple-darwin-gcc... no
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking whether make sets ${MAKE}... yes
checking for powerpc-apple-darwin-ranlib... no
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking for powerpc-apple-darwin-ar... no
checking for ar... ar
checking for POSIXized ISC... no
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for makeflags variable... 
checking if filesystem supports mixed-case filenames... yes
checking for ctags... yes
checking for etags... yes
checking if you want to see long compiling messages... yes
checking build system type... powerpc-apple-darwin
checking host system type... powerpc-apple-darwin
Configuring for darwin
checking if we should define _XOPEN_SOURCE... 500
checking if we should define _POSIX_C_SOURCE... no
checking version of gcc... 8
checking for ANSI C header files... yes
checking for inline... inline
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 for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking for argz.h... no
checking for limits.h... yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... no
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for fgets_unlocked... no
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... no
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t 
*outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... no
checking if -lm needed for math functions... no
checking if you want to link with dbmalloc for testing... no
checking if you want to link with dmalloc for testing... no
checking if you want to build libraries with libtool... no
checking for multibyte character support... yes
checking for ncursesw header in include-path... curses.h
checking for ncurses version... 5.4.20040208
checking for Gpm_Open in -lgpm... no
checking for initscr... no
checking for initscr in -lncursesw... no
checking for -lncursesw in /usr/local/lib... no
checking for -lncursesw in /usr/lib... no
configure: error: Cannot link ncursesw library

Reproducible: Always
Steps to Reproduce:




This is a blocker for app-portage/gentoolkit-dev

Portage 2.0.51.22-r3 (default-darwin/macos/10.4, gcc-4.0.0, unavailable, 8.2.0 Power Macintosh)
===============================================================
==
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  [Not Present]
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/
qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/
gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc emboss nls opengl ppc-macos unicode userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2005-10-22 13:03:24 UTC
(In reply to comment #0)
> The configure script for dev-util/dialog-1.0.20050206 fails to find the 
ncurses library for linking.

More precisely it fails to find ncursesw to link against, because that's not 
part of Apple's BSD subsystem. Compiling without unicode support works though.

> This is a blocker for app-portage/gentoolkit-dev

No it's not. Neither dialog nor gentoolkit-dev require Unicode support through 
the unicode use flag (yet).
Comment 2 Fabian Groffen gentoo-dev 2005-10-22 14:02:04 UTC
if I recall correctly, some ebuilds replace ncurses with ntermcap or something.
 I know this sounds weird, but I've seen this replacement happening.  Maybe it
helps some.
Comment 3 Andy Kissner 2005-10-22 15:04:17 UTC
This is true on default/linux, x86 as well.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2005-10-22 15:10:47 UTC
(In reply to comment #3)
> This is true on default/linux, x86 as well.

Could you elaborate on that, please?
Comment 5 Andy Kissner 2005-10-22 15:15:15 UTC
The exact same behavior happens with:
Gentoo Base System version 1.4.16
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.7-gentoo-r11 i686)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
ccache version 2.3 [enabled]
dev-lang/python:     2.3.3-r1, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.4.3-r4, 1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
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="x86 X alsa apm avi bash-completion berkdb bitmap-fonts browserplugin cdr
crypt cups curl debug eds emacs emboss encode fam flac foomaticdb fortran gaim
gd gdbm gif gnome gpm gstreamer gtk gtk2 hardened imagemagick imlib java jpeg
libg++ libwww mad mikmod motif mp3 mpeg ncurses nls offensive ogg oggvorbis
opengl oss pam pdflib perl png python quicktime readline sdl spell ssl static
svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev vorbis xchat xfce
xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2005-10-22 15:28:10 UTC
(In reply to comment #5)
> The exact same behavior happens with:
> USE="x86 X alsa apm avi bash-completion berkdb bitmap-fonts browserplugin cdr
> crypt cups curl debug eds emacs emboss encode fam flac foomaticdb fortran gaim
> gd gdbm gif gnome gpm gstreamer gtk gtk2 hardened imagemagick imlib java jpeg
> libg++ libwww mad mikmod motif mp3 mpeg ncurses nls offensive ogg oggvorbis
> opengl oss pam pdflib perl png python quicktime readline sdl spell ssl static
> svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev vorbis xchat 
xfce
> xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"

That's because your ncurses was very likely emerged with USE=-unicode (which 
basically just deletes libncursesw in that case).

To solve *your* problem, *you* would need to add unicode to your use flags in /
et/make.conf and then run 'emerge --update --deep --newuse' and you should 
automatically get a dialog with unicode support. This bug is about a *different* 
problem.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2005-10-22 15:29:16 UTC
(In reply to comment #6)

> et/make.conf and then run 'emerge --update --deep --newuse' and you should 

Er, that should read 'emerge --update --deep --newuse world'....
Comment 8 Andy Kissner 2005-10-22 15:32:19 UTC
I'm not a moron; I realize that my USE flags caused it, and I've solved that
myself. I was simply pointing out that this *wasn't* an arch issue.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2005-10-22 15:42:35 UTC
(In reply to comment #8)
> I'm not a moron; I realize that my USE flags caused it, and I've solved that
> myself. I was simply pointing out that this *wasn't* an arch issue.

It is a platform specific bug as you can see from the Product field that limits 
the scope of this bug. Further, this bug is specific to that platform because 
the platform by default doesn't have libncursesw.

Other than that, the build *should* fail if ncursesw isn't found, so having 
'USE=unicode emerge dialog' fail on a system (mainly ncurses) built without the 
unicode use flag set globally is a Good Thing. For any users wishing to upgrade 
their system with Unicode-enabled packages, there's the Gentoo Unicode Guide[1] 

[1] http://www.gentoo.org/doc/en/utf-8.xml
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-10-22 16:14:08 UTC
This bug is invalid and a duplicate of many others. (In reply to comment #3)
> This is true on default/linux, x86 as well.

Stop cluttering this bug w/ irrelevant comments, please, and run 'emerge
--newuse -uD world'. 
Comment 11 Andy Kissner 2005-10-22 16:20:55 UTC
read the rest of the comment thread.
Comment 12 Nick Dimiduk (RETIRED) gentoo-dev 2005-10-23 12:23:47 UTC
(in reply to comment #1)
This is a blocker because the ebuild should not have been keyworded if it does not work with all of it's USE 
flags.
Comment 13 Fabian Groffen gentoo-dev 2005-11-26 14:16:32 UTC
dialog requires libncursesw to be available on the system.  From what the
changelog of ncur I conclude that this just needsses tells me, a never version
of ncurses.  Hence this bug cannot be resolved for normal users for now,
unfortunately.  There is not much we can do than just know it's broken for now.
Comment 14 Fabian Groffen gentoo-dev 2005-11-27 05:02:00 UTC
small note:
With a proper install of ncurses it compiles and works fine with unicode
USE-flag on OSX.  Added to svn.