I thought I'd be able to just copy/paste the instructions one at a time
but I hit a few snags. I installed the missing prereqs and continued on.

•[x4linux:~/nut] mmusgrove $ ./autogen.sh
bash: ./autogen.sh: No such file or directory
•[x4linux:~/nut] mmusgrove $ ls
trunk
•[x4linux:~/nut] mmusgrove $ cd trunk/
/home/mmusgrove/nut/trunk
•[x4linux:~/nut/trunk] mmusgrove $ ./autogen.sh
Regenerating Augeas ups.conf lens...
/home/mmusgrove/nut/trunk/scripts/augeas
Regenerating the USB helper files...
/home/mmusgrove/nut/trunk/tools
Calling autoreconf...
./autogen.sh: 35: autoreconf: not found
•[x4linux:~/nut/trunk] mmusgrove $ sudo apt-get install autoconf
•[x4linux:~/nut/trunk] mmusgrove $ ./autogen.sh
Calling autoreconf...
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf
line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf
line 196.
configure.in:83: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:496: error: possibly undefined macro: AC_DISABLE_STATIC
autoreconf: /usr/bin/autoconf failed with exit status: 1
•[x4linux:~/nut/trunk] mmusgrove $ sudo apt-get install libtool
•[x4linux:~/nut/trunk] mmusgrove $ ./autogen.sh
Calling autoreconf...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.in:14: installing `./missing'
clients/Makefile.am: installing `./depcomp'
•[x4linux:~/nut/trunk] mmusgrove $ ./configure --prefix=/usr \
>            --exec-prefix=/ \
>            --sysconfdir=/etc/nut \
>            --mandir=/usr/share/man \
>            --libdir=/lib \
>            --includedir=/usr/include \$ sudo
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: $
configure: WARNING: you should use --build, --host, --target
Network UPS Tools version 2.6.0
checking build system type... Invalid configuration `$': machine `$' not
recognized
configure: error: /bin/bash ./config.sub $ failed
•[x4linux:~/nut/trunk] mmusgrove $            --without-all \
>            --with-usb \
>            --enable-static \
>            --with-statepath=/var/run/nut \
>            --with-altpidpath=/var/run/nut \
>            --with-drvpath=/lib/nut \
>            --with-pidpath=/var/run/nut \
>            --datadir=/usr/share/nut \
>            --with-user=nut --with-group=nut
--without-all: command not found
•[x4linux:~/nut/trunk] mmusgrove $ ./configure --prefix=/usr \
>            --exec-prefix=/ \
>            --sysconfdir=/etc/nut \
>            --mandir=/usr/share/man \
>            --libdir=/lib \
>            --includedir=/usr/include \
>            --without-all \
>            --with-usb \
>            --enable-static \
>            --with-statepath=/var/run/nut \
>            --with-altpidpath=/var/run/nut \
>            --with-drvpath=/lib/nut \
>            --with-pidpath=/var/run/nut \
>            --datadir=/usr/share/nut \
>            --with-user=nut --with-group=nut
Network UPS Tools version 2.6.0
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for host system name... ubuntu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for autoconf macro to enable system extensions... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... (cached) /bin/grep -E
checking for ar... /usr/bin/ar
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for flexible array members... yes
checking for variable-length arrays... yes
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 seteuid... yes
checking for setsid... yes
checking for getpassphrase... no
checking for on_exit... yes
checking for strptime... yes
checking for setlogmask... yes
checking whether LOG_UPTO is declared... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for setenv... yes
checking for strerror... yes
checking for atexit... yes
checking whether optind is declared... yes
checking whether uu_lock is declared... no
checking whether __func__ is declared... yes
checking for library containing gethostbyname... none required
checking for library containing connect... none required
checking whether time.h and sys/time.h may both be included... yes
checking for sys/modem.h... no
checking for stdarg.h... yes
checking for varargs.h... no
checking for sys/termios.h... yes
checking for sys/time.h... yes
checking for socklen_t... yes
checking for --with-all... "no"
checking for Net-SNMP version via net-snmp-config... 5.4.3 found
checking for Net-SNMP cflags... -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
checking for Net-SNMP libs... -Wl,-Bsymbolic-functions -L/usr/lib -lnetsnmp
checking for net-snmp/net-snmp-config.h... no
checking for init_snmp... no
checking for libusb version via pkg-config... checking via libusb-config...
none found
checking for libusb cflags...
checking for libusb ldflags... -lusb
checking for usb.h... no
checking for usb_init... no
checking for libhal version via pkg-config (0.5.8 minimum required)... none
found
checking for libhal cflags... -DDBUS_API_SUBJECT_TO_CHANGE
-I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
checking for libhal ldflags... -lhal -ldbus-1 -lpthread
checking for libhal.h... no
checking for glib.h... no
checking for dbus/dbus-glib.h... no
checking for libhal_device_new_changeset... no
checking for libneon version via pkg-config (0.25.0 minimum required)...
none found
checking for libneon cflags...
checking for libneon ldflags...
checking for ne_xmlreq.h... no
checking for ne_xml_dispatch_request... no
checking for libpowerman cflags...
checking for libpowerman libs...
checking for libpowerman.h... no
checking for pm_connect... no
checking whether to build serial drivers... no
configure: error: "USB drivers requested, but libusb not found."
•[x4linux:~/nut/trunk] mmusgrove $ sudo apt-get install libusb-dev
•[x4linux:~/nut/trunk] mmusgrove $ ./configure --prefix=/usr \
>            --exec-prefix=/ \
>            --sysconfdir=/etc/nut \
>            --mandir=/usr/share/man \
>            --libdir=/lib \
>            --includedir=/usr/include \
>            --without-all \
>            --with-usb \
>            --enable-static \
>            --with-statepath=/var/run/nut \
>            --with-altpidpath=/var/run/nut \
>            --with-drvpath=/lib/nut \
>            --with-pidpath=/var/run/nut \
>            --datadir=/usr/share/nut \
>            --with-user=nut --with-group=nut
Network UPS Tools version 2.6.0
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for host system name... ubuntu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for autoconf macro to enable system extensions... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... (cached) /bin/grep -E
checking for ar... /usr/bin/ar
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for flexible array members... yes
checking for variable-length arrays... yes
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 seteuid... yes
checking for setsid... yes
checking for getpassphrase... no
checking for on_exit... yes
checking for strptime... yes
checking for setlogmask... yes
checking whether LOG_UPTO is declared... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for setenv... yes
checking for strerror... yes
checking for atexit... yes
checking whether optind is declared... yes
checking whether uu_lock is declared... no
checking whether __func__ is declared... yes
checking for library containing gethostbyname... none required
checking for library containing connect... none required
checking whether time.h and sys/time.h may both be included... yes
checking for sys/modem.h... no
checking for stdarg.h... yes
checking for varargs.h... no
checking for sys/termios.h... yes
checking for sys/time.h... yes
checking for socklen_t... yes
checking for --with-all... "no"
checking for Net-SNMP version via net-snmp-config... 5.4.3 found
checking for Net-SNMP cflags... -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
checking for Net-SNMP libs... -Wl,-Bsymbolic-functions -L/usr/lib -lnetsnmp
checking for net-snmp/net-snmp-config.h... no
checking for init_snmp... no
checking for libusb version via pkg-config... 0.1.12 found
checking for libusb cflags...
checking for libusb ldflags... -lusb
checking for usb.h... yes
checking for usb_init... yes
checking for usb_detach_kernel_driver_np... yes
checking for libhal version via pkg-config (0.5.8 minimum required)... none
found
checking for libhal cflags... -DDBUS_API_SUBJECT_TO_CHANGE
-I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
checking for libhal ldflags... -lhal -ldbus-1 -lpthread
checking for libhal.h... no
checking for glib.h... no
checking for dbus/dbus-glib.h... no
checking for libhal_device_new_changeset... no
checking for libneon version via pkg-config (0.25.0 minimum required)...
none found
checking for libneon cflags...
checking for libneon ldflags...
checking for ne_xmlreq.h... no
checking for ne_xml_dispatch_request... no
checking for libpowerman cflags...
checking for libpowerman libs...
checking for libpowerman.h... no
checking for pm_connect... no
checking whether to build serial drivers... no
checking whether to build USB drivers... yes
checking whether to build SNMP drivers... no
checking whether to build neon based XML driver... no
checking whether to build Powerman PDU client driver... no
checking for openssl version via pkg-config... 0.9.8o found
checking for openssl cflags...
checking for openssl ldflags... -lssl -lcrypto
checking for openssl/ssl.h... yes
checking for SSL_library_init... yes
checking whether to enable SSL development code... yes
checking for tcpd.h... no
checking for library containing yp_get_default_domain... -lnsl
checking for library containing request_init... no
checking whether to enable libwrap (tcp-wrappers) support... no
checking whether to build CGI programs... no
checking whether to enable HAL support... no
checking for asciidoc... no
checking for a2x... no
checking for dblatex... no
checking if asciidoc version can build website (minimum required 8.6.3)...
no
checking if a2x version can build website (minimum required 8.6.3)... no
checking whether to build and install documentation... no
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... /usr/bin/ar
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether to build and install the development files... no
checking state path... /var/run/nut
checking alt pid path... /var/run/nut
checking driver path... /lib/nut
checking cgi path... ${exec_prefix}/cgi-bin
checking html path... ${prefix}/html
checking pidpath... /var/run/nut
checking network port number... 3493
checking user to run as... nut
checking group membership of user to run as... nut
checking facility for syslog... LOG_DAEMON
checking which drivers to build... all available
checking which driver man pages to install... all available
checking whether to strip debug symbols... no
checking whether to install pkg-config *.pc files... using
${libdir}/pkgconfig
checking whether to install hotplug rules... no
checking whether to install udev rules... using /lib/udev
checking for asciidoc... no
checking for a2x... no
configure: creating ./config.status
config.status: creating clients/Makefile
config.status: creating common/Makefile
config.status: creating conf/Makefile
config.status: creating conf/upssched.conf.sample
config.status: creating data/html/header.html
config.status: creating data/html/Makefile
config.status: creating data/Makefile
config.status: creating data/driver.list
config.status: creating docs/Makefile
config.status: creating docs/man/Makefile
config.status: creating docs/website/Makefile
config.status: creating drivers/Makefile
config.status: creating include/Makefile
config.status: creating lib/libupsclient-config
config.status: creating lib/libupsclient.pc
config.status: creating lib/Makefile
config.status: creating scripts/augeas/Makefile
config.status: creating scripts/augeas/nutnutconf.aug
config.status: creating scripts/augeas/nutupsconf.aug
config.status: creating scripts/augeas/nutupsdconf.aug
config.status: creating scripts/augeas/nutupsdusers.aug
config.status: creating scripts/augeas/nutupsmonconf.aug
config.status: creating scripts/augeas/nutupsschedconf.aug
config.status: creating scripts/augeas/nuthostsconf.aug
config.status: creating scripts/augeas/nutupssetconf.aug
config.status: creating scripts/hal/Makefile
config.status: creating scripts/hal/ups-nut-device.fdi
config.status: creating scripts/hotplug/Makefile
config.status: creating scripts/hotplug/libhidups
config.status: creating scripts/python/Makefile
config.status: creating scripts/udev/Makefile
config.status: creating scripts/udev/nut-usbups.rules
config.status: creating scripts/Makefile
config.status: creating server/Makefile
config.status: creating tools/Makefile
config.status: creating Makefile
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

