[AGENT++] Compilation Issues

Crast, Nicholas Nicholas.Crast at saabsensis.com
Fri Jan 15 22:17:29 CET 2016


Here is a console dump:

[sensis at sensis-90037 Downloads]$ 
[sensis at sensis-90037 Downloads]$ 
[sensis at sensis-90037 Downloads]$ autoreconf --version
autoreconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
[sensis at sensis-90037 Downloads]$ 
[sensis at sensis-90037 Downloads]$ pwd
/home/sensis/Downloads
[sensis at sensis-90037 Downloads]$ tar -xf snmp++-3.3.5.tar.gz 
[sensis at sensis-90037 Downloads]$ cd snmp++-3.3.5
[sensis at sensis-90037 snmp++-3.3.5]$ autoreconf -i
libtoolize: `build-aux/ltmain.sh' is newer: use `--force' to overwrite
libtoolize: `m4/libtool.m4' is newer: use `--force' to overwrite
libtoolize: `m4/ltoptions.m4' is newer: use `--force' to overwrite
libtoolize: `m4/ltversion.m4' is newer: use `--force' to overwrite
libtoolize: `m4/lt~obsolete.m4' is newer: use `--force' to overwrite
[sensis at sensis-90037 snmp++-3.3.5]$ ./configure --prefix=/home/sensis/Downloads/snmp_installed
.
.
.
[sensis at sensis-90037 snmp++-3.3.5]$ make
.
.
.
[sensis at sensis-90037 snmp++-3.3.5]$ make install
Making install in include
make[1]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5/include'
Making install in snmp_pp
make[2]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5/include/snmp_pp'
make[3]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5/include/snmp_pp'
make  install-exec-hook
make[4]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5/include/snmp_pp'
/bin/sh /home/sensis/Downloads/snmp++-3.3.5/build-aux/install-sh -d /home/sensis/Downloads/snmp_installed/include/snmp_pp
make[4]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5/include/snmp_pp'
test -z "/home/sensis/Downloads/snmp_installed/include/snmp_pp" || /bin/mkdir -p "/home/sensis/Downloads/snmp_installed/include/snmp_pp"
 /usr/bin/install -c -m 644 address.h asn1.h auth_priv.h collect.h config_snmp_pp.h counter.h ctr64.h eventlist.h eventlistholder.h gauge.h idea.h integer.h IPv6Utility.h log.h Makefile.am md5.h mp_v3.h msec.h msgqueue.h notifyqueue.h octet.h oid_def.h oid.h pdu.h reentrant.h sha.h smi.h smival.h snmperrs.h snmpmsg.h snmp_pp.h target.h timetick.h usm_v3.h uxsnmp.h v3.h vb.h '/home/sensis/Downloads/snmp_installed/include/snmp_pp'
make[3]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5/include/snmp_pp'
make[2]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5/include/snmp_pp'
make[2]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5/include'
make[3]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5/include'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5/include'
make[2]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5/include'
make[1]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5/include'
Making install in src
make[1]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5/src'
make[2]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5/src'
test -z "/home/sensis/Downloads/snmp_installed/lib" || /bin/mkdir -p "/home/sensis/Downloads/snmp_installed/lib"
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libsnmp++.la '/home/sensis/Downloads/snmp_installed/lib'
libtool: install: /usr/bin/install -c .libs/libsnmp++.so.33.0.5 /home/sensis/Downloads/snmp_installed/lib/libsnmp++.so.33.0.5
libtool: install: (cd /home/sensis/Downloads/snmp_installed/lib && { ln -s -f libsnmp++.so.33.0.5 libsnmp++.so.33 || { rm -f libsnmp++.so.33 && ln -s libsnmp++.so.33.0.5 libsnmp++.so.33; }; })
libtool: install: (cd /home/sensis/Downloads/snmp_installed/lib && { ln -s -f libsnmp++.so.33.0.5 libsnmp++.so || { rm -f libsnmp++.so && ln -s libsnmp++.so.33.0.5 libsnmp++.so; }; })
libtool: install: /usr/bin/install -c .libs/libsnmp++.lai /home/sensis/Downloads/snmp_installed/lib/libsnmp++.la
libtool: install: /usr/bin/install -c .libs/libsnmp++.a /home/sensis/Downloads/snmp_installed/lib/libsnmp++.a
libtool: install: chmod 644 /home/sensis/Downloads/snmp_installed/lib/libsnmp++.a
libtool: install: ranlib /home/sensis/Downloads/snmp_installed/lib/libsnmp++.a
libtool: finish: PATH="/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/sensis/projects/sr3/3_Implementation/4_Transceiver/3_SW/linux/toolchain-mmu/x86-linux2/bin:/home/sensis/sonar-runner-2.3/bin:/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi:/home/sensis/bin:/home/sensis/projects/sr3/3_Implementation/4_Transceiver/3_SW/linux/toolchain-mmu/x86-linux2/bin:/home/sensis/sonar-runner-2.3/bin:/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi:/sbin" ldconfig -n /home/sensis/Downloads/snmp_installed/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /home/sensis/Downloads/snmp_installed/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5/src'
make[1]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5/src'
Making install in consoleExamples
make[1]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5/consoleExamples'
make[2]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5/consoleExamples'
test -z "/home/sensis/Downloads/snmp_installed/bin" || /bin/mkdir -p "/home/sensis/Downloads/snmp_installed/bin"
  /bin/sh ../libtool   --mode=install /usr/bin/install -c snmpGet snmpSet snmpNext snmpNextAsync snmpWalk snmpBulk snmpTraps receive_trap snmpInform snmpPasswd snmpWalkThreads snmpDiscover '/home/sensis/Downloads/snmp_installed/bin'
