[Nut-upsdev] /sbin/upsdrvctl unable to shutdown UPS due to (unmounted) shared library

Charles Lepple clepple at gmail.com
Thu Aug 27 00:34:11 UTC 2009


On Fri, Aug 7, 2009 at 8:38 AM, Charles Lepple<clepple at gmail.com> wrote:
> On Aug 7, 2009, at 1:50 AM, Michal Hlavinka wrote:
[...]
>> ./usbhid-ups
>>       libusb-0.1.so.4 => /usr/lib64/libusb-0.1.so.4 (0x00000036fe600000)
>>       libssl.so.8 => /usr/lib64/libssl.so.8 (0x0000003d07000000)
>>       libcrypto.so.8 => /usr/lib64/libcrypto.so.8 (0x000000379c400000)
>>       libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2
>> (0x0000003d06c00000)
>>       libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x0000003d06800000)
>>       libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00000036f6200000)
>>       libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0
>> (0x00000036f5200000)
>
> We could do better here. IIRC, the only reason why we link usbhid-ups
> against OpenSSL is for calculating the hash of a HID descriptor, and that
> mode does not seem to be used by default (and would never be used at
> shutdown). That hash calculation could be moved into a file in NUT's common
> directory.

Michal,

The code that required OpenSSL has been removed from the SVN trunk.

I have not tested this particular patch against 2.4.1, but it should
apply without much effort:

http://boxster.ghz.cc/projects/nut/changeset/1947

-- 
- Charles Lepple



More information about the Nut-upsdev mailing list