Date: Wed, 24 Jan 2001 10:23:22 +0900 From: Yukihiro Nakai <nakai@FreeBSD.org> To: Josh Elsasser <jre@vineyard.net> Cc: jclarke@cisco.com, green@FreeBSD.org, ports@FreeBSD.org Subject: Re: snes9x ports for 4.2-STABLE Message-ID: <200101240117.UAA02071@lacrosse.corp.redhat.com> In-Reply-To: <Pine.BSF.4.21.0101211502490.30260-100000@king1.vineyard.net> References: <Pine.BSF.4.31.0101211448450.20507-100000@lakeland.cisco.com> <Pine.BSF.4.21.0101211502490.30260-100000@king1.vineyard.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I commited this fix and revision up to 2. Thank you for your support... On Sun, 21 Jan 2001 15:24:19 -0500 (EST) Josh Elsasser <jre@vineyard.net> wrote: > It segfaulted for me too. But if I patch the original patch-af (not the one > Yukihiro Nakai just sent) like so: > > --- /usr/ports/emulators/snes9x/files/patch-af Sat Jan 13 18:12:09 2001 > +++ /home/joshe/tmp/snes9x/files/patch-af Sun Jan 21 14:59:44 2001 > @@ -298,7 +298,7 @@ > + return (-1); > + } > + report_id = 0; > -+ reportlen = hid_report_size(rd, report_id, hid_input); > ++ reportlen = hid_report_size(rd, hid_input, &report_id); > + my_info->buf = (char *)malloc(reportlen); > + if (my_info->buf == NULL) > + err(1, "malloc"); > > Then it builds and runs fine. My gravis usb gamepad pro works great too, > aside from the fact that the two extra buttons are unused. > > On Sun, 21 Jan 2001, Joe Clarke wrote: > > > After compiling with the new patch-af, it seg faults after reading in the > > ROM. > > > > Joe Clarke > > > > -- > > > > Please use Reply-To: address for response. > > > > Joe Clarke, CCIE #5384 | | > > Customer Support Engineer ||||| ||||| > > Phone: +1 (919) 392-2867 ..:|||||||||::|||||||||:.. > > Email: jclarke@cisco.com c i s c o S y s t e m s > > > > ---------------------------------------------------------------------------- > > > > > > On Mon, 22 Jan 2001, Yukihiro Nakai wrote: > > > > > > > > Hi, > > > > > > The files/patch-af in ports/emulators/snes9x mave usb support, > > > it seems work on 5.0-current, but not on 4.2-STABLE. > > > (I got many bug-report mails from users.) > > > This is because the function argument is different between them. > > > > > > In /usr/include/libusb.h, > > > > > > 5.0-current: > > > int hid_report_size __P((report_desc_t d, unsigned int id, enum hid_kind k)); > > > > > > 4.2-STABLE : > > > int hid_report_size __P((report_desc_t d, enum hid_kind k, int *idp)); > > > > > > So this new patch-af that I append here is needed to compile snes9x > > > on 4.2-STABLE. > > > > > > I will add 5.0 macros and commit this after some tests... > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ports" in the body of the message > -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101240117.UAA02071>