Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 56557

Summary: emerge world fails on sys-apps/kbd-1.12-r2; updating from 2004.1 stage3
Product: Gentoo Linux Reporter: Ted Johnson <ted_johnson2>
Component: New packagesAssignee: AMD64 Project <amd64>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ted Johnson 2004-07-09 11:49:01 UTC
After a clean stage3 untar, chroot, env-update, profile re-linking, and editing of make.conf I tried to emerge world.  I get a error with kbd.


livecd root # emerge kbd 2> /tmp/output
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/kbd-1.12-r2 to /
>>> md5 src_uri ;-) kbd-1.12.tar.gz
>>> Unpacking source...
 * Unpacking kbd-1.12.tar.gz
 * Applying kbd-1.08-terminal.patch...                                                                                                                [ ok ]
 * Applying kbd-1.12-find-map-fix.patch...                                                                                                            [ ok ]
 * Applying kbd-1.12-kbd_repeat-v2.patch...                                                                                                           [ ok ]
>>> Source unpacked.
nls
Configuring for PREFIX=/usr
Configuring for DATADIR=/usr/share
Configuring for MANDIR=/usr/share/man
checking for gcc
You have <locale.h>
You have <libintl.h> and gettext()
Assuming that you want to enable NLS support.
(Otherwise, edit defines.h and delete the line with ENABLE_NLS)

Done. You can run make now.
for i in src openvt po data; do make -C $i all || exit 1; done
make[1]: Entering directory `/var/tmp/portage/kbd-1.12-r2/work/kbd-1.12/src'
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -DDATADIR=\"/usr/share\" dumpkeys.c
In file included from /usr/include/asm/processor.h:19,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from dumpkeys.c:13:
/usr/include/asm/system.h: In function `__cmpxchg':
/usr/include/asm/system.h:249: error: `LOCK_PREFIX' undeclared (first use in this function)
/usr/include/asm/system.h:249: error: (Each undeclared identifier is reported only once
/usr/include/asm/system.h:249: error: for each function it appears in.)
/usr/include/asm/system.h:249: error: parse error before string constant
/usr/include/asm/system.h:255: error: parse error before string constant
/usr/include/asm/system.h:261: error: parse error before string constant
/usr/include/asm/system.h:267: error: parse error before string constant
make[1]: *** [dumpkeys.o] Error 1
make: *** [all] Error 1

!!! ERROR: sys-apps/kbd-1.12-r2 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! (no error message)


make.conf looks like this:

CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

and I am using ACCEPT_KEYWORDS="~amd64"

Side note: I'm using a KVM with this machine, and the typical 'scroll lock double-tap + #' to get a particular screen causes "atkbd.c: Keyboard on isa0060/serio0 reports too many keys pressed."

Reproducible: Always
Steps to Reproduce:
1. perform normal system setup steps for a Gentoo amd64 box
2. emerge sync && emerge -pe world && emerge world
3. wait for kbd to fail
4. search bugs and forum for known problem




livecd root # emerge info
Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.1, glibc-2.3.4.20040605-r0,
2.6.5-gentoo-up)
=================================================================
System uname: 2.6.5-gentoo-up x86_64 4
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 apm arts avi berkdb crypt encode foomaticdb gdbm gif gnome gpm gtk
gtk2 imlib jpeg kde libg++ libwww mikmod motif mpeg ncurses nls oggvorbis opengl
oss pam pdflib perl png python quicktime readline sdl slang spell ssl tcpd
truetype xml2 xmms xv zlib"
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-07-09 19:16:42 UTC
if you're using 2.6.7 headers, i'd suggest not doing so. however, this bug should be fixed in the latest 2.6.7 release as of a handful of hours ago.

i'm marking this bug as invalid, since we dont have keywords in 2.6.7 linux26-headers. if this bug is occuring with 2.6.6-r1, please re-open.