We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1184

Summary: SDL does not build the joystick code on FreeBSD
Product: SDL Reporter: David Demelier <demelier.david>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2 CC: mva
Version: HG 2.0   
Hardware: x86_64   
OS: FreeBSD   

Description David Demelier 2011-04-18 23:37:29 UTC
On FreeBSD 8.2 amd64 that's what happening when trying to build the src/joystick/bsd/SDL_sysjoystick.c :

libtool: compile:  gcc -g -O3 -I./include -mmmx -msse -msse2 -fvisibility=hidden -I/usr/X11R6/include -DHAVE_USBHID_H -DUSBHID_NEW -D_REENTRANT -D_THREAD_SAFE -MMD -MT build/SDL_sysjoystick.lo -c src/joystick/bsd/SDL_sysjoystick.c  -fPIC -DPIC -o build/.libs/SDL_sysjoystick.o
src/joystick/bsd/SDL_sysjoystick.c: In function 'SDL_SYS_JoystickUpdate':
src/joystick/bsd/SDL_sysjoystick.c:465: error: dereferencing pointer to incomplete type
src/joystick/bsd/SDL_sysjoystick.c:489: error: dereferencing pointer to incomplete type
src/joystick/bsd/SDL_sysjoystick.c:499: error: dereferencing pointer to incomplete type
src/joystick/bsd/SDL_sysjoystick.c:507: error: dereferencing pointer to incomplete type
src/joystick/bsd/SDL_sysjoystick.c: In function 'report_alloc':
src/joystick/bsd/SDL_sysjoystick.c:588: error: dereferencing pointer to incomplete type
src/joystick/bsd/SDL_sysjoystick.c:588: error: dereferencing pointer to incomplete type
gmake: *** [build/SDL_sysjoystick.lo] Error 1
Comment 1 Sam Lantinga 2012-01-07 01:25:48 UTC
Can you try with the latest SDL snapshot?
http://www.libsdl.org/tmp/SDL-1.3.zip

I just tried with FreeBSD 8.2 and it seemed to compile just fine.
Comment 2 Marcus von Appen 2012-03-27 04:53:34 UTC
Can be closed. There was a time delta between the SDL upstream packages and the FreeBSD patches with the new USB stack and has been fixed some time ago.