Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89772 - ncurses-5.4-r6 fails compile - make_keys not found - makefile glitch
Summary: ncurses-5.4-r6 fails compile - make_keys not found - makefile glitch
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2005-04-20 01:29 UTC by Robin Johnson
Modified: 2005-05-07 18:02 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-20 01:29:02 UTC
emerge ncurses fails. See makefile tracing of error at the end of report.

make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r6/work/narrowc/include'
cd ncurses && make DESTDIR="" sources
make[1]: Entering directory `/var/tmp/portage/ncurses-5.4-r6/work/narrowc/ncurses'
sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/base/ "gcc -E -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include -I. -I../include  -D_GNU_SOURCE -DNDEBUG" "gawk" generated <../include/curses.h | \
        fgrep undef >../include/nomacros.h
gawk -f /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/MKnames.awk /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include/Caps
cat namehdr boolnames boolfnames numnames numfnames strnames strfnames nameftr >names.c
cat namehdr boolcodes numcodes strcodes codeftr >codes.c
rm -f namehdr nameftr codeftr boolnames boolfnames boolcodes numnames numfnames numcodes strnames strfnames strcodes
gcc -o make_hashno -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include -I. -I../include  -D_GNU_SOURCE -DNDEBUG -O3 -march=c3-2 -pipe -DMAIN_PROGRAM /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/comp_hash.c -Wl,-O1
sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/MKcaptab.awk gawk /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include/Caps > comp_captab.c
/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/MKcaptab.awk: line 20: ./make_hash: No such file or directory
/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/MKcaptab.awk: line 21: ./make_hash: No such file or directory
sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tty/ "gcc -E" -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include -I. -I../include  -D_GNU_SOURCE -DNDEBUG > expanded.c
sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/ /usr/share/terminfo /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/misc/terminfo.src  >fallback.c
gcc -o make_keysno -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include -I. -I../include  -D_GNU_SOURCE -DNDEBUG -O3 -march=c3-2 -pipe /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/make_keys.c -Wl,-O1
AWK=gawk sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/ /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/include/Caps | sort >keys.list
./make_keys keys.list > init_keytry.h
/bin/sh: ./make_keys: No such file or directory
make[1]: *** [init_keytry.h] Error 127
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r6/work/narrowc/ncurses'
make: *** [sources] Error 2

!!! ERROR: sys-libs/ncurses-5.4-r6 failed.
!!! Function do_compile, Line 84, Exitcode 2
!!! make sources failed
!!! If you need support, post the topmost build error, NOT this status message.

Portage (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-, 2.6.11-gentoo-r6 i686)
System uname: 2.6.11-gentoo-r6 i686 VIA Nehemiah
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 16 2005, 13:27:16)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.5, 1.8.5-r3, 1.7.9-r1, 1.5, 1.4_p6, 1.6.3
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
CFLAGS="-O3 -march=c3-2 -pipe"
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/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=c3-2 -pipe"
FEATURES="autoaddcvs autoconfig buildpkg cvs digest distlocks sandbox sfperms strict userpriv"
USE="x86 X aalib acl acpi alsa apache2 apm avi bcmath berkdb bitmap-fonts bluetooth bzlib calendar caps cdb cdr cle266 clearpasswd crypt cscope ctyp curl curlwrappers dio directfb divx4linux dv dvb dvd emboss encode esd exif expat extensions fam fbcon ffmpeg fftw flac foomaticdb ftp gd gdbm ggi gif gmp gpm ieee1394 ipv6 jack joystick jpeg libwww lirc lm_sensors mcal mikmod mmap mmx mng mp3 mpeg mysql nas ncurses nptl opengl pam pcap pcntl pcre perl pic plotutils png pnp posix ppds python qdbm quicktime readline ruby scanner sdl session skey slang slp snmp socks5 spell sse ssl svg svga symlink sysfs szip tcltk theora tiff truetype truetype-fonts type1 type1-fonts ungif usb userlocales v4l v4l2 vcd wifi win32codecs wmf xine xinerama xml xml2 xosd xvid yv12 zlib zvbi"

The source of the error is in /var/tmp/portage/ncurses-5.4-r6/work/narrowc/ncurses/Makefile:
init_keytry.h: make_keys$(BUILD_EXEEXT) keys.list
        ./make_keys keys.list > $@

keys.list :     $(tinfo)/
        AWK=$(AWK) sh $(tinfo)/ $(TERMINFO_CAPS) | sort >$@

make_keys$(BUILD_EXEEXT) : \
                $(tinfo)/make_keys.c \
        $(BUILD_CC) -o $@ $(BUILD_CCFLAGS) $(tinfo)/make_keys.c $(BUILD_LDFLAGS) $(BUILD_LIBS)

'make_keys$(BUILD_EXEEXT)' is built, but 'make_keys' is called.
Comment 1 Roland Bär 2005-04-20 01:57:35 UTC
Do you have an environment variable BUILD_EXEEXT=no ?
At least setting that reproduces it. BUILD_EXEEXT should be ".exe"
for Windows targets, otherwise empty.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-20 02:14:28 UTC
no, but tracing the stuff I was working on, I do see that it's picked up "ac_cv_exeext=${ac_cv_exeext=no}" from somewhere, and the bug goes away when the 'no' is taken out of that line.

anyway, such a bug should still be fixed in the sources.
Comment 3 Roland Bär 2005-04-20 03:14:50 UTC
The problem is the upstream provided configure script. The affected
macro AC_EXEEXT of Gentoo looks sane to me. We should regenerate 
configure out of 
Was not able to do that, most likely some minor changes
in needed. Or should be updated to autoconf 2.59 level ..
Comment 4 SpanKY gentoo-dev 2005-04-26 20:53:59 UTC
both are valid issues ... the Makefile should actually have $(BUILD_EXEEXT) and it shouldnt matter :)

does `env -i PATH=/usr/bin emerge ncurses` work ?
Comment 5 Thomas Dickey 2005-05-07 12:01:38 UTC
Responding to comment #2, it sounds as if the configure script's been
regenerated using a different version of autoconf (which probably
would not work).
Comment 6 SpanKY gentoo-dev 2005-05-07 18:02:27 UTC
please post a full build log ... `emerge ncurses >& log`