Configuration summary:
======================
build serial drivers: no
build USB drivers: yes
build SNMP drivers: no
build neon based XML driver: no
build Powerman PDU client driver: no
enable SSL development code: yes
enable libwrap (tcp-wrappers) support: no
build CGI programs: no
enable HAL support: no
build and install documentation: no
build and install the development files: no
•[x4linux:~/nut/trunk] mmusgrove $ make
•[x4linux:~/nut/trunk] mmusgrove $ sudo ./drivers/usbhid-ups -u root -DDDD
-a cyberpower 2>&1 | tee /tmp/usbhid-ups.txt

Matt


On Thu, May 12, 2011 at 2:17 PM, Arnaud Quette <aquette....@gmail.com>wrote:

> 2011/5/11 Mr. Muskrat <779...@bugs.launchpad.net>
>
> > Certainly!
> >
>
> excellent, here we go:
>
> $  svn co svn://svn.debian.org/nut/trunk
> $ ./autogen.sh
> $ ./configure --prefix=/usr \
>            --exec-prefix=/ \
>            --sysconfdir=/etc/nut \
>            --mandir=/usr/share/man \
>            --libdir=/lib \
>            --includedir=/usr/include \$ sudo
>            --without-all \
>            --with-usb \
>            --enable-static \
>            --with-statepath=/var/run/nut \
>            --with-altpidpath=/var/run/nut \
>            --with-drvpath=/lib/nut \
>            --with-pidpath=/var/run/nut \
>            --datadir=/usr/share/nut \
>            --with-user=nut --with-group=nut
>
> $ sudo ./drivers/usbhid-ups -u root -DDDD -a cyberpower
>
> @Fred: can you please do the same with Troy, and send (only to) me the
> output.
>
> We should have sufficient validation with that.
> Note that a 2 mn run is sufficient...
>
> cheers,
> Arnaud
> --
> Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
> Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
> Debian Developer - http://www.debian.org
> Free Software Developer - http://arnaud.quette.free.fr/
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/779512
>
> Title:
>  nut-2.6.0-1ubuntu3 behavior regression
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/nut/+bug/779512/+subscribe
>


** Attachment added: "usbhid-ups.txt"
   
https://bugs.launchpad.net/bugs/779512/+attachment/2127332/+files/usbhid-ups.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/779512

Title:
  nut-2.6.0-1ubuntu3 behavior regression

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to