[Nut-upsuser] Unable to use nut-2.7.4 with Eaton 5E1500I USB

Manuel Wolfshant wolfy at nobugconsulting.ro
Fri Jun 16 10:12:40 UTC 2017


On 06/15/2017 04:32 PM, Arnaud Quette wrote:

Hello

>
> .... still no reply from them ...
>
> is the guy you contacted Paul Henri?

I wrote to a generic alias ( Ro-PQSupport ). Got a reply from a fellow 
Romanian who also CC:ed something looking like a list 
(List-EGPQCO-BUCRO-PQ ). I replied to both of them 5 days ago, received 
nothing since.


>
>>>     Would you also be able to test some github code?
>>>     We have the libusb-1.0 branch that provides both libusb 1.0
>>>     support (interesting to test to see if the problem still
>>>     happens) along with few other improvements (though these should
>>>     not help for your issue):
>>>     https://github.com/networkupstools/nut/tree/libusb-1.0
>>>     <https://github.com/networkupstools/nut/tree/libusb-1.0>
>>
>
> argh, no improvement, but still with libusb 0.1.
> do you have libusb 1.0 -devel package installed? With that libusb1.0 
> nut branch, if both 1.0 and 0.1 are available, 1.0 will take precedence.
I just tried using libusb-1.0 instead of 0.1 (the only change I did was 
to replace libusb 0.1-devel with libusb 1.0-devel in the buildroot ) but 
it did not fly. I'll try to see what was missing and fix:

libtool: link: gcc -I../include -I/usr/include/libusb-1.0 
-DNETSNMP_ENABLE_IPV6 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux 
-I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe 
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -I/usr/include 
-I/usr/include/neon -I/usr/include/modbus -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -Wl,-z -Wl,now -Wl,-z 
-Wl,relro -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o 
snmp-ups snmp-ups.o apc-mib.o baytech-mib.o compaq-mib.o eaton-mib.o 
ietf-mib.o mge-mib.o netvision-mib.o powerware-mib.o raritan-pdu-mib.o 
bestpower-mib.o cyberpower-mib.o delta_ups-mib.o xppc-mib.o huawei-mib.o 
eaton-ats16-mib.o apc-ats-mib.o raritan-px2-mib.o eaton-ats30-mib.o 
apc-pdu-mib.o main.o dstate.o -Wl,-z -Wl,relro -Wl,-z -Wl,now  
../common/.libs/libcommon.a ../common/.libs/libparseconf.a -L/usr/lib64 
-lnetsnmp -lpthread
nutdrv_qx-nutdrv_qx.o: In function `ippon_command':
/builddir/build/BUILD/nut-libusb-1.0/drivers/nutdrv_qx.c:679: undefined 
reference to `libusb_strerror'
/builddir/build/BUILD/nut-libusb-1.0/drivers/nutdrv_qx.c:692: undefined 
reference to `libusb_strerror'
nutdrv_qx-nutdrv_qx.o: In function `fabula_command':
/builddir/build/BUILD/nut-libusb-1.0/drivers/nutdrv_qx.c:907: undefined 
reference to `libusb_strerror'
nutdrv_qx-nutdrv_qx.o: In function `krauler_command':
/builddir/build/BUILD/nut-libusb-1.0/drivers/nutdrv_qx.c:770: undefined 
reference to `libusb_strerror'
nutdrv_qx-nutdrv_qx.o: In function `sgs_command':
/builddir/build/BUILD/nut-libusb-1.0/drivers/nutdrv_qx.c:542: undefined 
reference to `libusb_strerror'
nutdrv_qx-nutdrv_qx.o:/builddir/build/BUILD/nut-libusb-1.0/drivers/nutdrv_qx.c:568: 
more undefined references to `libusb_strerror' follow
collect2: ld returned 1 exit status
make[1]: *** [nutdrv_qx] Error 1
[...]


