Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157296 - games-util/joystick-20060731 compile errors on amd64
Summary: games-util/joystick-20060731 compile errors on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-06 01:56 UTC by Kury
Modified: 2008-06-02 15:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge/compile errors (joystick.txt,12.34 KB, text/plain)
2006-12-06 01:57 UTC, Kury
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kury 2006-12-06 01:56:06 UTC
# emerge --info
Portage 2.1.1-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-60
Gentoo Base System version 1.12.6
Last Sync: Wed, 06 Dec 2006 07:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
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-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
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/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net http://mirror.espri.arizona.edu/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.llarian.net/ http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo http://gentoo.cs.lewisu.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://modzer0.cs.uaf.edu/public/gentoo/ http://mirror.phy.olemiss.edu/mirror/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi aiglx alsa amarok apache2 asf avi bash-completion berkdb bitmap-fonts caps cddb cdparanoia cdr cli cracklib crypt cups dbus dga directfb divx dri dts dv dvd dvdr dvdread eds elibc_glibc emboss encode fame fbcon fbsplash festival ffmpeg firefox flac foomaticdb fortran ggi gif gmedia gpm gps gstreamer gtk2 hal httpd iconv imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics ipod isdnlog jack java jmpeg joystick jpeg jpeg2k kde kernel_linux libcaca linguas_en lirc lirc_devices_serial lm_sensors lzo lzw lzw-tiff madwifi mp3 mp4 mpeg mplayer musepack mysql ncurses nls nptl nptlonly nsplugin ogg openal opengl oss pam pcmcia pcre pdf perl png pppd python qt qt3 qt4 quicktime readline realmedia reflection rtc sdl session skins smp speex spell spl sqlite ssl swf tcpd tga theora threads tiff tk truetype truetype-fonts type1-fonts usb userland_GNU v4l v4l2 vcd video_cards_fglrx video_cards_v4l visualization vlc vorbis widescreen wireshark wma wmf wmp wmv x264 xanim xchattext xine xorg xosd xpm xv xvid zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY





# emerge joystick -vuDN
Calculating dependencies... done!

>>> Emerging (1 of 1) games-util/joystick-20060731 to /
 * joystick-20060731.tar.bz2 MD5 ;-) ...                                                                                                       [ ok ]
 * joystick-20060731.tar.bz2 RMD160 ;-) ...                                                                                                    [ ok ]
 * joystick-20060731.tar.bz2 SHA1 ;-) ...                                                                                                      [ ok ]
 * joystick-20060731.tar.bz2 SHA256 ;-) ...                                                                                                    [ ok ]
 * joystick-20060731.tar.bz2 size ;-) ...                                                                                                      [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                           [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                          [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                         [ ok ]
 * checking joystick-20060731.tar.bz2 ;-) ...                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking joystick-20060731.tar.bz2 to /var/tmp/portage/joystick-20060731/work
 * Applying joystick-MCS-defines.patch ...                                                                                                     [ ok ]
 * Applying joystick-jstest-segv.patch ...                                                                                                     [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/joystick-20060731/work/utils ...
gcc -O2 -pipe    evtest.c   -o evtest
gcc -O2 -pipe    jstest.c   -o jstest
gcc -O2 -pipe   -c -o jscal.o jscal.c
gcc -O2 -pipe    fftest.c   -o fftest
evtest.c:260:8: warning: extra tokens at end of #endif directive
gcc -O2 -pipe    ffset.c   -o ffset
gcc -O2 -pipe -funsigned-char \
         -lm ffcfstress.c -o ffcfstress
gcc -c -O2 -pipe  ffmvforce.c -o ffmvforce.o `sdl-config --cflags`
gcc -O2 -pipe  -lm jscal.o -o jscal
ffmvforce.c: In function 'main':
ffmvforce.c:150: warning: passing argument 1 of 'on_exit' from incompatible pointer type
gcc ffmvforce.o -o ffmvforce  -O2 -pipe -lm `sdl-config --libs`
gcc -O2 -pipe    inputattach.c   -o inputattach
In file included from /usr/include/time.h:8,
                 from /usr/include/gentoo-multilib/amd64/signal.h:209,
                 from /usr/include/signal.h:8,
                 from /usr/include/asm-x86_64/sigcontext.h:13,
                 from /usr/include/asm/sigcontext.h:8,
                 from /usr/include/asm-x86_64/processor.h:13,
                 from /usr/include/asm/processor.h:8,
                 from /usr/include/linux/spinlock.h:16,
                 from /usr/include/linux/seqlock.h:30,
                 from /usr/include/asm-x86_64/vsyscall.h:4,
                 from /usr/include/asm/vsyscall.h:4,
                 from /usr/include/asm-x86_64/timex.h:12,
                 from /usr/include/asm/timex.h:8,
                 from /usr/include/linux/timex.h:61,
                 from /usr/include/linux/sched.h:11,
                 from /usr/include/linux/smp_lock.h:5,
                 from /usr/include/linux/hardirq.h:5,
                 from /usr/include/linux/interrupt.h:11,
                 from /usr/include/linux/serio.h:13,
                 from inputattach.c:36:
/usr/include/gentoo-multilib/amd64/time.h:122: error: redefinition of 'struct timespec'

... More errors.. but I can't post all of it.
Comment 1 Kury 2006-12-06 01:57:53 UTC
Created attachment 103428 [details]
emerge/compile errors
Comment 2 Darragh Bailey 2007-01-10 12:36:12 UTC
Ran into this problem as well. Traced it the problem to headers provided by sys-kernel/linux-headers-2.6.11-r2 and sys-lib/glibc-2.4-r4.

Did a quick examination of what gcc was including when building the inputattach binary.

gcc -E inputattach.c | less

This showed timespec being defined in the following headers:
/usr/include/linux/time.h
provided by sys-kernel/linux-headers-2.6.11-r2

and
/usr/include/gentoo-multilib/amd64/time.h
provided by sys-lib/glibc-2.4-r4

Both of which are pulled in by /usr/include/linux/serio.h


I haven't as yet worked out if there are any defines that can be added in inputattach to prevent either one or the other from being pulled in.
Comment 3 Kury 2007-12-10 14:23:12 UTC
Anyone looked at this recently?

Thanks
Comment 4 Tristan Heaven (RETIRED) gentoo-dev 2008-03-28 13:35:34 UTC
(In reply to comment #3)
> Anyone looked at this recently?
> 
> Thanks
> 

Works for me with linux-headers-2.6.24 and glibc-2.7-r2
Comment 5 Tristan Heaven (RETIRED) gentoo-dev 2008-06-02 15:14:13 UTC
Should be working now. Reopen if it's not. Thanks.