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

Bug 42309

Summary: Using kernel 2.6.3-gentoo-r1, eject ebuild fails
Product: Gentoo Linux Reporter: Ben Hirsch <benh>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ben Hirsch 2004-02-20 14:50:47 UTC
When I try to emerge sys-apps/eject-2.0.12-r1, I get syntax errors about /usr/src/linux/include/linux/byteorder/swab.h and /usr/src/linux/include/linux/cdrom.h.

Reproducible: Always
Steps to Reproduce:
1. emerge gentoo-dev-sources
2. build/install kernel
3. emerge eject

Actual Results:  
gcc -DPACKAGE=\"eject\" -DVERSION=\"2.0.12\" -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=
1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_REGCOMP=1 -DHAV
E_STRDUP=1 -DHAVE_STRERROR=1  -I. -I.   -I/usr/src/linux -I/usr/src/linux/includ
e -DDEFAULTDEVICE=\"cdrom\" -DGETOPTLONG  -Wall -O3  -O3 -march=athlon-xp -pipe 
-funroll-loops -c volname.c
In file included from /usr/src/linux/include/linux/cdrom.h:14,
                 from eject.c:66:
/usr/src/linux/include/asm/byteorder.h:14: error: syntax error before "__u32"
/usr/src/linux/include/asm/byteorder.h:28: error: syntax error before "__u64"
In file included from /usr/src/linux/include/linux/byteorder/little_endian.h:11,
                 from /usr/src/linux/include/asm/byteorder.h:57,
                 from /usr/src/linux/include/linux/cdrom.h:14,
                 from eject.c:66:
/usr/src/linux/include/linux/byteorder/swab.h:133: error: syntax error before "_
_u16"
/usr/src/linux/include/linux/byteorder/swab.h:146: error: syntax error before "_
_u32"
/usr/src/linux/include/linux/byteorder/swab.h:160: error: syntax error before "_
_u64"
volname.c: In function `main':
volname.c:58: warning: implicit declaration of function `exit'
gcc -Wall -O3  -O3 -march=athlon-xp -pipe -funroll-loops  -o volname  volname.o 
 
make[1]: *** [eject.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/eject-2.0.12-r1/work/eject-2.0.12'
make: *** [all-recursive] Error 1

!!! ERROR: sys-apps/eject-2.0.12-r1 failed.
!!! Function src_compile, Line 418, Exitcode 2
!!! emake failed


Expected Results:  
A successful build.

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 AMD Athlon(tm) XP 1500+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe -funroll-loops"
CHOST="i686-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/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -funroll-loops"
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="3dnow X acpi alsa apm arts avi berkdb cdr crypt cups encode esd foomaticdb
gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imlib jpeg kde libg++ libwww mad
maildir mikmod mmx motif mozilla mpeg ncurses nls nocardbus oggvorbis opengl oss
pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga
tcpd tiff truetype x86 xml2 xmms xv zlib"
Comment 1 Ben Hirsch 2004-02-20 14:52:23 UTC
eject-2.0.13 builds fine.
Comment 2 SpanKY gentoo-dev 2004-02-20 14:54:12 UTC

*** This bug has been marked as a duplicate of 41856 ***