libtool: link: gcc -I../include -I/usr/include/libusb-1.0 
-DNETSNMP_ENABLE_IPV6 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux 
-I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe 
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -I/usr/include 
-I/usr/include/neon -I/usr/include/modbus -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -Wl,-z -Wl,now -Wl,-z 
-Wl,relro -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o 
bcmxcp_usb bcmxcp_usb.o bcmxcp.o usb-common.o main.o dstate.o 
../common/.libs/libcommon.a ../common/.libs/libparseconf.a -lusb-1.0 -lm 
-lpthread
bcmxcp_usb.o: In function `nutusb_open':
/builddir/build/BUILD/nut-libusb-1.0/drivers/bcmxcp_usb.c:515: undefined 
reference to `libusb_strerror'
/builddir/build/BUILD/nut-libusb-1.0/drivers/bcmxcp_usb.c:504: undefined 
reference to `libusb_strerror'
collect2: ld returned 1 exit status
make[1]: *** [bcmxcp_usb] Error 1
libusb1.o: In function `nut_libusb_strerror':
/builddir/build/BUILD/nut-libusb-1.0/drivers/libusb1.c:484: undefined 
reference to `libusb_strerror'
/builddir/build/BUILD/nut-libusb-1.0/drivers/libusb1.c:469: undefined 
reference to `libusb_strerror'
/builddir/build/BUILD/nut-libusb-1.0/drivers/libusb1.c:479: undefined 
reference to `libusb_strerror'
libusb1.o: In function `nut_libusb_open':
/builddir/build/BUILD/nut-libusb-1.0/drivers/libusb1.c:181: undefined 
reference to `libusb_strerror'
/builddir/build/BUILD/nut-libusb-1.0/drivers/libusb1.c:282: undefined 
reference to `libusb_strerror'
libusb1.o:/builddir/build/BUILD/nut-libusb-1.0/drivers/libusb1.c:289: 
more undefined references to `libusb_strerror' follow
collect2: ld returned 1 exit status
make[1]: *** [usbhid-ups] Error 1


>
>
>         Comments on the new tree:
>     a)    there seem to be some missing files in the tree:
>     - some bits for augeas, devs and udev:
>     configure.ac:1526 <http://configure.ac:1526>: required file
>     `scripts/augeas/nutupsconf.aug.in <http://nutupsconf.aug.in>' not
>     found
>     configure.ac:1526 <http://configure.ac:1526>: required file
>     `scripts/devd/nut-usb.conf.in <http://nut-usb.conf.in>' not found
>     configure.ac:1526 <http://configure.ac:1526>: required file
>     `scripts/udev/nut-usbups.rules.in <http://nut-usbups.rules.in>'
>     not found
>
>
> when using git, you must call autogen.sh prior to calling configure...
running autogen.sh was triggered automatically. but even if I do it 
explicitly, I still get:
+ autoreconf -i
configure.ac:887: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call 
detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
/usr/share/aclocal/libtool.m4:1022: _LT_SYS_MODULE_PATH_AIX is expanded 
from...
/usr/share/aclocal/libtool.m4:4161: _LT_LINKER_SHLIBS is expanded from...
/usr/share/aclocal/libtool.m4:5236: _LT_LANG_C_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:138: _LT_SETUP is expanded from...
/usr/share/aclocal/libtool.m4:67: LT_INIT is expanded from...
/usr/share/aclocal/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
configure.ac:887: the top level

[.... looong part of output deleted...]

configure.ac:1526: required file `scripts/augeas/nutupsconf.aug.in' not 
found
configure.ac:1526: required file `scripts/devd/nut-usb.conf.in' not found
configure.ac:1526: required file `scripts/udev/nut-usbups.rules.in' not 
found
Makefile.am: installing `./INSTALL'
autoreconf: automake failed with exit status: 1
error: Bad exit status from /var/tmp/rpm-tmp.F5xT0r (%build)
     Bad exit status from /var/tmp/rpm-tmp.F5xT0r (%build)


regards,

     manuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170616/55e31779/attachment-0001.html>


More information about the Nut-upsuser mailing list