Stan Gammons
2014-Sep-19 02:09 UTC
[Nut-upsuser] Nut 2.7.2 on OpenBSD 5.6 with APC USB UPS
On 09/17/14 22:31, Charles Lepple wrote:> On Sep 12, 2014, at 5:15 PM, Stan Gammons <sg063015 at gmail.com> wrote: > >> On 09/11/14 22:34, Charles Lepple wrote: >>> On Sep 11, 2014, at 11:04 PM, Stan Gammons <sg063015 at gmail.com> wrote: >>> >>>> I see a libusb_get_interrupt message in the log. Could that be the problem? >>> Yes, it seems related. >>> >>> 1.126896 upsdrv_initinfo... >>> 1.126906 upsdrv_updateinfo... >>> 1.127023 libusb_get_interrupt: Function not implemented >>> 1.127030 Got 0 HID objects... >>> 1.127036 Quick update... >>> >>> Come to think of it, this might also depend on how OpenBSD provides libusb-0.1. What version of libusb-compat do you have? >> # pkg_info >> ... >> libusb-compat-0.1.5 libusb-0.1 compatibility layer for libusb1 >> libusb1-1.0.9p8 library for USB device access from userspace >> ... > Nothing looks strange in libusb-compat, but there is a possibility that you are getting "Function not implemented" from some strange combinations of flags being passed to libusb1. > > Can you rebuild the libusb1 pkg as a port, with the DEBUG flag turned on?Is --enable-debug the way one turns it on? I modified the Makefile as shown below, then did a make and make install. # $OpenBSD: Makefile,v 1.22 2013/08/07 15:37:09 naddy Exp $ COMMENT = library for USB device access from userspace VERSION = 1.0.9 DISTNAME = libusb-${VERSION} PKGNAME = libusb1-${VERSION} REVISION = 8 SHARED_LIBS += usb-1.0 1.0 # 1.0 CATEGORIES = devel HOMEPAGE = http://www.libusb.org MAINTAINER = Martin Pieuchot <mpi at openbsd.org> # LGPL 2.1 PERMIT_PACKAGE_CDROM = Yes WANTLIB = pthread MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=libusb/} EXTRACT_SUFX = .tar.bz2 CONFIGURE_STYLE = gnu CONFIGURE_ARGS += ${CONFIGURE_SHARED} .ifdef DEBUG CONFIGURE_ARGS += --enable-debug-log \ --enable-examples-build \ --enable-debug .endif .include <bsd.port.mk>
Charles Lepple
2014-Sep-19 10:55 UTC
[Nut-upsuser] Nut 2.7.2 on OpenBSD 5.6 with APC USB UPS
On Sep 18, 2014, at 10:09 PM, Stan Gammons <sg063015 at gmail.com> wrote:> > On 09/17/14 22:31, Charles Lepple wrote: >> Can you rebuild the libusb1 pkg as a port, with the DEBUG flag turned on? > > > Is --enable-debug the way one turns it on? I modified the Makefile as shown below, then did a make and make install.I am not sure how to tell OpenBSD to use that ".ifdef DEBUG" section. I think FreeBSD would let you set a DEBUG checkbox when you run "make config", but that doesn't seem to work. In any event, it looks like the right option is the existing "--enable-debug-log" flag. The path of least resistance is probably to add it to the first CONFIGURE_ARGS, after ${CONFIGURE_SHARED}: CONFIGURE_ARGS += ${CONFIGURE_SHARED} --enable-debug-log -- Charles Lepple clepple at gmail
Stan Gammons
2014-Sep-19 11:26 UTC
[Nut-upsuser] Nut 2.7.2 on OpenBSD 5.6 with APC USB UPS
On Sep 19, 2014 5:55 AM, "Charles Lepple" <clepple at gmail.com> wrote:> > On Sep 18, 2014, at 10:09 PM, Stan Gammons <sg063015 at gmail.com> wrote: > > > > > On 09/17/14 22:31, Charles Lepple wrote: > >> Can you rebuild the libusb1 pkg as a port, with the DEBUG flag turnedon?> > > > > > Is --enable-debug the way one turns it on? I modified the Makefile asshown below, then did a make and make install.> > I am not sure how to tell OpenBSD to use that ".ifdef DEBUG" section. Ithink FreeBSD would let you set a DEBUG checkbox when you run "make config", but that doesn't seem to work.> > In any event, it looks like the right option is the existing"--enable-debug-log" flag. The path of least resistance is probably to add it to the first CONFIGURE_ARGS, after ${CONFIGURE_SHARED}:> > CONFIGURE_ARGS += ${CONFIGURE_SHARED} --enable-debug-log > > -- > Charles Lepple > clepple at gmail > >--enable-debug-log was in the original makefile. I added --enable-debug. At this point I guess trying to build from source or go back to OpenBSD 5.5 are the only options left. Thanks for all the help. Stan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140919/5d7248d3/attachment.html>