[Nut-upsdev] Compiling SVN build.. error for libupsclient

Edwin Chiu edwin at thetomatoe.com
Tue Mar 6 02:27:16 CET 2007


Hi,

Below is a log of what I did.

In summary, I think the problem lies in that I can't build libupsclient:
e.g.
  make[1]: *** No rule to make target `libupsclient.la', needed by
`upsc'.  Stop.

I'm not very familiar with autoconf, aclocal, automake, I tried hacking
it a bit, but couldn't get it to fix the errors...

Thanks,
Edwin

$ svn update
At revision 845.

$ autoreconf
configure.in: 10: `automake requires `AM_CONFIG_HEADER', not
`AC_CONFIG_HEADER'
automake: configure.in: required file `./mkinstalldirs' not found
clients/Makefile.am:10: invalid variable `dist_bin_SCRIPTS'
clients/Makefile.am:10: invalid variable `dist_bin_SCRIPTS'
clients/Makefile.am:29: invalid unused variable name: `upsimage_cgi_SOURCES'
clients/Makefile.am:32: invalid unused variable name: `upsset_cgi_SOURCES'
clients/Makefile.am:30: invalid unused variable name: `upsimage_cgi_LDADD'
clients/Makefile.am:38: invalid unused variable name:
`libupsclient_la_LIBADD'
clients/Makefile.am:37: invalid unused variable name:
`libupsclient_la_SOURCES'
clients/Makefile.am:39: invalid unused variable name:
`libupsclient_la_LDFLAGS'
clients/Makefile.am:33: invalid unused variable name: `upsstats_cgi_SOURCES'
common/Makefile.am:7: variable `LIBOBJS' not defined
common/Makefile.am:7: variable `ALLOCA' not defined
conf/Makefile.am:16: invalid variable `dist_sysconf_DATA'
data/Makefile.am:5: invalid variable `dist_data_DATA'
drivers/Makefile.am:161: invalid variable `dist_noinst_HEADERS'
drivers/Makefile.am:146: invalid unused variable name:
`hald_addon_usbhid_ups_SOURCES'
drivers/Makefile.am:153: invalid unused variable name:
`hald_addon_bcmxcp_usb_SOURCES'
drivers/Makefile.am:154: invalid unused variable name:
`hald_addon_bcmxcp_usb_LDADD'
drivers/Makefile.am:148: invalid unused variable name:
`hald_addon_usbhid_ups_LDADD'
drivers/Makefile.am:151: invalid unused variable name:
`hald_addon_tripplite_usb_LDADD'
drivers/Makefile.am:150: invalid unused variable name:
`hald_addon_tripplite_usb_SOURCES'
autoreconf: automake failed with exit status: 1

$ ./configure; make
Network UPS Tools version 2.1.0
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 a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking for C compiler default output file name... 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 a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... /usr/bin/ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) 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
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
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 seteuid... yes
checking for setsid... yes
checking for getpassphrase... no
checking for on_exit... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for setenv... yes
checking for inet_aton... yes
checking for strerror... yes
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 for stdint.h... (cached) yes
checking for uint16_t... yes
checking for stdint.h... (cached) yes
checking for uint8_t... yes
checking for --with-all... not given
checking for Net-SNMP cflags... -DINET6 -O2 -D_REENTRANT -Dlinux -I.
-I/usr/include
checking for Net-SNMP libs... -L/usr/lib -lnetsnmp -lm -lwrap
checking for libusb cflags...
checking for libusb libs... -L/usr/lib -lusb
checking for libhal cflags via pkg-config... ./configure: line 1:
pkg-config: command not found
not found
checking for libhal ldflags via pkg-config... ./configure: line 1:
pkg-config: command not found
not found
checking libhal.h usability... no
checking libhal.h presence... no
checking for libhal.h... no
checking for libhal_ctx_init in -lhal... no
checking for usb_detach_kernel_driver_np in -lusb... yes
checking for Linux hiddev.h... /usr/include/linux/hiddev.h
checking for SSL library availability... yes
checking whether to enable SSL development code... yes
checking for getaddrinfo... yes
checking for freeaddrinfo... yes
checking for struct addrinfo... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_in6... yes
checking for struct in6_addr... yes
checking for IN6_IS_ADDR_V4MAPPED... yes
checking whether to enable IPv6 support... yes
checking whether to build CGI programs... no
checking whether to build upsclient library... no
checking whether to build serial drivers... yes
checking whether to build SNMP drivers... yes
checking whether to build USB drivers... yes
checking whether to enable HAL support... no
checking state path... /var/state/ups
checking alt pid path... /var/state/ups
checking driver path... ${exec_prefix}/bin
checking cgi path... ${exec_prefix}/cgi-bin
checking html path... ${prefix}/html
checking pidpath... /var/run
checking network port number... 3493
checking user to run as... nobody
checking group membership of user to run as... nobody
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 enable pkg-config support... using /usr/lib/pkgconfig
checking whether to install hotplug rules... no
checking whether to install udev rules... no
checking for long long... yes
configure: creating ./config.status
config.status: creating clients/Makefile
config.status: creating common/Makefile
config.status: creating conf/Makefile
config.status: creating data/html/header.html
config.status: creating data/html/Makefile
config.status: creating data/Makefile
config.status: creating docs/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 man/Makefile
config.status: creating packaging/Makefile
config.status: creating packaging/debian/Makefile
config.status: creating packaging/mandriva/Makefile
config.status: creating packaging/RedHat/Makefile
config.status: creating packaging/RedHat/nut.spec
config.status: creating scripts/hotplug/Makefile
config.status: creating scripts/hotplug/libhidups
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 Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged

Configuration summary:
enable SSL development code: yes
enable IPv6 support: yes
build CGI programs: no
build upsclient library: no
build serial drivers: yes
build SNMP drivers: yes
build USB drivers: yes
enable HAL support: no
Making all in common
make[1]: Entering directory `/usr/src/utils/nut-trunk/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/utils/nut-trunk/common'
Making all in clients
make[1]: Entering directory `/usr/src/utils/nut-trunk/clients'
make[1]: *** No rule to make target `libupsclient.la', needed by
`upsc'.  Stop.
make[1]: Leaving directory `/usr/src/utils/nut-trunk/clients'
make: *** [all-recursive] Error 1




More information about the Nut-upsdev mailing list