Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120971 - Xgalaga build error with latest linux-headers
Summary: Xgalaga build error with latest linux-headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Tim Yamin (RETIRED)
URL: http://rumsey.org/xgal.html
Whiteboard: queue:2.6.17
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 12:48 UTC by Tom Kirchner
Modified: 2006-07-02 11:22 UTC (History)
3 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 Tom Kirchner 2006-01-30 12:48:15 UTC
When I try to emerge xgalaga, the compile fails upon pulling in /usr/include/linux/joystick.h.  The full compile can be seen here:

http://halffull.org/gentoo/xgalaga_errors

My emerge info is here:

http://halffull.org/gentoo/emerge.info

Here's the relevant snippet of build errors:

gcc -I. -march=pentium-m -O2 -fomit-frame-pointer -funit-at-a-time -pipe -DHAVE_CONFIG_H  -DXGALAGADIR=\"/usr/games/bin/\" -DSOUNDSERVER=\"/usr/games/bin/xgal.sndsrv.linux\" -DORIGINAL_XGALAGA -c linux-joystick.c -o linux-joystick.o
gcc -I. -I.. -march=pentium-m -O2 -fomit-frame-pointer -funit-at-a-time -pipe  -DHAVE_CONFIG_H -D__NO_STRING_INLINES  -c -o scale.o scale.c
In file included from linux-joystick.c:9:
/usr/include/linux/joystick.h:114: error: syntax error before "int32_t"
/usr/include/linux/joystick.h:116: error: syntax error before "y"
/usr/include/linux/joystick.h:120: error: syntax error before "int32_t"
/usr/include/linux/joystick.h:122: error: syntax error before "JS_EXPIRETIME"
/usr/include/linux/joystick.h:123: error: syntax error before "JS_TIMELIMIT"
/usr/include/linux/joystick.h:126: error: syntax error before '}' token
/usr/include/linux/joystick.h:129: error: syntax error before "int32_t"
/usr/include/linux/joystick.h:131: error: syntax error before "JS_EXPIRETIME"
/usr/include/linux/joystick.h:132: error: syntax error before "JS_TIMELIMIT"
/usr/include/linux/joystick.h:135: error: syntax error before '}' token
/usr/include/linux/joystick.h:133: error: storage size of `JS_SAVE' isn't known
/usr/include/linux/joystick.h:134: error: storage size of `JS_CORR' isn't known
make: *** [linux-joystick.o] Error 1
make: *** Waiting for unfinished jobs....
gcc -I. -I.. -march=pentium-m -O2 -fomit-frame-pointer -funit-at-a-time -pipe  -DHAVE_CONFIG_H -D__NO_STRING_INLINES  -c -o triangle.o triangle.c
gcc -I. -I.. -march=pentium-m -O2 -fomit-frame-pointer -funit-at-a-time -pipe  -DHAVE_CONFIG_H -D__NO_STRING_INLINES  -c -o color.o color.c
gcc -I. -I.. -march=pentium-m -O2 -fomit-frame-pointer -funit-at-a-time -pipe  -DHAVE_CONFIG_H -D__NO_STRING_INLINES  -c -o image.o image.c
gcc -I. -I.. -march=pentium-m -O2 -fomit-frame-pointer -funit-at-a-time -pipe  -DHAVE_CONFIG_H -D__NO_STRING_INLINES  -c -o menu.o menu.c
gcc -I. -I.. -march=pentium-m -O2 -fomit-frame-pointer -funit-at-a-time -pipe  -DHAVE_CONFIG_H -D__NO_STRING_INLINES  -c -o scroll.o scroll.c
rm -f libsprite.a
ar rc libsprite.a border.o cursor.o init.o misc.o sector.o buffer.o data.o line.o mouse.o text.o circle.o event.o makewindow.o point.o tile.o cleararea.o fill.o mapwindow.o scale.o triangle.o color.o image.o menu.o scroll.o
ranlib libsprite.a
make[1]: Leaving directory `/var/tmp/portage/xgalaga-2.0.34-r6/work/xgalaga-2.0.34/libsprite'

!!! ERROR: games-arcade/xgalaga-2.0.34-r6 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2006-01-30 14:56:19 UTC
Builds fine for me but then again, I have mostly stable packages here.

What linux-headers do you have?
Comment 2 Tom Kirchner 2006-01-30 15:05:37 UTC
I'm using linux-headers-2.6.11-r3.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2006-01-30 15:33:23 UTC
linux-headers-2.6.11-r2 here.  Try it with more stable packages until it works.
Comment 4 Tom Kirchner 2006-01-31 08:10:31 UTC
I can confirm that it compiles cleanly after switching to linux-headers-2.6.11-r2.

Could it be an incompatibility between linux-headers-2.6.11-r3 and gcc-3.4.5, at least for joystick.h?  Every other package on my system compiled fine with that combination of linux-headers and gcc, though they probably weren't referencing joystick.h.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2006-03-24 18:32:33 UTC
Is this still a problem?
Comment 6 Fredrik Sjöstedt 2006-04-03 14:13:20 UTC
Yes it is.

I updataed to latest gentoo sources, and made a complete re-emerge of my system.
After that, I can not emerge gentoo.
Receives the following error:
ake[1]: Leaving directory `/var/tmp/portage/xgalaga-2.0.34-r6/work/xgalaga-2.0.34/libsprite'
gcc -I. -march=k8 -O2 -pipe -DHAVE_CONFIG_H  -DXGALAGADIR=\"/usr/games/bin/\" -DSOUNDSERVER=\"/usr/games/bin/xgal.sndsrv.linux\" -UORIGINAL_XGALAGA -c main.c -o main.o.hyper
In file included from linux-joystick.c:9:
/usr/include/linux/joystick.h:114: error: syntax error before "int32_t"
/usr/include/linux/joystick.h:116: error: syntax error before "y"
/usr/include/linux/joystick.h:120: error: syntax error before "int32_t"
/usr/include/linux/joystick.h:122: error: syntax error before "JS_EXPIRETIME"
/usr/include/linux/joystick.h:123: error: syntax error before "JS_TIMELIMIT"
/usr/include/linux/joystick.h:126: error: syntax error before '}' token
/usr/include/linux/joystick.h:129: error: syntax error before "int32_t"
/usr/include/linux/joystick.h:131: error: syntax error before "JS_EXPIRETIME"
/usr/include/linux/joystick.h:132: error: syntax error before "JS_TIMELIMIT"
/usr/include/linux/joystick.h:135: error: syntax error before '}' token
/usr/include/linux/joystick.h:133: error: storage size of `JS_SAVE' isn't known
/usr/include/linux/joystick.h:134: error: storage size of `JS_CORR' isn't known
make: *** [linux-joystick.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: games-arcade/xgalaga-2.0.34-r6 failed.
Call stack:
  ebuild.sh, line 1526:   Called dyn_compile
  ebuild.sh, line 923:   Called src_compile
  xgalaga-2.0.34-r6.ebuild, line 44:   Called die

!!! compile problem
!!! If you need support, post the topmost build error, and the call stack if relevant.


Regards
Fredrik Sj
Comment 7 Fredrik Sjöstedt 2006-04-03 14:13:20 UTC
Yes it is.

I updataed to latest gentoo sources, and made a complete re-emerge of my system.
After that, I can not emerge gentoo.
Receives the following error:
ake[1]: Leaving directory `/var/tmp/portage/xgalaga-2.0.34-r6/work/xgalaga-2.0.34/libsprite'
gcc -I. -march=k8 -O2 -pipe -DHAVE_CONFIG_H  -DXGALAGADIR=\"/usr/games/bin/\" -DSOUNDSERVER=\"/usr/games/bin/xgal.sndsrv.linux\" -UORIGINAL_XGALAGA -c main.c -o main.o.hyper
In file included from linux-joystick.c:9:
/usr/include/linux/joystick.h:114: error: syntax error before "int32_t"
/usr/include/linux/joystick.h:116: error: syntax error before "y"
/usr/include/linux/joystick.h:120: error: syntax error before "int32_t"
/usr/include/linux/joystick.h:122: error: syntax error before "JS_EXPIRETIME"
/usr/include/linux/joystick.h:123: error: syntax error before "JS_TIMELIMIT"
/usr/include/linux/joystick.h:126: error: syntax error before '}' token
/usr/include/linux/joystick.h:129: error: syntax error before "int32_t"
/usr/include/linux/joystick.h:131: error: syntax error before "JS_EXPIRETIME"
/usr/include/linux/joystick.h:132: error: syntax error before "JS_TIMELIMIT"
/usr/include/linux/joystick.h:135: error: syntax error before '}' token
/usr/include/linux/joystick.h:133: error: storage size of `JS_SAVE' isn't known
/usr/include/linux/joystick.h:134: error: storage size of `JS_CORR' isn't known
make: *** [linux-joystick.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: games-arcade/xgalaga-2.0.34-r6 failed.
Call stack:
  ebuild.sh, line 1526:   Called dyn_compile
  ebuild.sh, line 923:   Called src_compile
  xgalaga-2.0.34-r6.ebuild, line 44:   Called die

!!! compile problem
!!! If you need support, post the topmost build error, and the call stack if relevant.


Regards
Fredrik Sjöstedt
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2006-04-03 15:56:50 UTC
maybe the kernel guys have a comment about this?
Comment 9 Tim Yamin (RETIRED) gentoo-dev 2006-06-07 08:35:53 UTC
Try with linux-headers-2.6.11-r6 please.
Comment 10 Sandro Bonazzola (RETIRED) gentoo-dev 2006-06-13 12:53:35 UTC
I have a pertinent issue, but another kind of error:

gcc -I.  -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow  -DHAVE_CONFIG_H  -DXGALAGADIR=\"/usr/games/bin/\" -DSOUNDSERVER=\"/usr/games/bin/xgal.sndsrv.linux\" -DORIGINAL_XGALAGA -c frate.c -o frate.o
frate.c: In function 
Comment 11 Sandro Bonazzola (RETIRED) gentoo-dev 2006-06-13 12:53:35 UTC
I have a pertinent issue, but another kind of error:

gcc -I.  -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow  -DHAVE_CONFIG_H  -DXGALAGADIR=\"/usr/games/bin/\" -DSOUNDSERVER=\"/usr/games/bin/xgal.sndsrv.linux\" -DORIGINAL_XGALAGA -c frate.c -o frate.o
frate.c: In function init_framerate:
frate.c:80: warning: incompatible implicit declaration of built-in function exit
gcc -I.  -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow  -DHAVE_CONFIG_H  -DXGALAGADIR=\"/usr/games/bin/\" -DSOUNDSERVER=\"/usr/games/bin/xgal.sndsrv.linux\" -DORIGINAL_XGALAGA -c linux-joystick.c -o linux-joystick.o
In file included from linux-joystick.c:9:
/usr/include/linux/joystick.h:114: error: expected specifier-qualifier-list before int32_t
/usr/include/linux/joystick.h:120: error: expected specifier-qualifier-list before int32_t
/usr/include/linux/joystick.h:129: error: expected specifier-qualifier-list before int32_t
make: *** [linux-joystick.o] Error 1

 # emerge --info
Portage 2.1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.1
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS=" -march=athlon64 -Os -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow "
DISTDIR="/home/ftp/distfiles"
FEATURES="autoconfig ccache collision-protect cvs distlocks elog java-strict metadata-transfer multilib-strict sandbox sfperms sign strict stricter test userpriv"
GENTOO_MIRRORS="http://gentoo.ngi.it ftp://ftp.unina.it/pub/linux/distributions/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="it_IT.utf8"
LINGUAS="it"
PKGDIR="/home/ftp/packages"
PORTAGE_RSYNC_EXTRA_OPTS=" --timeout=400 --progress "
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/portage /usr/local/overlays/migration-overlay /usr/local/overlays/tinyos /usr/local/overlays/gentoo-java-experimental"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac aalib acl acpi alsa apache2 arts asf audiofile avi berkdb bitmap-fonts bzip2 cairo canvas caps ccache cdb cddb cdparanoia cdr chroot cli cpudetection crypt css cups curl dba dbus dga directfb dlloader dmi dri dts dv dvd dvdr dvdread dynagraph emboss encode erandom esd exif expat extrafilters fame ffmpeg firefox flac fltk foomaticdb gd gdbm ggi gif gimp gimpprint glibc-omitfp glut gmp gnokii gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imlib ipv6 isdnlog ithreads java jbig jikes jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility lcms ldap libcaca linuxthreads-tls lm_sensors logitech-mouse logrotate lzo lzw lzw-tiff mad mailwrapper mbox mdb mhash mikmod mjpeg mmap mng motif mozsvg mp3 mpeg mpm-worker musepack musicbrainz mysql ncurses nls nptl nptlonly numeric nvidia odbc offensive ogg on-the-fly-crypt openexr opengl oss pam pcre pcsc-lite pdf pdflib perl php png povray ppds pppd python qt quicktime rdesktop readline reflection rtc samba scanner sdl session slang smime smp sndfile snmp speex spell spl ssl subversion svg sysfs syslog tcltk tcpd test tetex tga theora threads tidy tiff timidity truetype truetype-fonts type1-fonts unicode usb userlocales utf8 v4l v4l2 vcd vda vorbis vorbis-psy wmf xcomposite xine xinerama xml xml2 xmms xorg xpm xscreensaver xv xvid xvmc yv12 zeroconf zlib elibc_glibc input_devices_mouse input_devices_evdev input_devices_keyboard kernel_linux linguas_it userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS

Comment 12 Tim Yamin (RETIRED) gentoo-dev 2006-07-02 11:22:41 UTC
Fixed in 2.6.17 headers. If the problem persists with 2.6.17 please reopen the bug. Thanks!