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 - SDL does not build the joystick code on FreeBSD
Summary: SDL does not build the joystick code on FreeBSD
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 2.0
Hardware: x86_64 FreeBSD
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-18 23:37 UTC by David Demelier
Modified: 2012-03-27 04:53 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.