UPS PowerWare 9110

Jaroslav Ille jarda na vetrni.net
Pátek Duben 23 17:19:52 CEST 2004


Ahoj,
Zkusím to ještě jednou, opravdu se zde nenajde nikdo kdo by měl stejnou UPS?

-------------
sehnal jsem tuto UPS ale bohužel se mi nedaří rozchodit komunikaci s ní.
Potíž je v tom že nativní SW je kompilován se starými knihovnami a gcc 2.9x
a můj MDK 10 je kompilován gc 3.2. Dostanu tedy pouze segmentation fault.
Zkoušel jsem NUT ale zase nic - vygogloval jsem že UPS používá nějaký
exotický protokol který sice existuje v betě pro NUTa ale pro změnu mi
nejde přeložit jak s verzí 1.4 tak i 2.0. Chybí mi v incudu nějaké soubory
(main.c ....) Bohužel jsem se nodopátral kde je vzít. Zdroják od jádra,
devel balíčky céčka a knihoven mám nainstalované. Přikládám výsledek
configure a make. Poradíte někdo?

Dík Jarda
------------- další část ---------------
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for egrep... grep -E
checking for ar... /usr/bin/ar
checking for ranlib... ranlib
checking for inline... inline
checking for flock... yes
checking for lockf... yes
checking for fcvt... yes
checking for fcvtl... no
checking for cfsetispeed... yes
checking for tcsendbreak... yes
checking for cfmakeraw... yes
checking for seteuid... yes
checking for setsid... yes
checking for getpassphrase... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for setenv... yes
checking for inet_aton... yes
checking for strerror... yes
checking for strlcpy... no
checking for atexit... yes
checking whether byte ordering is bigendian... no
checking for getopt declarations... in unistd.h
checking whether to use uu_lock... no
checking for connect... yes
checking sys/modem.h usability... no
checking sys/modem.h presence... no
checking for sys/modem.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking varargs.h usability... yes
checking varargs.h presence... yes
checking for varargs.h... yes
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for socklen_t... yes
checking whether to enable SSL development code... no
checking for gd version via gdlib-config... not found
checking for gd include flags... using defaults
checking for gd library flags... using defaults
checking whether to build CGI programs... no
checking for Net-SNMP cflags... not found
checking for Net-SNMP libs... not found
checking for libusb cflags... not found
checking for libusb libs... not found
checking for Linux hiddev.h... using default: /usr/src/linux/include/linux
checking state path... using default: /var/state/ups
checking alt pid path... using default: /var/state/ups
checking driver path... using default
checking cgi path... using default
checking pidpath... using default: /var/run
checking network port number... using default value: 3493
checking user to run as... using default: nobody
checking facility for syslog... using default value: LOG_DAEMON
checking which drivers to build... all
checking whether to strip debug symbols... no
checking for long long... yes
configure: creating ./config.status
config.status: creating clients/Makefile
config.status: creating conf/Makefile
config.status: creating data/Makefile
config.status: creating drivers/Makefile
config.status: creating server/Makefile
config.status: creating Makefile
config.status: creating common/Makefile
config.status: creating man/Makefile
config.status: creating scripts/hotplug/libhidups
config.status: creating include/config.h
config.status: include/config.h is unchanged
------------- další část ---------------
common/
make[1]: Entering directory `/usr/src/nut-1.4.2/common'
gcc -I../include -O -Wall   -c -o common.o common.c
gcc -I../include -O -Wall   -c -o strlcpy.o strlcpy.c
gcc -I../include -O -Wall   -c -o upsconf.o upsconf.c
gcc -I../include -O -Wall   -c -o parseconf.o parseconf.c
gcc -I../include -O -Wall   -c -o state.o state.c
make[1]: Leaving directory `/usr/src/nut-1.4.2/common'
drivers/
make[1]: Entering directory `/usr/src/nut-1.4.2/drivers'
gcc -I../include -O -Wall   -c -o bestups.o bestups.c
gcc -I../include -O -Wall   -c -o main.o main.c
gcc -I../include -O -Wall -c upscommon.c
gcc -I../include -O -Wall   -c -o dstate.o dstate.c
gcc -I../include -O -Wall -o bestups bestups.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o fentonups.o fentonups.c
gcc -I../include -O -Wall -o fentonups fentonups.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o sec.o sec.c
gcc -I../include -O -Wall -o sec sec.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o apcsmart.o apcsmart.c
gcc -I../include -O -Wall -o apcsmart apcsmart.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o everups.o everups.c
gcc -I../include -O -Wall -o everups everups.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o belkin.o belkin.c
gcc -I../include -O -Wall -o belkin belkin.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o newapc.o newapc.c
gcc -I../include -O -Wall -o newapc newapc.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o masterguard.o masterguard.c
gcc -I../include -O -Wall -o masterguard masterguard.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o powercom.o powercom.c
gcc -I../include -O -Wall -o powercom powercom.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o cyberpower.o cyberpower.c
gcc -I../include -O -Wall -o cyberpower cyberpower.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o tripplite.o tripplite.c
gcc -I../include -O -Wall -o tripplite tripplite.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o victronups.o victronups.c
gcc -I../include -O -Wall -o victronups victronups.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o ferrups.o ferrups.c
gcc -I../include -O -Wall -o ferrups ferrups.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o genericups.o genericups.c
gcc -I../include -O -Wall -o genericups genericups.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o hp.o hp.c
gcc -I../include -O -Wall -o hp hp.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o bcmxcp.o bcmxcp.c
gcc -I../include -O -Wall -o bcmxcp bcmxcp.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o mge-utalk.o mge-utalk.c
gcc -I../include -O -Wall -o mge-utalk mge-utalk.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o bestuferrups.o bestuferrups.c
gcc -I../include -O -Wall -o bestuferrups bestuferrups.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o microdowell.o microdowell.c
gcc -I../include -O -Wall -o microdowell microdowell.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o isbmex.o isbmex.c
gcc -I../include -O -Wall -o isbmex isbmex.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o -lm
gcc -I../include -O -Wall   -c -o etapro.o etapro.c
gcc -I../include -O -Wall -o etapro etapro.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o oneac.o oneac.c
gcc -I../include -O -Wall -o oneac oneac.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o bestfortress.o bestfortress.c
gcc -I../include -O -Wall -o bestfortress bestfortress.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o liebert.o liebert.c
gcc -I../include -O -Wall -o liebert liebert.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o sms.o sms.c
gcc -I../include -O -Wall -o sms sms.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o esupssmart.o esupssmart.c
gcc -I../include -O -Wall -o esupssmart esupssmart.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o tripplitesu.o tripplitesu.c
gcc -I../include -O -Wall -o tripplitesu tripplitesu.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o blazer.o blazer.c
gcc -I../include -O -Wall -o blazer blazer.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o safenet.o safenet.c
gcc -I../include -O -Wall -o safenet safenet.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
gcc -I../include -O -Wall   -c -o upscode2.o upscode2.c
gcc -I../include -O -Wall -o upscode2 upscode2.o main.o upscommon.o dstate.o ../common/state.o ../common/upsconf.o ../common/parseconf.o ../common/common.o   ../common/strlcpy.o 
make[1]: Leaving directory `/usr/src/nut-1.4.2/drivers'
make[1]: Entering directory `/usr/src/nut-1.4.2/common'
rm -f *~ *.o
make[1]: Leaving directory `/usr/src/nut-1.4.2/common'
make[1]: Entering directory `/usr/src/nut-1.4.2/drivers'
rm -f *~ *.o bestups fentonups sec apcsmart everups belkin newapc masterguard powercom cyberpower tripplite victronups ferrups genericups hp bcmxcp mge-utalk bestuferrups microdowell isbmex etapro oneac bestfortress liebert sms esupssmart tripplitesu blazer safenet upscode2 Makefile.drvbuild
rm -f dummycons powernet snmp-ups energizerups hidups mge-shut upsdrvctl
./gendb bestups fentonups sec apcsmart everups belkin newapc masterguard powercom cyberpower tripplite victronups ferrups genericups hp bcmxcp mge-utalk bestuferrups microdowell isbmex etapro oneac bestfortress liebert sms esupssmart tripplitesu blazer safenet upscode2
make[1]: Leaving directory `/usr/src/nut-1.4.2/drivers'
make[1]: Entering directory `/usr/src/nut-1.4.2/server'
rm -f *~ *.o upsd sockdebug
make[1]: Leaving directory `/usr/src/nut-1.4.2/server'
make[1]: Entering directory `/usr/src/nut-1.4.2/clients'
rm -f *~ *.o upsc upslog upsrw upscmd upsmon upssched upsstats.cgi upsimage.cgi upsset.cgi
make[1]: Leaving directory `/usr/src/nut-1.4.2/clients'
[root na server nut-1.4.2]# make > make.log
upscode2.c: In function `upsdrv_initinfo':
upscode2.c:50: warning: implicit declaration of function `writeinfo'
upscode2.o(.text+0xe1): In function `upsdrv_initinfo':
: undefined reference to `writeinfo'
upscode2.o(.text+0x6ec): In function `upsdrv_updateinfo':
: undefined reference to `writeinfo'
main.o(.text+0x99d): In function `main':
: undefined reference to `upsdrv_cleanup'
collect2: ld returned 1 exit status
make[1]: *** [upscode2] Error 1
make: *** [build] Error 1


Další informace o konferenci Linux