Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113722 - dev-util/dialog-1.0.20051107 fails with undefined references (probably ncurses related)
Summary: dev-util/dialog-1.0.20051107 fails with undefined references (probably ncurse...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Harald van Dijk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-27 10:14 UTC by Thomas Meyer
Modified: 2005-11-27 15:04 UTC (History)
0 users

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


Attachments
Config.log of configure for dialog-1.0.20051107 (config.log,44.25 KB, text/plain)
2005-11-27 14:42 UTC, Thomas Meyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Meyer 2005-11-27 10:14:34 UTC
i686-pc-linux-gnu-gcc -march=athlon-xp -O3 -pipe  -D_GNU_SOURCE -DHAVE_CONFIG_H 
-I. -I. -DLOCALEDIR=\"/usr/share/locale\" -c version.c 
i686-pc-linux-gnu-gcc -march=athlon-xp -O3 -pipe  -D_GNU_SOURCE -DHAVE_CONFIG_H 
-I. -I. -DLOCALEDIR=\"/usr/share/locale\" -c yesno.c 
i686-pc-linux-gnu-gcc -march=athlon-xp -O3 -pipe  -D_GNU_SOURCE -DHAVE_CONFIG_H 
-I. -I. -DLOCALEDIR=\"/usr/share/locale\" -c dialog.c 
i686-pc-linux-gnu-ar -cr libdialog.a rc.o calendar.o fselect.o timebox.o 
formbox.o guage.o tailbox.o arrows.o buttons.o checklist.o inputbox.o 
inputstr.o menubox.o mouse.o mousewget.o msgbox.o pause.o textbox.o ui_getc.o 
util.o version.o yesno.o 
i686-pc-linux-gnu-ranlib libdialog.a 
i686-pc-linux-gnu-gcc -o dialog dialog.o -L. -ldialog  -lncurses -lm 
./libdialog.a(arrows.o): In function `dlg_draw_arrows2': 
arrows.c:(.text+0xf3): undefined reference to `_nc_wacs' 
arrows.c:(.text+0x10d): undefined reference to `wadd_wch' 
arrows.c:(.text+0x1f6): undefined reference to `_nc_wacs' 
arrows.c:(.text+0x20f): undefined reference to `wadd_wch' 
./libdialog.a(inputstr.o): In function `dlg_index_columns': 
inputstr.c:(.text+0x1075): undefined reference to `setcchar' 
inputstr.c:(.text+0x1080): undefined reference to `wunctrl' 
./libdialog.a(ui_getc.o): In function `dlg_getc': 
ui_getc.c:(.text+0x5ef): undefined reference to `wget_wch' 
collect2: ld gab 1 als Ende-Status zur
Comment 1 Thomas Meyer 2005-11-27 10:14:34 UTC
i686-pc-linux-gnu-gcc -march=athlon-xp -O3 -pipe  -D_GNU_SOURCE -DHAVE_CONFIG_H 
-I. -I. -DLOCALEDIR=\"/usr/share/locale\" -c version.c 
i686-pc-linux-gnu-gcc -march=athlon-xp -O3 -pipe  -D_GNU_SOURCE -DHAVE_CONFIG_H 
-I. -I. -DLOCALEDIR=\"/usr/share/locale\" -c yesno.c 
i686-pc-linux-gnu-gcc -march=athlon-xp -O3 -pipe  -D_GNU_SOURCE -DHAVE_CONFIG_H 
-I. -I. -DLOCALEDIR=\"/usr/share/locale\" -c dialog.c 
i686-pc-linux-gnu-ar -cr libdialog.a rc.o calendar.o fselect.o timebox.o 
formbox.o guage.o tailbox.o arrows.o buttons.o checklist.o inputbox.o 
inputstr.o menubox.o mouse.o mousewget.o msgbox.o pause.o textbox.o ui_getc.o 
util.o version.o yesno.o 
i686-pc-linux-gnu-ranlib libdialog.a 
i686-pc-linux-gnu-gcc -o dialog dialog.o -L. -ldialog  -lncurses -lm 
./libdialog.a(arrows.o): In function `dlg_draw_arrows2': 
arrows.c:(.text+0xf3): undefined reference to `_nc_wacs' 
arrows.c:(.text+0x10d): undefined reference to `wadd_wch' 
arrows.c:(.text+0x1f6): undefined reference to `_nc_wacs' 
arrows.c:(.text+0x20f): undefined reference to `wadd_wch' 
./libdialog.a(inputstr.o): In function `dlg_index_columns': 
inputstr.c:(.text+0x1075): undefined reference to `setcchar' 
inputstr.c:(.text+0x1080): undefined reference to `wunctrl' 
./libdialog.a(ui_getc.o): In function `dlg_getc': 
ui_getc.c:(.text+0x5ef): undefined reference to `wget_wch' 
collect2: ld gab 1 als Ende-Status zurück 
make: *** [dialog] Fehler 1 
 
installed ncurses version: 
*  sys-libs/ncurses 
      Latest version available: 5.5-r1 
      Latest version installed: 5.5-r1 
      Size of downloaded files: 2,259 kB 
      Homepage:    http://www.gnu.org/software/ncurses/ 
http://dickey.his.com/ncurses/ 
      Description: console display library 
      License:     MIT 
 
 

Reproducible: Always
Steps to Reproduce:
1.emerge -u dev-util/dialog 
2. 
3. 
 
Actual Results:  
compile fails. 

Expected Results:  
compile cleanly!
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2005-11-27 10:53:01 UTC
I'm not marking this as a dupe yet since the error message is different, but
this is most likely a ncurses/dialog mismatch; if you want dialog with unicode,
you also need ncurses with unicode. You haven't provided enough info to be sure.
If this is actually a different issue (that is, if rebuilding ncurses with the
same USE flags as dialog doesn't work), please reopen with `emerge --info` and
`emerge -pv ncurses dialog` output.
Comment 3 Thomas Meyer 2005-11-27 13:32:53 UTC
emerge -pv ncurses dialog 
 
These are the packages that I would merge, in order: 
 
Calculating dependencies ...done! 
[ebuild   R   ] sys-libs/ncurses-5.5-r1  -bootstrap -build -debug -doc +gpm 
-minimal -nocxx -unicode 0 kB 
[ebuild  N    ] dev-util/dialog-1.0.20051107  -examples -unicode 0 kB 
 
Total size of downloads: 0 kB 
 
same USE flags! 
 
emerge --info 
 
Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 
2.6.15-rc2-g42aacfba i686) 
================================================================= 
System uname: 2.6.15-rc2-g42aacfba i686 Mobile AMD Athlon(tm) XP 2400+ 
Gentoo Base System version 1.12.0_pre11 
dev-lang/python:     2.3.5, 2.4.2 
sys-apps/sandbox:    1.2.13 
sys-devel/autoconf:  2.13, 2.59-r7 
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.16.1 
sys-devel/libtool:   1.5.20-r1 
virtual/os-headers:  2.6.11-r3 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-march=athlon-xp -O3 -pipe" 
CHOST="i686-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/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo" 
LANG="en_US" 
LC_ALL="de_DE.utf8" 
LINGUAS="de" 
MAKEOPTS="-j2" 
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 a52 aac aalib acl acpi alsa apm arts audiofile avi berkdb 
bitmap-fonts bonobo bzip2 bzlib cdr crypt cups curl dri dvb dvd dvdread eds 
emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif 
glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hardened idn 
imagemagick imlib insecure-drivers ipv6 java jpeg kde lcms ldap libg++ libwww 
lua mad mhash mikmod mng motif mozilla mp3 mpeg mysql ncurses nls nptl ogg 
oggvorbis openal opengl oss pam pcre pdflib perl php png python qt quicktime 
readline recode samba scanner sdl slang sox spell sse ssl stream svg svga tcltk 
tcpd threads tiff truetype truetype-fonts type1-fonts udev unichrome usb vorbis 
win32codecs wmf xine xml xml2 xmms xv xvid zlib video_cards_via linguas_de 
userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LDFLAGS 
 
Comment 4 Thomas Meyer 2005-11-27 13:33:26 UTC
forgot to reopen. sorry! 
Comment 5 Harald van Dijk (RETIRED) gentoo-dev 2005-11-27 14:07:21 UTC
Okay, that's not right... I'll try to see what's going wrong.

Normally, dialog's configure script checks if wget_wch is supported, and if it's
not (it's not on your system, as the error messages show), wide ncurses support
is completely disabled. This check probably fails for some reason on your
system; could you also attach the generated config.log (
/var/tmp/portage/dialog-1.0.20051107/work/dialog-1.0-20051107/config.log ) to
make sure, please? It should contain a message

configure:9206: error: 'wget_wch' undeclared (first use in this function)

but probably doesn't in your case. Assuming that message indeed isn't present,
could you then run

grep -R wget_wch /usr/include /usr/local/include

to see where it's coming from?
Comment 6 Thomas Meyer 2005-11-27 14:42:42 UTC
Created attachment 73696 [details]
Config.log of configure for dialog-1.0.20051107
Comment 7 Thomas Meyer 2005-11-27 14:44:08 UTC
grep output: 
/usr/include/ncurses/curses.h:extern NCURSES_EXPORT(int) mvwget_wch (WINDOW *, 
int, int, wint_t *);     /* generated:WIDEC */ 
/usr/include/ncurses/curses.h:extern NCURSES_EXPORT(int) wget_wch (WINDOW *, 
wint_t *);         /* implemented */ 
/usr/include/ncurses/curses.h:#define get_wch(c)                        
wget_wch(stdscr,c) 
/usr/include/ncurses/curses.h:#define mvget_wch(y,x,c)          
mvwget_wch(stdscr,y,x,c) 
/usr/include/ncurses/curses.h:#define mvwget_wch(win,y,x,c)             
(wmove(win,y,x) == ERR ? ERR : wget_wch(win,c)) 
/usr/include/ncurses/ncurses.h:extern NCURSES_EXPORT(int) mvwget_wch (WINDOW *, 
int, int, wint_t *);    /* generated:WIDEC */ 
/usr/include/ncurses/ncurses.h:extern NCURSES_EXPORT(int) wget_wch (WINDOW *, 
wint_t *);                /* implemented */ 
/usr/include/ncurses/ncurses.h:#define get_wch(c)                       
wget_wch(stdscr,c) 
/usr/include/ncurses/ncurses.h:#define mvget_wch(y,x,c)         
mvwget_wch(stdscr,y,x,c) 
/usr/include/ncurses/ncurses.h:#define mvwget_wch(win,y,x,c)            
(wmove(win,y,x) == ERR ? ERR : wget_wch(win,c)) 
 
/usr/local/include: file or directory not found. 
 
 
Comment 8 Harald van Dijk (RETIRED) gentoo-dev 2005-11-27 15:04:21 UTC
There isn't supposed to be a /usr/include/ncurses/ directory -- at least, not
with ncurses-5.5-r1:

$ tar tjf /var/pkg/All/ncurses-5.5-r1.tbz2 | grep /usr/include
./usr/include/
./usr/include/curses.h
./usr/include/eti.h
./usr/include/form.h
./usr/include/menu.h
./usr/include/ncurses.h
./usr/include/ncurses_dll.h
./usr/include/panel.h
./usr/include/term.h
./usr/include/termcap.h
./usr/include/unctrl.h

bzip2: (stdin): trailing garbage after EOF ignored

Did it perhaps get left over from an older version? Please remove it as it does
not match the ncurses you actually have installed, and to be safe, it might be a
good idea to reinstall ncurses. After that, dialog should install without issues.

I'm closing this bug as INVALID as this is not an issue with dialog, but if
/usr/include/ncurses/ was managed solely by portage, and never manually, this is
a bug with another package; if you have not touched it manually (even restoring
from a backup can cause issues if you don't do it right), and you have any idea
how it was created, details would be appreciated.