Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42720 - eject-2.0.12-r1 failed to build with /usr/src/linux/include/asm/byteorder.h:9: error: syntax error before "__u64"
Summary: eject-2.0.12-r1 failed to build with /usr/src/linux/include/asm/byteorder.h:9...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-24 01:25 UTC by Jostein Lima
Modified: 2004-02-24 12:31 UTC (History)
0 users

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 Jostein Lima 2004-02-24 01:25:59 UTC
Hi!

When I try to emerge eject, the compilation fails with the following error message:

gcc -Wall -O3  -O2  -o volname  volname.o
In file included from /usr/src/linux/include/linux/cdrom.h:14,
                 from eject.c:66:
/usr/src/linux/include/asm/byteorder.h:9: error: syntax error before "__u64"
/usr/src/linux/include/asm/byteorder.h:15: error: syntax error before "__u32"
In file included from /usr/src/linux/include/linux/byteorder/little_endian.h:11,
                 from /usr/src/linux/include/asm/byteorder.h:31,
                 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"
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

-----

The problem might seem insignificant, but I can't install nautilus without eject. And I can't install gnome properly without nautilus, so I am not able to get a working desktop environment.

This is a dual Opteron 246 with 1 GB of memory

Reproducible: Always
Steps to Reproduce:
1. do a emerge eject
2.
3.

Actual Results:  
Started to compile, but compilation failed.

Expected Results:  
eject should have compiled correctly

Portage 2.0.50-r1 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.3-gentoo-r2)
=================================================================
System uname: 2.6.3-gentoo-r2 x86_64 5
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="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/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://gentoo.linux.no/pub/gentoo/
http://212.219.247.20/sites/www.ibiblio.org/gentoo/
http://212.219.247.12/sites/www.ibiblio.org/gentoo/
http://194.83.57.7/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 avi berkdb cdr crypt dvb dvd dvdr emacs encode esd foomaticdb gdbm
gif gnome gpm gtk gtk2 gtkhtml imap imlib jpeg ldap libg++ libwww mikmod motif
mozilla mpeg ncurses nls oggvorbis opengl pam pdflib perl png python quicktime
readline sdl slang spell ssl tcltk tcpd tetex tiff truetype xinerama xml2 xmms
xv zlib"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-02-24 02:44:36 UTC
  23 Feb 2004; Seemant Kulleen <seemant@gentoo.org> eject-2.0.13.ebuild:
  moved 13 to stable, 12 is causing issues all over the place it seems


how about marking stable for amd64 ?
Comment 2 Jostein Lima 2004-02-24 03:13:28 UTC
Hi!

By adding the following lines to /usr/src/linux/include/asm/byteorder.h

#ifndef __attribute_const__
#define __attribute_const__  __attribute__((__const__))
#endif

eject compiled

Best Regards,

Jostein
Comment 3 Kris Kersey (RETIRED) gentoo-dev 2004-02-24 12:29:08 UTC
Made 2.0.13 stable on amd64.
Comment 4 Kris Kersey (RETIRED) gentoo-dev 2004-02-24 12:31:37 UTC
Note: 2.0.12-r1 worked for me with no issues though.