[Nut-upsuser] cannot connect to usb ups on solaris express 02/07

Zoltan Farkas zoly at daxtechnologies.com
Wed Mar 7 03:24:54 CET 2007


I cannot connect to my ups (USB tripplite 1000omniLCD):


# ./usbhid-ups -DD -u root -a z2ups
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)

debug level is '2'
Checking device (0424/2228) (/dev/usb/424.2228/0)
- VendorID: 0424
- ProductID: 2228
- Manufacturer: Generic
- Product: Flash Card Reader
- Serial Number: 26020128B005
- Bus: /dev/usb
Trying to match device
Device does not match - skipping
No appropriate HID device found
No matching HID UPS found


here is what I have in /dev/usb:

$ ls -l
total 22
drwxr-xr-x   3 root     root         512 Mar  6 19:58 424.2228
lrwxrwxrwx   1 root     root          53 Feb 23 00:23 hid0 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,3/mouse at 2:mouse
lrwxrwxrwx   1 root     root          58 Mar  5 21:17 hid1 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,1/input at 1:hid_-124_4
lrwxrwxrwx   1 root     root          42 Feb 17 11:38 hub0 -> ../../devices/pci at 0,0/pci8086,5842 at 1d:hubd
lrwxrwxrwx   1 root     root          44 Feb 17 11:38 hub1 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,1:hubd
lrwxrwxrwx   1 root     root          44 Feb 17 11:38 hub2 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,2:hubd
lrwxrwxrwx   1 root     root          44 Feb 17 11:38 hub3 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,3:hubd
lrwxrwxrwx   1 root     root          44 Feb 17 11:38 hub4 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,7:hubd
lrwxrwxrwx   1 root     root          50 Mar  6 19:58 hub5 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,7/hub at 4:hubd
lrwxrwxrwx   1 root     root          56 Mar  6 19:58 hub6 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,7/hub at 4/hub at 1:hubd
lrwxrwxrwx   1 root     root          70 Mar  6 19:58 mass-storage0 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,7/hub at 4/hub at 1/storage at 1:scsa2usb


/dev/usb/hid1 shoudl be my UPS.


Now I don't have much experience with usb on unix, any ideas on what should I do to make this work?

thanks

--zoly


-----Original Message-----
>From Zoltan Farkas <zoly at daxtechnologies.com>
Sent Tue 3/6/2007 2:06 PM
To Charles Lepple <clepple at gmail.com>
Cc nut-upsuser at lists.alioth.debian.org <nut-upsuser at lists.alioth.debian.org>
Subject RE: [Nut-upsuser] make errors on solaris express dev 02/07

This is the configure I have executed:

./configure --with-user=ups --with-group=ups

Here are the versions of the tools:

$ libtool --version
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)

$ autoconf --version
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.


$ automake --version
automake (GNU automake) 1.9.6
Written by Tom Tromey <tromey at redhat.com>.

Will try to disable Net-SNMP and HAL and see if it builds

Thanks

--zoly




-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com] 
Sent: Tuesday, March 06, 2007 1:11 PM
To: Zoltan Farkas
Cc: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] make errors on solaris express dev 02/07

On 3/6/07, Zoltan Farkas <zoly at daxtechnologies.com> wrote:
> /bin/bash ../libtool --tag=CC --mode=link gcc -I../include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/sfw/include -g -Dsolaris2 -I. -I/usr/sfw/include -O -Wall -Wsign-compare   -o snmp-ups  snmp-ups.o ../common/libcommon.a ../common/upsconf.o ../common/parseconf.o ../common/state.o main.o dstate.o -R../lib -L/usr/sfw/lib -lnetsnmp -lgen -lpkcs11 -lkstat -lelf -lm -ldl -lnsl -lsocket -ladm -lsocket -lnsl
> libtool: link: only absolute run-paths are allowed

I think libtool is objecting to the '-R../lib' part. Did you use any
relative paths in anything that you passed to configure?

You might try disabling HAL or Net-SNMP support and seeing if that goes away.

Which versions of autoconf, libtool, automake, etc. are you using?

--
- Charles Lepple


_______________________________________________
Nut-upsuser mailing list
Nut-upsuser at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser




More information about the Nut-upsuser mailing list