[Nut-upsuser] configure: error: Net-SNMP Libraries not found, required for SNMP drivers
System: * Solaris 10 1/13 (X86) in VirtualBox. OpenCSW packages installed: *gcc4core * libltdl7 * netsnmp * netsnmp_dev I'm attempting to run: ./configure --with-snmp --with-wrap --with-snmp-libs=L/opt/csw/lib l/libnetsnmp And get the following error: configure: error: Net-SNMP libraries not found, required for SNMP drivers I'm pasting the whole output below along with the contents of my /opt/csw/lib directory. Brian Jester Engility Corp. 619-553-5851 brian.jes...@engilitycorp.com bjes...@spawar.navy.mil -bash-3.2# ./configure --with-snmp --with-wrap --with-snmp-libs=L/opt/csw/lib l/libnetsnmp Network UPS Tools version 2.7.2 checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking target system type... i386-pc-solaris2.10 checking for host system name... Linux x86_64 checking for a BSD-compatible install... /opt/csw/bin/ginstall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /opt/csw/bin/gmkdir -p checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... no checking for autoconf macro to enable system extensions... yes checking for style of include used by make... none 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... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /opt/csw/bin/ggrep checking for egrep... /opt/csw/bin/ggrep -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) none checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl.exe... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking for egrep... (cached) /opt/csw/bin/ggrep -E checking for ar... no checking for ranlib... no 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... no 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... yes checking for on_exit... no 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 for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for CPPUNIT... no configure: WARNING: libcppunit not found. checking whether optind is declared... yes checking for getopt.h... yes checking for getopt_long... yes checking whether uu_lock is declared... no checking whether __func__ is declared... yes checking for library containing gethostbyname... -lnsl checking for library containing connect... -lsocket 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 library containing pthread_create... none required checking for socklen_t... yes checking for --with-all... not given checking for Net-SNMP version via net-snmp-config... 5.6.1.1 found checking for Net-SNMP cflags... -DNETSNMP_ENABLE_IPV6 -xO3 -m32
Re: [Nut-upsuser] configure: error: Net-SNMP Libraries not found, required for SNMP drivers
On Oct 9, 2014, at 4:17 PM, Brian Jester bjes...@spawar.navy.mil wrote: ./configure --with-snmp --with-wrap --with-snmp-libs=L/opt/csw/lib l/libnetsnmp Not sure if this was a copy-and-paste error, but the L and l need a hyphen before them, and the argument to -l should contain only the portion after lib and before the first dot: ./configure --with-snmp --with-wrap --with-snmp-libs=-L/opt/csw/lib -lnetsnmp If that doesn't work, can you gzip and send config.log? -- Charles Lepple clepple@gmail ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] configure: error: Net-SNMP Libraries not found, required for SNMP drivers
On Oct 9, 2014, at 5:33 PM, Brian Jester bjes...@spawar.navy.mil wrote: Charles, I re-ran, with no joy... here's my config.log. Seems to be a mismatch between the Net-SNMP package and your current compiler: configure:7857: checking for Net-SNMP version via net-snmp-config configure:7863: result: 5.6.1.1 found configure:7866: checking for Net-SNMP cflags configure:7885: result: -DNETSNMP_ENABLE_IPV6 -xO3 -m32 -xarch=pentium_pro -xchip=pentium_pro -Dsolaris2=solaris2 -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include configure:7888: checking for Net-SNMP libs configure:7907: result: -L/opt/csw/lib -lnetsnmp configure:7912: checking for net-snmp/net-snmp-config.h configure:7912: gcc -c -DNETSNMP_ENABLE_IPV6 -xO3 -m32 -xarch=pentium_pro -xchip=pentium_pro -Dsolaris2=solaris2 -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include conftest.c 5 gcc: error: language chip=pentium_pro not recognized gcc: error: language chip=pentium_pro not recognized -- Charles Lepple clepple@gmail ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] configure: error: Net-SNMP Libraries not found, required for SNMP drivers
[please keep the list CC'd, thanks] On Oct 9, 2014, at 6:41 PM, Brian Jester bjes...@spawar.navy.mil wrote: Charles, Thanks for taking a look, I think it's having trouble with the architecture pentium_pro. I'm testing in a Solaris X86 VM, but the final product will be compiled on SPARC, so it may work on that architecture, but my development and prototyping is on X86. It looks like -xchip=pentium_pro is a valid option for the sunstudio compiler, but it seems as though the rest of NUT is being built with GCC, and GCC uses a different syntax for specifying the architecture. If you get a similar error with the SPARC machine, you may want to see if you can get NUT to use the Sun compiler instead. (This is probably faster than rebuilding Net-SNMP with GCC.) -- Charles Lepple clepple@gmail ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser