On 06/06/16(Mon) 19:01, Johan Huldtgren wrote:
> hello,
> 
> I have an APC Smart-UPS-2200 which is connected via USB, as long as
> I've followed the instructions in pkg-readme about disabling uhidev
> and upd it's always worked fine. When I updated to the latest snap
> (June 4th) however I am now always seeing "COMMLOST" in the output of
> 'apcaccess status' I tried booting the previous kernel (May 19th,
> #1709), but that did not resolve it, it seems the breakage occurred
> when apcupsd went from 3.14.13p1 to 3.14.13p2 which seems to have been
> because the removal of USB_GET_STRING_DESC. I did try the newly
> committed (but as yet unpackaged) 3.14.14 but no more luck there.
> 
> I tried to build 3.14.13p1 to see if I can confirm what broke it, but
> I've been unable to succeed. I backed out the USB_GET_STRING_DESC
> changes and built a new kernel based on sources from around
> 2016-05-20, I tried to do the same thing with the ports tree but
> clearly I've missed something, because I never make it further than:
> 
> make[5]: Entering directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/drivers/usb/bsd'
>   CXX   src/drivers/usb/bsd/hidutils.c
> if test ! -d .obj; then mkdir -p .obj; fi
> c++ -x c++ -I/usr/local/include
> -I/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/libusbhid
> -I/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/include  -O2 -pipe
> -fno-exceptions -fno-rtti -Wall -pthread -c -o .obj/hidutils.o hidutils.c
> hidutils.c: In function 'const char* hidu_get_string(int, int)':
> hidutils.c:354: error: 'USB_GET_STRING_DESC' was not declared in this scope
> ../../../../autoconf/targets.mak:141: recipe for target '.obj/hidutils.o'
> failed
> gmake[5]: *** [.obj/hidutils.o] Error 1
> gmake[5]: Leaving directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/drivers/usb/bsd'
> ../../../../autoconf/targets.mak:55: recipe for target 'all' failed
> gmake[4]: *** [all] Error 2
> gmake[4]: Leaving directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/drivers/usb/bsd'
> ../../../autoconf/targets.mak:105: recipe for target 'bsd_DIR' failed
> gmake[3]: *** [bsd_DIR] Error 2
> gmake[3]: Leaving directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/drivers/usb'
> ../../autoconf/targets.mak:105: recipe for target 'usb_DIR' failed
> gmake[2]: *** [usb_DIR] Error 2
> gmake[2]: Leaving directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src/drivers'
> ../autoconf/targets.mak:105: recipe for target 'drivers_DIR' failed
> gmake[1]: *** [drivers_DIR] Error 2
> gmake[1]: Leaving directory
> '/usr/ports/pobj/apcupsd-3.14.13/apcupsd-3.14.13/src'
> autoconf/targets.mak:105: recipe for target 'src_DIR' failed
> gmake: *** [src_DIR] Error 2
> *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2675
> '/usr/ports/pobj/apcupsd-3.14.13/.build_done')
> *** Error 1 in /usr/ports/sysutils/apcupsd
> (/usr/ports/infrastructure/mk/bsd.port.mk:2397 'all')
> 
> any clues?

Does it work if you use the system libusbhid instead of the bundled one?

Reply via email to