libtool: install: /usr/bin/install -c .libs/snmpGet /home/sensis/Downloads/snmp_installed/bin/snmpGet
libtool: install: /usr/bin/install -c .libs/snmpSet /home/sensis/Downloads/snmp_installed/bin/snmpSet
libtool: install: /usr/bin/install -c .libs/snmpNext /home/sensis/Downloads/snmp_installed/bin/snmpNext
libtool: install: /usr/bin/install -c .libs/snmpNextAsync /home/sensis/Downloads/snmp_installed/bin/snmpNextAsync
libtool: install: /usr/bin/install -c .libs/snmpWalk /home/sensis/Downloads/snmp_installed/bin/snmpWalk
libtool: install: /usr/bin/install -c .libs/snmpBulk /home/sensis/Downloads/snmp_installed/bin/snmpBulk
libtool: install: /usr/bin/install -c .libs/snmpTraps /home/sensis/Downloads/snmp_installed/bin/snmpTraps
libtool: install: /usr/bin/install -c .libs/receive_trap /home/sensis/Downloads/snmp_installed/bin/receive_trap
libtool: install: /usr/bin/install -c .libs/snmpInform /home/sensis/Downloads/snmp_installed/bin/snmpInform
libtool: install: /usr/bin/install -c .libs/snmpPasswd /home/sensis/Downloads/snmp_installed/bin/snmpPasswd
libtool: install: /usr/bin/install -c .libs/snmpWalkThreads /home/sensis/Downloads/snmp_installed/bin/snmpWalkThreads
libtool: install: /usr/bin/install -c .libs/snmpDiscover /home/sensis/Downloads/snmp_installed/bin/snmpDiscover
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5/consoleExamples'
make[1]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5/consoleExamples'
make[1]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5'
make[2]: Entering directory `/home/sensis/Downloads/snmp++-3.3.5'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/home/sensis/Downloads/snmp_installed/include" || /bin/mkdir -p "/home/sensis/Downloads/snmp_installed/include"
 /usr/bin/install -c -m 644 libsnmp.h '/home/sensis/Downloads/snmp_installed/include'
test -z "/home/sensis/Downloads/snmp_installed/lib/pkgconfig" || /bin/mkdir -p "/home/sensis/Downloads/snmp_installed/lib/pkgconfig"
 /usr/bin/install -c -m 644 snmp++-3.pc '/home/sensis/Downloads/snmp_installed/lib/pkgconfig'
make[2]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5'
make[1]: Leaving directory `/home/sensis/Downloads/snmp++-3.3.5'
[sensis at sensis-90037 snmp++-3.3.5]$ cd ..
[sensis at sensis-90037 Downloads]$ rm -rf snmp++-3.3.5
[sensis at sensis-90037 Downloads]$ tar -xf agent++-4.0.4.tar.gz 
[sensis at sensis-90037 Downloads]$ cd agent++-4.0.4
[sensis at sensis-90037 agent++-4.0.4]$ autoreconf -i
libtoolize: `build-aux/ltmain.sh' is newer: use `--force' to overwrite
libtoolize: `m4/libtool.m4' is newer: use `--force' to overwrite
libtoolize: `m4/ltoptions.m4' is newer: use `--force' to overwrite
libtoolize: `m4/ltversion.m4' is newer: use `--force' to overwrite
libtoolize: `m4/lt~obsolete.m4' is newer: use `--force' to overwrite
[sensis at sensis-90037 agent++-4.0.4]$ ./configure --prefix=/home/sensis/Downloads/snmp_installed/
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 whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gawk... (cached) gawk
checking for grep that handles long lines and -e... /bin/grep
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether the compiler implements namespaces... yes
checking if g++ supports namespace std... yes
checking whether the compiler supports Standard Template Library... yes
checking whether the compiler supports ISO C++ standard library... yes
checking whether the compiler supports basic templates... yes
checking for ISO C++ 98 include files... yes
checking for ISO C++ TR1 include files... yes
checking if g++ supports C++0x features without additional flags... no
checking if g++ supports C++0x features with -std=c++0x... yes
checking if g++ supports C++0x features with -std=gnu++0x... yes
checking if g++ supports C++0x features without additional flags... no
checking if g++ supports C++0x features with -std=c++0x... yes
checking if g++ supports C++0x features with -std=gnu++0x... yes
checking for ISO C++ 0x include files... no
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 whether _AIX is declared... no
checking whether __linux is declared... yes
checking whether __sun is declared... no
checking which _XOPEN_SOURCE macro must be defined... -D_XOPEN_SOURCE=XPG6
checking if libsnmp++ is wanted... yes
checking if libsnmp++ wants a prefix... no
checking for library containing gethostent... none required
checking for library containing setsockopt... none required
checking for library containing connect... none required
checking for library containing clock_gettime... -lrt
checking whether compiling for native Win32... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for library containing nanosleep... none required
checking for type of (pthread_t)... long
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking sys/unistd.h usability... yes
checking sys/unistd.h presence... yes
checking for sys/unistd.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking whether compiling for native Win32... (cached) no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for uid_t in sys/types.h... yes
checking whether the compiler recognizes bool as a built-in type... yes
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking how to run the C++ preprocessor... g++ -E
checking if libsnmp++ is wanted... (cached) yes
checking if libsnmp++ wants a prefix... (cached) no
checking for snmp... no
checking if libsnmp++ is in /home/sensis/Downloads/snmp_installed... no
checking if libsnmp++ is in /usr/local... no
checking if libsnmp++ is in /usr... no
configure: error: Cannot find suitable libsnmp++ library


