Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 477730

Summary: media-libs/libsdl-1.2.15-r4: build fails on Gentoo/FreeBSD, with USE=joystick
Product: Gentoo/Alt Reporter: Yuta SATOH <nigoro.dev>
Component: FreeBSDAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: bsd+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---

Description Yuta SATOH 2013-07-22 11:52:20 UTC
The following message is displayed and fails to compile.

This issue has been fixed in the upstream.
Please add the patch.
http://hg.libsdl.org/SDL/raw-rev/62ff1c0a103f


libtool: compile:  x86_64-gentoo-freebsd9.1-gcc -O2 -pipe -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -DXTHREADS -DHAVE_USBHID_H -DUSBHID_NEW -D_REENTRANT -D_THREAD_SAFE -Wall -c ./src/thread/pthread/SDL_systhread.c  -fPIC -DPIC -o build/.libs/SDL_systhread.o
./src/joystick/bsd/SDL_sysjoystick.c: In function 'SDL_SYS_JoystickUpdate':
./src/joystick/bsd/SDL_sysjoystick.c:462:28: error: 'struct usb_gen_descriptor' has no member named 'ucr_data'
./src/joystick/bsd/SDL_sysjoystick.c:486:30: error: 'struct usb_gen_descriptor' has no member named 'ucr_data'
./src/joystick/bsd/SDL_sysjoystick.c:494:30: error: 'struct usb_gen_descriptor' has no member named 'ucr_data'
./src/joystick/bsd/SDL_sysjoystick.c:502:30: error: 'struct usb_gen_descriptor' has no member named 'ucr_data'
./src/joystick/bsd/SDL_sysjoystick.c: In function 'report_alloc':
./src/joystick/bsd/SDL_sysjoystick.c:585:48: error: 'struct usb_gen_descriptor' has no member named 'ucr_data'
gmake: *** [build/SDL_sysjoystick.lo] Error 1
gmake: *** Waiting for unfinished jobs....
 * ERROR: media-libs/libsdl-1.2.15-r4 failed (compile phase):




Reproducible: Always

Steps to Reproduce:
1. USE=joystick emerge media-libs/libsdl
2.
3.
Comment 1 Alexis Ballier gentoo-dev 2013-07-27 23:06:08 UTC
@games: will apply that patch unless somebody objects or beats me
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2015-02-15 22:56:27 UTC
in portage.