As far as I understand I need either the hidups or the newhidups driver of nut 
in order to use the APC Back-UPS XS 1500 (aka BX1500) with a USB interface 
cable.  Unfortunately the 3.9 nut-2.0.0p1 package doesn't come with either of 
the two drivers.  Neither does the current nut-2.0.3 port.  I even tried to 
compile the nut-2.0.3 port with --with-drivers=newhidups configuration arg 
added to the Makefile.  After a few guess-fixes [1] I finally got sucked with 
my extremely limited hacking knowledge [2].

A change log over at www.networkupstools.org was teasing me with all the 
improvements on newhidups and the removal of the experimental status flag.  Are 
the hidups and newhidups only available under Linux?   

What are my alternatives?  Both apc-upsd and upsd look quite old and they don't 
look like they support USB either. 
http://www.apcupsd.org/ looks promising.  Has that been compiled and used 
successfully on OpenBSD, maybe even with USB?

Thanks for your time,
  Claus

BTW, sorry for the blank mail earlier.



[1]  changed includes busb.hb to <dev/usb/usb.h> in files 
w-nut-2.0.3/nut-2.0.3/drivers/libhid.h and 
w-nut-2.0.3/nut-2.0.3/drivers/libusb.h

[2]  It looks like the references to HIDDevice isnbt liked even though its 
defined as a struct.

===>  Building for nut-2.0.3
common/
drivers/
cc -I../include -O2 -pipe -Wall -Wsign-compare -s  -c newhidups.c
In file included from newhidups.c:25:
libhid.h:160: error: syntax error before '*' token
libhid.h:170: error: syntax error before '*' token
libhid.h:175: error: syntax error before '*' token
libhid.h:180: error: syntax error before '*' token
libhid.h:185: error: syntax error before '*' token
libhid.h:190: error: syntax error before '*' token
libhid.h:196: error: syntax error before '*' token
In file included from newhidups.h:32,
                 from newhidups.c:26:
libusb.h:41: error: syntax error before '*' token
libusb.h:42: error: syntax error before '*' token
libusb.h:45: error: syntax error before '*' token
libusb.h:46: error: syntax error before '*' token
libusb.h:47: error: syntax error before '*' token
libusb.h:48: error: syntax error before '*' token
In file included from newhidups.c:26:
newhidups.h:36: error: syntax error before '*' token
newhidups.h:36: warning: type defaults to `int' in declaration of `udev'
newhidups.h:36: warning: data definition has no type or storage class
newhidups.c:54: error: syntax error before '*' token
newhidups.c:54: warning: type defaults to `int' in declaration of `udev'
newhidups.c:54: warning: data definition has no type or storage class
*** Error code 1

Stop in /usr/ports/sysutils/nut/w-nut-2.0.3/nut-2.0.3/drivers (line 102 of 
Makefile).
*** Error code 1

Stop in /usr/ports/sysutils/nut/w-nut-2.0.3/nut-2.0.3 (line 27 of Makefile).
*** Error code 1

Stop in /usr/ports/sysutils/nut (line 1924 of 
/usr/ports/infrastructure/mk/bsd.port.mk).

-- 
 

Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
      Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer

Reply via email to