Also tried using --with-libsnmp-prefix, and that didn't work either.

-Nick
----------------------------------------
Nick Crast
Software Engineer
Saab Sensis Corporation
Phone: 315-445-5703
Email: Nicholas.Crast at saabsensis.com


-----Original Message-----
From: AGENTPP [mailto:agentpp-bounces at agentpp.org] On Behalf Of Jochen Katz
Sent: Friday, January 15, 2016 3:06 PM
To: agentpp at agentpp.org
Subject: Re: [AGENT++] Compilation Issues

Hi,

> However, when I try to configure Agent++, I get the error:
> checking if libsnmp++ is wanted... (cached) yes checking if libsnmp++ 
> wants a prefix... (cached) no checking for snmp... no checking if 
> libsnmp++ is in /usr/local... no checking if libsnmp++ is in /usr... 
> no
> configure: error: Cannot find suitable libsnmp++ library

could you please send us the full command lines that you are using? For me the following works without problems ("autoconf (GNU Autoconf) 2.69")

cd /tmp
mkdir DEL
cd DEL
tar -xf /tmp/snmp++-3.3.5.tar.gz
cd snmp++-3.3.5/
autoreconf -i
./configure --help
./configure --prefix=/tmp/XX/YY
make -j
make install
cd ..
rm -rf snmp++-3.3.5/
tar -xf /tmp/agent++-4.0.4.tar.gz
cd agent++-4.0.4/
autoreconf -i
./configure --prefix=/tmp/XX/YY
make -j 8

Regards,
  Jochen

_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
https://oosnmp.net/mailman/listinfo/agentpp
-
This message is intended only for the addressee and may contain information that is company confidential or privileged.  Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately. 
-          


More information about the AGENTPP mailing list