It was patched by developer at the end of January and this patch was included in current tarball on my ftp. Peter Strömberg (wilfried@) tested it with his Smart-UPS 750 on USB cable. At least I have no errors now. Try to download and compile it.
------------------------------ Original Message ------------------------------ Subject: Re: [Apcupsd-users] bsd-usb compiling errors From: "Adam Kropelin" <[EMAIL PROTECTED]> Date: Sun, January 27, 2008 18:07 To: "Apcupsd Discussion List" <[EMAIL PROTECTED]> ------------------------------------------------------------------------------ Kirill S. Bychkov wrote: > Hi! I've got some problems while compiling 3.14.3 on my OpenBSD box: > > bsd-usb.c: In function `int pusb_ups_get_capabilities(UPSINFO*, const > s_known_info*)': > bsd-usb.c:367: error: `input' undeclared (first use this function) > bsd-usb.c:367: error: (Each undeclared identifier is reported only > once for each function it appears in.) > bsd-usb.c:377: error: `feature' undeclared (first use this function) > bsd-usb.c:384: error: `witem' undeclared (first use this function) > bsd-usb.c:354: warning: unused variable `int rc' > bsd-usb.c: In function `bool populate_uval(UPSINFO*, USB_INFO*, > unsigned char*, USB_VALUE*)': > bsd-usb.c:509: warning: converting to `int' from `double' > > I haven't such problems with previous 3.14.2 version. What can be > done to fix this issue? Wow, it looks like I never completed the input/feature report conversion on the bsd driver, or at least incorrectly ported it from generic-usb. I would have caught this if I followed my normal release process of doing a test build on every platform, but I shortcut that this time around. Argh. Please try the attached patch. This should fix it up. --Adam -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
apcupsd-bsd-witem.patch
Description: Binary data
