Fw: another problem with joystick handling under bsd *sigh* ( + fix )


On compiling SDL CVS (15.6) under FreeBSD 4.6 i get the following errors :

SDL_sysjoystick.c: In function report_alloc': SDL_sysjoystick.c:414: incompatible type for argument 3 ofhid_report_size’
*** Error code 1

Stop in /usr/src/SDL-1.2/src/joystick/bsd.
*** Error code 1

Stop in /usr/src/SDL-1.2/src/joystick.
*** Error code 1

Stop in /usr/src/SDL-1.2/src.
*** Error code 1

Stop in /usr/src/SDL-1.2.

However, changing line 414 from
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
works… ( so the whole #ifdef block wouldn’t be needed anymore ).
This works also well under NetBSD. Are there any OpenBSD-guys who could test this ?. diff for /src/joystick/BSD/SDL_sysjoystick.c is attached.----

Update : since noone on this ml nor on #sdl on irc.openprojects.net nor anyone else if know seems to use openbsd w/ SDL i think it’s more important that SDL runs under FreeBSD 4.6 than to run under OpenBSD

regards, robert

-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_sysjoystick.diff
Type: application/octet-stream
Size: 118 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020620/4eaf9fae/attachment.obj


I’ll upgrade my FreeBSD machine and look into it; i’ve run into unrelated
problems with FreeBSD 4.5. The problem with usbhid is that NetBSD changed
the API a few times and getting this driver to compile on all BSD variants
and versions is not an easy task (see the configure check =).

Yep…the whole mess began with usdhid.h (thus i suppose that noone will ever use a joystick in an sdl-prog running *bsd expect ourselves :wink: ).
I totally agree with you that it is almost impossible to bring the support for all BSD’s under on hat. Maybe subdir’ing /sdl/joystick would be a good turn ?.
Which other problems have you experienced under FreeBSD 4.5 ?
It seems to me like FreeBSD won’t be the hardest thing to get working while the upcoming NetBSD 1.6 could pose some new problems.
Btw does the pthread stuff works under OpenBSD ?
If not the gpt maybe a good solution ( thus some changes in the configure script are needed - see former mail ).

regards, robertOn Thu, 20 Jun 2002 16:26:39 -0500 wcobb at openbsd.org wrote: