On Sep 22, 2015, at 3:47 PM, Rob Groner <rgroner at RTD.com> wrote:> So, here is what I think I know: > > NUT is using the libusb-1.0.20 library, by way of the libusb-compat layer. When I check the configure log, it says "libusb-0.1.12" I'm not sure why it says that, as in where it gets that value, as that version doesn't correspond to anything I installed. I see looking at the last version of libusb-0.1 that was available, it was libusb-0.1.12, so it must be getting that version number from the libusb-compat layer, as I did not install the old libusb-0.1.12 on this last test. > > After installing libusb-1.0 and the libusb-compat layer and rebuilding NUT...it still doesn't work (as in, the shutdown command is not passed to the UPS due to can't claim message for USB). > > I could try reinstalling openSUSE and installing the old libusb-0.1.12 and see if that works. Perhaps it is the compat layer or the new libusb-1.0 that is the problem.This is the crux of the libusb-1.0 problem for NUT: a lot of time has been spent making things work with libusb-0.1 and the kernel, and now, instead of three moving pieces, we have four (counting NUT itself, with the addition of libusb-compat in the middle).> > ./configure --with-usb --with-dev --with-usb-includes=-I/usr/local/include --with-usb-libs=-L/usr/local/lib64As I am not familiar with openSUSE's ldconfig, is there an /etc/ld.so.conf or /etc/ld.so.conf.d/* entry pointing to /usr/local/lib64? I am not sure if libusb-0.1 tries to rerun ldconfig after installing, but if after uninstalling libusb-compat, there are problems linking to the real libusb-0.1, then it can't hurt to re-run ldconfig (as root). -- Charles Lepple clepple at gmail
>As I am not familiar with openSUSE's ldconfig, is there an /etc/ld.so.conf or /etc/ld.so.conf.d/* entry >pointing to /usr/local/lib64? I am not sure if libusb-0.1 tries to rerun ldconfig after installing, but if after >uninstalling libusb-compat, there are problems linking to the real libusb-0.1, then it can't hurt to re-run >ldconfig (as root).There's actually both of those things....ld.so.conf and the ld.so.conf.d directory. There are entries in the ld.so.conf file for /usr/local/lib and /usr/local/lib64. Rob Groner Software Engineer Level II RTD Embedded Technologies, Inc. ISO 9001 and AS9100 Certified Ph: +1 814-234-8087 www.rtd.com
And now....suddenly, and so far unexplainably....it works again. I did the same as before, installed openSUSE 13.1 from scratch, then installed the libusb* libraries. And now...it works, so far reliably. I'm certain that there is some micro-step I started doing different than last time. For example, I used to install jedit from the command line after install, but I had started installing it at the same time as the OS install. There's NO WAY that should make a difference....but it certainly could be. I also discovered that the "#! /bin/bash" comment at the top of the shutdown script file was crucial...who knew? Thank you all for the patient help. I'm now putting the system through some systematic shutdown testing to make sure it's good, and then I'll start again from scratch and make sure I can repeat it, and then I'll finally be able to move on with wrapping this thing up. Rob Groner Software Engineer Level II RTD Embedded Technologies, Inc. ISO 9001 and AS9100 Certified Ph: +1 814-234-8087 www.rtd.com> -----Original Message----- > From: Nut-upsuser [mailto:nut-upsuser- > bounces+rgroner=rtd.com at lists.alioth.debian.org] On Behalf Of Rob Groner > Sent: Wednesday, September 23, 2015 9:02 AM > To: Charles Lepple <clepple at gmail.com> > Cc: nut-upsuser Mailing List <nut-upsuser at lists.alioth.debian.org> > Subject: Re: [Nut-upsuser] UPS/NUT with openSUSE 13.1 > > > >As I am not familiar with openSUSE's ldconfig, is there an /etc/ld.so.conf or > /etc/ld.so.conf.d/* entry >pointing to /usr/local/lib64? I am not sure if libusb- > 0.1 tries to rerun ldconfig after installing, but if after >uninstalling libusb- > compat, there are problems linking to the real libusb-0.1, then it can't hurt to > re-run >ldconfig (as root). > > There's actually both of those things....ld.so.conf and the ld.so.conf.d > directory. There are entries in the ld.so.conf file for /usr/local/lib and > /usr/local/lib64. > > > Rob Groner > Software Engineer Level II > > RTD Embedded Technologies, Inc. > ISO 9001 and AS9100 Certified > Ph: +1 814-234-8087 > www.rtd.com > > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser