Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66701 - linux26-headers on sparc breaks libsdl
Summary: linux26-headers on sparc breaks libsdl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: Sparc All
: High normal
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-07 16:14 UTC by SpanKY
Modified: 2004-10-08 11:51 UTC (History)
1 user (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 SpanKY gentoo-dev 2004-10-07 16:14:03 UTC
as always tim, i can get you remote access to this box if you want it

 gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL\" -DVERSION=\"1.2.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT -DESD_SUPPORT -DESD_DYNAMIC=libesd.so.0 -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS -I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -Isrc/video -DENABLE_DGA -DENABLE_FBCON -I/usr/X11R6/include -DENABLE_GGI -DENABLE_AALIB -DENABLE_CACA -I/usr/include/ -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../../../include -I../../../include/SDL -I../../../src -I../../../src/main/linux -I../../../src/audio -I../../../src/video -I../../../src/video/XFree86/extensions -I../../../src/events -I../../../src/joystick -I../../../src/cdrom -I../../../src/thread -I../../../src/timer -I../../../src/endian -I../../../src/file -I../../../src/thread -MT SDL_fbevents.lo -MD -MP -MF .deps/SDL_fbevents.Tpo -c SDL_fbevents.c  -fPIC -DPIC -o .libs/SDL_fbevents.o
In file included from /usr/include/asm/signal.h:11,
                 from /usr/include/asm-sparc/processor.h:21,
                 from /usr/include/asm/processor.h:11,
                 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 SDL_fbevents.c:47:
/usr/include/asm-sparc/signal.h:108: error: conflicting types for `sigset_t'
/usr/include/sys/select.h:38: error: previous declaration of `sigset_t'
make: *** [SDL_fbevents.lo] Error 1

Portage 2.0.51_rc7 (default-sparc64-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.7-grsec sparc64)
=================================================================
System uname: 2.6.7-grsec sparc64 sun4u
Gentoo Base System version 1.6.1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.91.0.2
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe"
CHOST="sparc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks noauto noinfo sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/distfiles/arch/sparc/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo/gentoo-portage"
USE="sparc X aalib acl adns aim apache2 audiofile avi bitmap-fonts caps crypt cups curl dga encode esd ethereal fam fbcon flac flash gd gd-external ggi gif gmp gnome gpm gps gtk gtk2 icq imagemagick imap imlib ipv6 jpeg mad maildir mikmod mpeg mpi mysql ncurses nocardbus offensive oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sasl sdl slp snmp socks5 speex spell ssl tcltk tcpd theora tiff truetype wmf wxwindows xface xml xml2 xmms xosd xprint xv zlib"
Comment 1 Ciaran McCreesh 2004-10-07 16:16:51 UTC
Now you see why we don't use 2.6 headers on sparc :)
Comment 2 SpanKY gentoo-dev 2004-10-07 16:19:04 UTC
because no one has gone through the growing pains of trying :P

most other arches are up to speed because of tools like me :P
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-10-08 07:00:57 UTC
Ciaran: Only reason they don't work is because nobody has tried and told me about it. That's why it's not KEYWORDed "~?sparc" yet...

Mike, all this needs is an "#ifndef __sigset_t_defined" around the offending typedef/structure in asm/signal.h... Tell me how that goes.
Comment 4 SpanKY gentoo-dev 2004-10-08 10:37:08 UTC
that did the trick tim, thanks

just had to put it around the typedef for __old_sigset_t ... i think the fix should go into both asm-sparc/signal.h and asm-sparc64/signal.h
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-10-08 11:51:21 UTC
Fixed in CVS [for asm::sparc and asm::sparc64], please test and reopen this bug if you have any issues. If you have any other compile issues, then please open another bug and assign it to me. Thanks!