Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79252 - linux(26)-headers-2.6.8.1-r3 and gcc-3.4
Summary: linux(26)-headers-2.6.8.1-r3 and gcc-3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 All
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-23 13:16 UTC by Simon Stelling (RETIRED)
Modified: 2005-02-08 14:38 UTC (History)
2 users (show)

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 Simon Stelling (RETIRED) gentoo-dev 2005-01-23 13:16:03 UTC
In file included from /usr/include/asm/system.h:9,
                 from /usr/include/asm-x86_64/processor.h:19,
                 from /usr/include/asm/processor.h:9,
                 from /usr/include/linux/prefetch.h:15,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from ../classes/linux/linuxmouse.cc:34:
/usr/include/asm-x86_64/system.h:245: error: expected `,' or `...' before "new"
/usr/include/asm-x86_64/system.h: In function `long unsigned int __cmpxchg(volatile void*, long unsigned int, long unsigned int)':
/usr/include/asm-x86_64/system.h:248: error: `size' undeclared (first use this function)
/usr/include/asm-x86_64/system.h:248: error: (Each undeclared identifier is reported only once for each function it appears in.)
/usr/include/asm-x86_64/system.h:252: error: expected identifier before ')' token
/usr/include/asm-x86_64/system.h:258: error: expected identifier before ')' token
/usr/include/asm-x86_64/system.h:264: error: expected identifier before ')' token
/usr/include/asm-x86_64/system.h:270: error: expected identifier before ')' token
make[1]: *** [obj/linuxmouse.o] Error 1
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../classes/fpstream.cc -o obj/fpstream.lo
make[1]: *** Waiting for unfinished jobs....
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../classes/help.cc -o obj/help.lo
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../classes/helpbase.cc -o obj/helpbase.lo
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../histlist.cc -o obj/histlist.lo
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../classes/ifpstrea.cc -o obj/ifpstrea.lo
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../classes/iopstrea.cc -o obj/iopstrea.lo
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../classes/ipstream.cc -o obj/ipstream.lo
make[1]: Leaving directory `/var/tmp/portage/tvision-2.0.3/work/tvision/makes'
make: *** [static-lib] Error 2
make: *** Waiting for unfinished jobs....
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../classes/linux/linuxdis.cc -o obj/linuxdis.lo
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../classes/linux/linuxkey.cc -o obj/linuxkey.lo
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../classes/linux/linuxmouse.cc -o obj/linuxmouse.lo
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../classes/linux/linuxscr.cc -o obj/linuxscr.lo
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../misc.cc -o obj/misc.lo
g++  -I../include -I/usr/X11R6/include       -fPIC -O3 -pipe -march=k8  -c ../msgbox.cc -o obj/msgbox.lo
In file included from /usr/include/asm/system.h:9,
                 from /usr/include/asm-x86_64/processor.h:19,
                 from /usr/include/asm/processor.h:9,
                 from /usr/include/linux/prefetch.h:15,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from ../classes/linux/linuxmouse.cc:34:
/usr/include/asm-x86_64/system.h:245: error: expected `,' or `...' before "new"
/usr/include/asm-x86_64/system.h: In function `long unsigned int __cmpxchg(volatile void*, long unsigned int, long unsigned int)':
/usr/include/asm-x86_64/system.h:248: error: `size' undeclared (first use this function)
/usr/include/asm-x86_64/system.h:248: error: (Each undeclared identifier is reported only once for each function it appears in.)
/usr/include/asm-x86_64/system.h:252: error: expected identifier before ')' token
/usr/include/asm-x86_64/system.h:258: error: expected identifier before ')' token
/usr/include/asm-x86_64/system.h:264: error: expected identifier before ')' token
/usr/include/asm-x86_64/system.h:270: error: expected identifier before ')' token
make[1]: *** [obj/linuxmouse.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/tvision-2.0.3/work/tvision/makes'
make: *** [dynamic-lib] Error 2

!!! ERROR: dev-libs/tvision-2.0.3 failed.
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2005-01-23 13:17:19 UTC
uh oh, forgot emerge info ;)

$ emerge info
Portage 2.0.51-r14 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r10 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.4,dev-lang/python-2.3.4 [2.4 (#1, Jan 10 2005, 22:42:13)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.4_p6, 1.9.4, 1.8.5-r2, 1.6.3, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
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/init.d /etc/env.d"
CXXFLAGS="-O3 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache cvs distlocks sandbox userpriv"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/blubb/gentoo/gentoo-x86 /usr/local/portage"
SYNC="rsync://buggy/gentoo-portage"
USE="amd64 X aalib acpi alsa bitmap-fonts bonobo bzlib canna cdr chroot crypt cups divx4linux dvd emul-linux-x86 encode esd f77 fam flac ftp gdbm gif gimp glx gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib java jp2 jpeg libwww lzw lzw-tiff mad mikmod mng motif mozdomi mozilla moznoirc moznomail moznoxft mozp3p mozsvg mp3 mpeg msn multislot mysql ncurses network nls nptl oggvorbis opengl pam perl png posix python readline samba sdl sematicfix speex sqlite ssl svg tcltk tcpd threads tiff truetype truetype-fonts type1-fonts usb userlocales utf8 xinerama xml xml2 xmms xpm xrandr xsl xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2005-01-23 14:10:56 UTC
sed -e 's/new,/_new,/' -e 's/(new)/(_new)/g' -i /usr/include/asm/system.h please
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2005-01-31 05:37:50 UTC
if i change it to asm-x86_64, it seems to work.

also, /usr/include/linux/ixjuser.h doesn't include sysctl.h which defines __user, so it bails out with this error:

/usr/include/linux/ixjuser.h:352: error: expected `;' before '*' token

simply adding a #include <linux/sysctl.h> fixes this.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2005-02-08 14:38:58 UTC
Fixed in linux-headers-2.6.10...