[Nut-upsuser] configure with error

ramazan firin ramazan_firin at hotmail.com
Wed Apr 25 11:34:18 UTC 2012


Hello Fred,

thanks for your answer. 
i installed libusb-dev , libsnmp-dev and libneon25-dev package.
with ./configure command, usb, snmp and xml driver loaded. 
i think there is no problem.

Configuration summary:
======================
build serial drivers: yes 
build USB drivers: yes 
build SNMP drivers: yes 
build neon based XML driver: yes 
enable Avahi support: no 
build Powerman PDU client driver: no 
build IPMI driver: no 
enable SSL development code: yes 
enable libwrap (tcp-wrappers) support: yes 
enable libltdl (Libtool dlopen abstraction) support: no 
build CGI programs: no 
enable HAL support: no 
build and install documentation: no 
build and install the development files: no 
root at debian:/home/ramazan/Desktop/nut-2.6.3# 


when i run make , that is output, i think there is no problem too.

re -MT netinstcmd.o -MD -MP -MF .deps/netinstcmd.Tpo -c -o netinstcmd.o netinstcmd.c
mv -f .deps/netinstcmd.Tpo .deps/netinstcmd.Po
/bin/bash ../libtool --tag=CC   --mode=link gcc -I../include   -g -O2 -Wall -Wsign-compare   -o upsd upsd.o user.o conf.o ssl.o sstate.o desc.o netget.o netmisc.o netlist.o netuser.o netset.o netinstcmd.o ../common/libcommon.la ../common/libparseconf.la  -lnsl  -lwrap -lssl -lcrypto   -lpthread 
libtool: link: gcc -I../include -g -O2 -Wall -Wsign-compare -o upsd upsd.o user.o conf.o ssl.o sstate.o desc.o netget.o netmisc.o netlist.o netuser.o netset.o netinstcmd.o  ../common/.libs/libcommon.a ../common/.libs/libparseconf.a -lnsl -lwrap -lssl -lcrypto -lpthread
make[1]: Leaving directory `/home/ramazan/Desktop/nut-2.6.3/server'
make[1]: Entering directory `/home/ramazan/Desktop/nut-2.6.3'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/ramazan/Desktop/nut-2.6.3'
root at debian:/home/ramazan/Desktop/nut-2.6.3# 

but nut-scanner nut installed. 

i run this command:
root at debian:/home/ramazan/Desktop/nut-2.6.3/tools/nut-scanner# make nut-scanner

output:
root at debian:/home/ramazan/Desktop/nut-2.6.3/tools/nut-scanner# make nut-scanner
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include    -I../../clients -I../../include    -DNETSNMP_ENABLE_IPV6 -g -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include -D_LARGEFILE64_SOURCE -DNE_LFS -I/usr/include/neon     -g -O2 -Wall -Wsign-compare -MT libnutscan_la-scan_usb.lo -MD -MP -MF .deps/libnutscan_la-scan_usb.Tpo -c -o libnutscan_la-scan_usb.lo `test -f 'scan_usb.c' || echo './'`scan_usb.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../include -I../../clients -I../../include -DNETSNMP_ENABLE_IPV6 -g -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include -D_LARGEFILE64_SOURCE -DNE_LFS -I/usr/include/neon -g -O2 -Wall -Wsign-compare -MT libnutscan_la-scan_usb.lo -MD -MP -MF .deps/libnutscan_la-scan_usb.Tpo -c scan_usb.c  -fPIC -DPIC -o .libs/libnutscan_la-scan_usb.o
scan_usb.c:28:18: error: ltdl.h: No such file or directory
scan_usb.c:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dl_handle'
scan_usb.c: In function 'nutscan_load_usb_library':
scan_usb.c:46: error: 'dl_handle' undeclared (first use in this function)
scan_usb.c:46: error: (Each undeclared identifier is reported only once
scan_usb.c:46: error: for each function it appears in.)
scan_usb.c:55: warning: implicit declaration of function 'lt_dlinit'
scan_usb.c:60: warning: implicit declaration of function 'lt_dlopenext'
scan_usb.c:62: warning: implicit declaration of function 'lt_dlerror'
scan_usb.c:62: warning: assignment makes pointer from integer without a cast
scan_usb.c:66: warning: implicit declaration of function 'lt_dlsym'
scan_usb.c:67: warning: assignment makes pointer from integer without a cast
scan_usb.c:72: warning: assignment makes pointer from integer without a cast
scan_usb.c:77: warning: assignment makes pointer from integer without a cast
scan_usb.c:82: warning: assignment makes pointer from integer without a cast
scan_usb.c:88: warning: assignment makes pointer from integer without a cast
scan_usb.c:93: warning: assignment makes pointer from integer without a cast
scan_usb.c:98: warning: assignment makes pointer from integer without a cast
scan_usb.c:103: warning: assignment makes pointer from integer without a cast
make: *** [libnutscan_la-scan_usb.lo] Error 1
root at debian:/home/ramazan/Desktop/nut-2.6.3/tools/nut-scanner# 

i didnt find ,how can i install nut-scanner??

cheers
Ramazan




> Subject: Re: [Nut-upsuser] configure with error
> From: fredericbohe at eaton.com
> To: ramazan_firin at hotmail.com
> CC: nut-upsuser at lists.alioth.debian.org
> Date: Wed, 25 Apr 2012 09:52:04 +0200
> 
> Hello Ramazan,
> 
> On Wed, 2012-04-25 at 09:41 +0300, ramazan firin wrote:
> > Hi,
> > 
> > 
> > i am new on Linux so have some problems about installing package.
> > 
> > 
> > because of installing package is simple,i install debian ,
> > and install nut by "apt-get install nut" command. it works fine.
> > 
> > 
> > i need nut-scanner. i cant find any way to install it witt apt-get.
> > i downloaded nut-2.6.3.tar.gz to build and install nut-scanner.
> > i hope i run ./configure --with-lib command, nut-scanner can be
> > installed.
> > 
> > 
> > in nut-2.6.3 folder, 
> > 
> > 
> > run ./configure --with-all command. there are errors
> > configure: error: "USB drivers requested, but libusb not found."
> > 
> > 
> > run ./configure --with-snmp , 
> > configur e: error: "Net-SNMP libraries, but libusb not found." 
> > 
> > 
> > i try to install libusb package but there is a message package is
> > already installed..
> > 
> > 
> > how can i install nut-scanner?
> 
> You should run "./configure" without any parameter. It will use the
> available libraries.
> If you want nut-scanner to scan USB and SNMP devices, you will need
> libsnmp-dev and libusb-dev packages.
> 
> Regards,
> Fred
> 
> > 
> > 
> > cheers,
> > Ramazan
> > 
> > 
> > 
> > _______________________________________________
> > Nut-upsuser mailing list
> > Nut-upsuser at lists.alioth.debian.org
> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
> 
> -- 
> Team Open Source Eaton - http://powerquality.eaton.com
> 
> --------------------------------------------------------------------------
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120425/fe6ad94e/attachment-0001.html>


More information about the Nut-upsuser mailing list