[Nut-upsuser] Nut 2.7.2 on OpenBSD 5.6 with APC USB UPS

Stan Gammons sg063015 at gmail.com
Fri Sep 19 02:09:06 UTC 2014


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>




More information about the Nut-upsuser mailing list