[AGENT++] build agent++V4.0 with autoconf tools fails on MAC OSX 10.6.8

Frank Fock fock at agentpp.com
Mon Jun 24 18:17:47 CEST 2013


Hi Claus,

The with-agenpro option will only work, if there is some generated
code in the template directory. As the templates for that are still
not-ready, this cannot work at the moment.

Best regards,
Frank


Am 23.06.2013 19:46, schrieb Claus Klein:
> Hi Frank,
>
> this was still a Problem with libsnmp++:
>
> Claus-Kleins-MacBook-Pro:snmp++ clausklein$ git diff 
> include/snmp_pp/config_snmp_pp.h.in
> diff --git a/snmp++/include/snmp_pp/config_snmp_pp.h.in 
> b/snmp++/include/snmp_pp/config_snmp_pp.h.in
> index 46ec627..341ad5f 100644
> --- a/snmp++/include/snmp_pp/config_snmp_pp.h.in
> +++ b/snmp++/include/snmp_pp/config_snmp_pp.h.in
> @@ -94,15 +94,15 @@
>  #if defined(_SNMPv3) || !defined(_NO_SNMPv3)
>  #  if defined(HAVE_LIBSSL)
> -#    define _USE_OPENSSL
> +#    define _USE_OPENSSL 1
>  #  elif defined(HAVE_LIBTOMCRYPT)
>  #    define _USE_LIBTOMCRYPT
>  #  elif HAVE_LIBDES
> -#    define _USE_3DES_EDE
> +#    define _USE_3DES_EDE 1
>  #  else
> -#    warn No crypto library found - disable SNMPv3
> +#    warning No crypto library found - disable SNMPv3
>  #    undef _SNMPv3
> -#    define _NO_SNMPv3
> +#    define _NO_SNMPv3 1
>  #  endif
>  #endif
> Claus-Kleins-MacBook-Pro:snmp++ clausklein$
>
>
> "make distcheck" works only if snmp++ was installed before.
> That make bootstrap not easy :-(
>
>
> I have too a lot of problems with agent++ build:
>
> here is my bootstrap script:
> ###################
> #!/bin/sh
>
> PROJECT_DIR=${PWD}
>
> set -e  # exit on error
> set -u  # undefined var is error
> set -x  # be verbose
>
> autoreconf -i
>
> # prepare out of soure build
> mkdir -p build
> cd build
>
> # configure
> export CXXFLAGS="-idirafter ${PROJECT_DIR} -Wall -Wextra -Wundef "
> #TODO TBD use too -Weffc++
> ${PROJECT_DIR}/configure --help > configure--help.log
> ${PROJECT_DIR}/configure --cache-file=config.cache \
>     --with-examples \
> ######    --with-snmp \
> #FIXME    --with-agenpro  \
> #FIXME    --with-agenpro-simagent \
>
> # build
> make
>
> #FIXME optional
> make distcheck
>
> #TODO run test ...
> make check
>
> # finaly, but only if all works fine!
> sudo make install
> ###################
>
> the --with-agenpro option does not work, I don't know why?
>
> There was an error at Makefile.am:
>
> Claus-Kleins-MacBook-Pro:agent++ clausklein$ git diff Makefile.am
> diff --git a/agent++/Makefile.am b/agent++/Makefile.am
> index d1c84f8..a5131c2 100644
> --- a/agent++/Makefile.am
> +++ b/agent++/Makefile.am
> @@ -31,7 +31,7 @@ agenpro_SUBDIRS = agenpro
>  endif
>  AM_CPPFLAGS = -I$(top_srcdir)/include $(PTHREAD_CFLAGS) @CLIBFLAGS@
> -SUBDIRS = include src $(example_SUBDIRS) ${agenpro_SUBDIRS}
> +SUBDIRS = include src $(example_SUBDIRS) $(agenpro_SUBDIRS)
>  ACLOCAL_AMFLAGS = -I m4
>  EXTRA_DIST = agent++-4.pc.in libagent.h
> Claus-Kleins-MacBook-Pro:agent++ clausklein$
>
>
> but it does not create any Makefile.in at the agenpro subtree:
>
> configure --with-agenpro
> # ...
>
> make
> # ...
>
> make[4]: Nothing to be done for `all-am'.
> make[3]: Nothing to be done for `all-am'.
> Making all in agenpro
> /bin/sh: line 0: cd: agenpro: No such file or directory
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> configure --without-agenpro
> # ...
>
> make
> # ...
> + make distcheck
> make  dist-gzip am__post_remove_distdir='@:'
> if test -d "agent++-4.0.0"; then find "agent++-4.0.0" -type d ! -perm 
> -200 -exec chmod u+w {} ';' && rm -rf "agent++-4.0.0" || { sleep 5 && 
> rm -rf "agent++-4.0.0"; }; else :; fi
> test -d "agent++-4.0.0" || mkdir "agent++-4.0.0"
>  (cd include && make  top_distdir=../agent++-4.0.0 
> distdir=../agent++-4.0.0/include \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd agent_pp && make  top_distdir=../../agent++-4.0.0 
> distdir=../../agent++-4.0.0/include/agent_pp \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd src && make  top_distdir=../agent++-4.0.0 
> distdir=../agent++-4.0.0/src \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd examples && make  top_distdir=../agent++-4.0.0 
> distdir=../agent++-4.0.0/examples \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd atm_mib && make  top_distdir=../../agent++-4.0.0 
> distdir=../../agent++-4.0.0/examples/atm_mib \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd include && make  top_distdir=../../../agent++-4.0.0 
> distdir=../../../agent++-4.0.0/examples/atm_mib/include \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd src && make  top_distdir=../../../agent++-4.0.0 
> distdir=../../../agent++-4.0.0/examples/atm_mib/src \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd cmd_exe_mib && make  top_distdir=../../agent++-4.0.0 
> distdir=../../agent++-4.0.0/examples/cmd_exe_mib \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd include && make  top_distdir=../../../agent++-4.0.0 
> distdir=../../../agent++-4.0.0/examples/cmd_exe_mib/include \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd src && make  top_distdir=../../../agent++-4.0.0 
> distdir=../../../agent++-4.0.0/examples/cmd_exe_mib/src \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd dynamic_table && make  top_distdir=../../agent++-4.0.0 
> distdir=../../agent++-4.0.0/examples/dynamic_table \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd src && make  top_distdir=../../../agent++-4.0.0 
> distdir=../../../agent++-4.0.0/examples/dynamic_table/src \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd static_table && make  top_distdir=../../agent++-4.0.0 
> distdir=../../agent++-4.0.0/examples/static_table \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd src && make  top_distdir=../../../agent++-4.0.0 
> distdir=../../../agent++-4.0.0/examples/static_table/src \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd proxy_forwarder && make  top_distdir=../../agent++-4.0.0 
> distdir=../../agent++-4.0.0/examples/proxy_forwarder \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd src && make  top_distdir=../../../agent++-4.0.0 
> distdir=../../../agent++-4.0.0/examples/proxy_forwarder/src \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd proxy && make  top_distdir=../../agent++-4.0.0 
> distdir=../../agent++-4.0.0/examples/proxy \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd src && make  top_distdir=../../../agent++-4.0.0 
> distdir=../../../agent++-4.0.0/examples/proxy/src \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
>  (cd agenpro && make  top_distdir=../agent++-4.0.0 
> distdir=../agent++-4.0.0/agenpro \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: 
> distdir)
> /bin/sh: line 0: cd: agenpro: No such file or directory
> make[1]: *** [distdir] Error 1
> make: *** [dist] Error 2
>
> Claus-Kleins-MacBook-Pro:agent++ clausklein$ find . -name '*.a'
> ./build/src/.libs/libagent++.a
> Claus-Kleins-MacBook-Pro:agent++
>
> Claus-Kleins-MacBook-Pro:agent++ clausklein$ find . -name '*.o'
> ./build/src/.libs/agentpp_config_mib.o
> ./build/src/.libs/agentpp_simulation_mib.o
> ./build/src/.libs/avl_map.o
> ./build/src/.libs/map.o
> ./build/src/.libs/mib.o
> ./build/src/.libs/mib_avl_map.o
> ./build/src/.libs/mib_complex_entry.o
> ./build/src/.libs/mib_context.o
> ./build/src/.libs/mib_entry.o
> ./build/src/.libs/mib_map.o
> ./build/src/.libs/mib_policy.o
> ./build/src/.libs/notification_log_mib.o
> ./build/src/.libs/notification_originator.o
> ./build/src/.libs/request.o
> ./build/src/.libs/sim_mib.o
> ./build/src/.libs/snmp_community_mib.o
> ./build/src/.libs/snmp_counters.o
> ./build/src/.libs/snmp_group.o
> ./build/src/.libs/snmp_notification_mib.o
> ./build/src/.libs/snmp_pp_ext.o
> ./build/src/.libs/snmp_request.o
> ./build/src/.libs/snmp_target_mib.o
> ./build/src/.libs/snmp_textual_conventions.o
> ./build/src/.libs/system_group.o
> ./build/src/.libs/threads.o
> ./build/src/.libs/tools.o
> ./build/src/.libs/v3_mib.o
> ./build/src/.libs/vacm.o
> ./build/src/agentpp_config_mib.o
> ./build/src/agentpp_simulation_mib.o
> ./build/src/avl_map.o
> ./build/src/map.o
> ./build/src/mib.o
> ./build/src/mib_avl_map.o
> ./build/src/mib_complex_entry.o
> ./build/src/mib_context.o
> ./build/src/mib_entry.o
> ./build/src/mib_map.o
> ./build/src/mib_policy.o
> ./build/src/notification_log_mib.o
> ./build/src/notification_originator.o
> ./build/src/request.o
> ./build/src/sim_mib.o
> ./build/src/snmp_community_mib.o
> ./build/src/snmp_counters.o
> ./build/src/snmp_group.o
> ./build/src/snmp_notification_mib.o
> ./build/src/snmp_pp_ext.o
> ./build/src/snmp_request.o
> ./build/src/snmp_target_mib.o
> ./build/src/snmp_textual_conventions.o
> ./build/src/system_group.o
> ./build/src/threads.o
> ./build/src/tools.o
> ./build/src/v3_mib.o
> ./build/src/vacm.o
> Claus-Kleins-MacBook-Pro:agent++ clausklein$
>
> make[4]: Nothing to be done for `all-am'.
> make[3]: Nothing to be done for `all-am'.
> Making all in agenpro
> /bin/sh: line 0: cd: agenpro: No such file or directory
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> Claus-Kleins-MacBook-Pro:agent++ clausklein$
>
> Claus-Kleins-MacBook-Pro:agent++ clausklein$ tree -a agenpro/
> agenpro/
> |-- Makefile.am
> |-- agent
> |   |-- Makefile.am
> |   |-- include
> |   |   `-- Makefile.am
> |   `-- src
> |       |-- Makefile.am
> |       |-- Makefile.linux
> |       |-- Makefile.solaris
> |       |-- agent.cpp
> |       `-- common.mk
> `-- simagent
>     |-- Makefile.am
>     |-- include
>     |   `-- Makefile.am
>     `-- src
>         |-- Makefile.am
>         |-- Makefile.linux
>         |-- Makefile.solaris
>         |-- agent.cpp
>         `-- common.mk
>
> 6 directories, 15 files
> Claus-Kleins-MacBook-Pro:agent++ clausklein$ tree -a build/agenpro/
> build/agenpro/ [error opening dir]
>
> 0 directories, 0 files
> Claus-Kleins-MacBook-Pro:agent++ clausklein$
>
> Claus-Kleins-MacBook-Pro:agent++ clausklein$ find . -name '*.am'
> ./agenpro/agent/include/Makefile.am
> ./agenpro/agent/Makefile.am
> ./agenpro/agent/src/Makefile.am
> ./agenpro/Makefile.am
> ./agenpro/simagent/include/Makefile.am
> ./agenpro/simagent/Makefile.am
> ./agenpro/simagent/src/Makefile.am
> ./build/agent++-4.0.0/examples/atm_mib/include/Makefile.am
> ./build/agent++-4.0.0/examples/atm_mib/Makefile.am
> ./build/agent++-4.0.0/examples/atm_mib/src/Makefile.am
> ./build/agent++-4.0.0/examples/cmd_exe_mib/include/Makefile.am
> ./build/agent++-4.0.0/examples/cmd_exe_mib/Makefile.am
> ./build/agent++-4.0.0/examples/cmd_exe_mib/src/Makefile.am
> ./build/agent++-4.0.0/examples/dynamic_table/Makefile.am
> ./build/agent++-4.0.0/examples/dynamic_table/src/Makefile.am
> ./build/agent++-4.0.0/examples/Makefile.am
> ./build/agent++-4.0.0/examples/proxy/Makefile.am
> ./build/agent++-4.0.0/examples/proxy/src/Makefile.am
> ./build/agent++-4.0.0/examples/proxy_forwarder/Makefile.am
> ./build/agent++-4.0.0/examples/proxy_forwarder/src/Makefile.am
> ./build/agent++-4.0.0/examples/static_table/Makefile.am
> ./build/agent++-4.0.0/examples/static_table/src/Makefile.am
> ./build/agent++-4.0.0/include/agent_pp/Makefile.am
> ./build/agent++-4.0.0/include/Makefile.am
> ./build/agent++-4.0.0/Makefile.am
> ./build/agent++-4.0.0/src/Makefile.am
> ./examples/atm_mib/include/Makefile.am
> ./examples/atm_mib/Makefile.am
> ./examples/atm_mib/src/Makefile.am
> ./examples/cmd_exe_mib/include/Makefile.am
> ./examples/cmd_exe_mib/Makefile.am
> ./examples/cmd_exe_mib/src/Makefile.am
> ./examples/dynamic_table/Makefile.am
> ./examples/dynamic_table/src/Makefile.am
> ./examples/Makefile.am
> ./examples/proxy/Makefile.am
> ./examples/proxy/src/Makefile.am
> ./examples/proxy_forwarder/Makefile.am
> ./examples/proxy_forwarder/src/Makefile.am
> ./examples/static_table/Makefile.am
> ./examples/static_table/src/Makefile.am
> ./include/agent_pp/Makefile.am
> ./include/Makefile.am
> ./Makefile.am
> ./src/Makefile.am
> Claus-Kleins-MacBook-Pro:agent++ clausklein$
>
>
> /bin/sh ./config.status --recheck
> running CONFIG_SHELL=/bin/sh /bin/sh 
> /Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/configure 
> --cache-file=config.cache --with-snmp --with-examples 
> CXXFLAGS=-idirafter 
> /Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++ -Wall 
> -Wextra -Wundef  --no-create --no-recursion
> configure: loading cache config.cache
> checking for a BSD-compatible install... (cached) 
> /opt/local/bin/ginstall -c
> checking whether build environment is sane... yes
> /Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/build-aux/missing: 
> Unknown '--is-lightweight' option
> Try 
> '/Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/build-aux/missing 
> --help' for more information
> configure: WARNING: 'missing' script is too old or missing
> checking for a thread-safe mkdir -p... (cached) /opt/local/bin/gmkdir -p
> checking for gawk... (cached) awk
> checking whether make sets $(MAKE)... (cached) yes
> checking whether make supports nested variables... (cached) yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking build system type... (cached) x86_64-apple-darwin10.8.0
> checking host system type... (cached) x86_64-apple-darwin10.8.0
> checking for gcc... (cached) 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... (cached) o
> 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 for style of include used by make... GNU
> checking dependency style of gcc... (cached) gcc3
> checking for g++... (cached) g++
> checking whether we are using the GNU C++ compiler... (cached) yes
> checking whether g++ accepts -g... (cached) yes
> checking dependency style of g++... (cached) gcc3
> checking for gawk... (cached) awk
> checking for grep that handles long lines and -e... (cached) /usr/bin/grep
> checking how to run the C preprocessor... (cached) gcc -E
> checking whether ln -s works... yes
> checking whether make sets $(MAKE)... (cached) yes
> checking for a sed that does not truncate output... (cached) /usr/bin/sed
> checking for ar... (cached) ar
> checking the archiver (ar) interface... (cached) ar
> checking for pkg-config... (cached) /opt/local/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking whether the compiler implements namespaces... (cached) yes
> checking if g++ supports namespace std... (cached) yes
> checking whether the compiler supports Standard Template Library... 
> (cached) yes
> checking whether the compiler supports ISO C++ standard library... 
> (cached) yes
> checking whether the compiler supports basic templates... (cached) yes
> checking for ISO C++ 98 include files... (cached) yes
> checking for ISO C++ TR1 include files... (cached) no
> checking if g++ supports C++0x features without additional flags... 
> (cached) no
> checking if g++ supports C++0x features with -std=c++0x... (cached) no
> checking if g++ supports C++0x features with -std=gnu++0x... (cached) no
> checking if g++ supports C++0x features without additional flags... 
> (cached) no
> checking if g++ supports C++0x features with -std=c++0x... (cached) no
> checking if g++ supports C++0x features with -std=gnu++0x... (cached) no
> checking for ISO C++ 0x include files... (cached) no
> checking for egrep... (cached) /usr/bin/grep -E
> checking for ANSI C header files... (cached) yes
> checking for sys/types.h... (cached) yes
> checking for sys/stat.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking for memory.h... (cached) yes
> checking for strings.h... (cached) yes
> checking for inttypes.h... (cached) yes
> checking for stdint.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking whether _AIX is declared... (cached) no
> checking whether __linux is declared... (cached) no
> checking whether __sun is declared... (cached) no
> checking which _XOPEN_SOURCE macro must be defined... -D_XOPEN_SOURCE=XPG6
> checking if libsnmp++ is wanted... (cached) yes
> checking if libsnmp++ wants a prefix... (cached) no
> checking for library containing gethostent... (cached) none required
> checking for library containing setsockopt... (cached) none required
> checking for library containing connect... (cached) none required
> checking for library containing clock_gettime... (cached) no
> checking whether compiling for native Win32... (cached) 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... -D_THREAD_SAFE
> checking for library containing nanosleep... (cached) none required
> checking for type of (pthread_t)... long
> checking for ANSI C header files... (cached) yes
> checking for arpa/inet.h... (cached) yes
> checking for ctype.h... (cached) yes
> checking for errno.h... (cached) yes
> checking for float.h... (cached) yes
> checking for limits.h... (cached) yes
> checking for memory.h... (cached) yes
> checking for netdb.h... (cached) yes
> checking for netinet/in.h... (cached) yes
> checking for poll.h... (cached) yes
> checking for signal.h... (cached) yes
> checking for stdio.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking for strings.h... (cached) yes
> checking for sys/param.h... (cached) yes
> checking for sys/select.h... (cached) yes
> checking for sys/socket.h... (cached) yes
> checking for sys/time.h... (cached) yes
> checking for sys/timeb.h... (cached) yes
> checking for sys/types.h... (cached) yes
> checking for sys/unistd.h... (cached) yes
> checking for time.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking whether compiling for native Win32... (cached) no
> checking for stdbool.h that conforms to C99... (cached) yes
> checking for _Bool... (cached) yes
> checking for inline... (cached) inline
> checking for int8_t... (cached) yes
> checking for int16_t... (cached) yes
> checking for int32_t... (cached) yes
> checking for int64_t... (cached) yes
> checking for uint8_t... (cached) yes
> checking for uint16_t... (cached) yes
> checking for uint32_t... (cached) yes
> checking for uint64_t... (cached) yes
> checking for size_t... (cached) yes
> checking for ssize_t... (cached) yes
> checking for off_t... (cached) yes
> checking for pid_t... (cached) yes
> checking for uid_t in sys/types.h... (cached) yes
> checking whether the compiler recognizes bool as a built-in type... 
> (cached) yes
> configure: error: libsnmp++ is mandatory and must not be disabled
> make: *** [config.status] Error 1
> Claus-Kleins-MacBook-Pro:build clausklein$
>
>
> Do you have any idea?
>
> //Regards
> Claus
>
>
>
> On 23.06.2013, at 18:47, Frank Fock wrote:
>
>> Hi Claus,
>>
>> Thanks for the patch. I have applied it to the source repository and 
>> it indeed improves
>> the make.
>>
>> Best regards,
>> Frank
>>
>> Am 22.06.2013 12:38, schrieb Claus Klein:
>>> Hi Frank,
>>>
>>> today I have tried to build agent++V4.0 with autoconf tools on my macbook.
>>>
>>>
>>> First I failed with errors while build libsnmp++.a out of source.
>>> I had to patch the Makefile.mk files.
>>>
>>> The first problem is caused by the include statement everywhere used:
>>>
>>> #include <libsnmp.h>
>>> ../../src/address.cpp:53:21: error: libsnmp.h: No such file or directory
>>>
>>> Why is the system header include form used?
>>>
>>>
>>> The second problem was caused be the out of source build, but this is common with autoconf tools.
>>>
>>> See log of "make distcheck" below.
>>>
>>>
>>> //Regards
>>> Claus
>>>
>>>
>>>
>>>
>>>
>>> Here is the boostrap script I used:
>>> #############################################
>>> #!/bin/sh
>>>
>>> PROJECT_DIR=${PWD}
>>>
>>> set -e  # exit on error
>>> set -u  # undefined var is error
>>> set -x  # be verbose
>>>
>>> autoreconf -i
>>>
>>> # prepare out of soure build
>>> mkdir -p build
>>> cd build
>>>
>>> # configure
>>> export CXXFLAGS="-idirafter ${PROJECT_DIR}"
>>> ${PROJECT_DIR}/configure --cache-file=config.cache \
>>>    --with-ssl \
>>> # --with-des
>>>
>>> # build
>>> make
>>>
>>> #FIXME optional
>>> make distcheck
>>>
>>> # not yet! ck
>>> # sudo make install
>>> #############################################
>>>
>>> the build log
>>> ...
>>> Making all in src
>>> /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I..  -I/Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/snmp++/build/snmp++-3.3.0/_build/../include -D_THREAD_SAFE     -g -O2 -D_THREAD_SAFE  -MT address.lo -MD -MP -MF .deps/address.Tpo -c -o address.lo ../../src/address.cpp
>>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -I/Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/snmp++/build/snmp++-3.3.0/_build/../include -D_THREAD_SAFE -g -O2 -D_THREAD_SAFE -MT address.lo -MD -MP -MF .deps/address.Tpo -c ../../src/address.cpp  -fno-common -DPIC -o .libs/address.o
>>> ../../src/address.cpp:53:21: error: libsnmp.h: No such file or directory
>>> ../../src/address.cpp:84:2: warning: #warning Threads_defined_but_no_reentrant_GETHOSTBYADDR_function
>>> ../../src/address.cpp:91:2: warning: #warning Threads_defined_but_no_reentrant_GETHOSTBYNAME_function
>>> In file included from /Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/snmp++/build/snmp++-3.3.0/_build/../include/snmp_pp/address.h:63,
>>>                   from ../../src/address.cpp:55:
>>> /Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/snmp++/build/snmp++-3.3.0/_build/../include/snmp_pp/config_snmp_pp.h:143: error: 'socklen_t' does not name a type
>>> ../../src/address.cpp: In member function 'int Snmp_pp::IpAddress::parse_dotted_ipstring(const char*)':
>>> ../../src/address.cpp:531: error: 'isdigit' was not declared in this scope
>>> ../../src/address.cpp: In member function 'int Snmp_pp::IpAddress::parse_coloned_ipstring(const char*)':
>>> ../../src/address.cpp:602: error: 'isdigit' was not declared in this scope
>>> ../../src/address.cpp:608: error: 'atol' was not declared in this scope
>>> ../../src/address.cpp:640: error: 'isdigit' was not declared in this scope
>>> ../../src/address.cpp:643: error: 'atoi' was not declared in this scope
>>> ../../src/address.cpp:706: error: 'isxdigit' was not declared in this scope
>>> ../../src/address.cpp:708: error: 'tolower' was not declared in this scope
>>> ../../src/address.cpp:751: error: 'isdigit' was not declared in this scope
>>> ../../src/address.cpp:754: error: 'atoi' was not declared in this scope
>>> ../../src/address.cpp: In member function 'virtual bool Snmp_pp::UdpAddress::parse_address(const char*)':
>>> ../../src/address.cpp:1768: error: 'atoi' was not declared in this scope
>>> make[3]: *** [address.lo] Error 1
>>> make[2]: *** [all-recursive] Error 1
>>> make[1]: *** [all] Error 2
>>> make: *** [distcheck] Error 1
>>>
>>> Claus-Kleins-MacBook-Pro:build clausklein$ uname -a
>>> Darwin claus-kleins-macbook-pro.fritz.box 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 i386 MacBookPro5,1 Darwin
>>>
>>> Claus-Kleins-MacBook-Pro:build clausklein$ g++ --version
>>> i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
>>> Copyright (C) 2007 Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions.  There is NO
>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>>
>>> Claus-Kleins-MacBook-Pro:AgentProV4 clausklein$ autoconf --version
>>> autoconf (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.
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> -- 
>> ---
>> AGENT++
>> Maximilian-Kolbe-Str. 10
>> 73257 Koengen, Germany
>> https://agentpp.com
>> Phone: +49 7024 8688230
>> Fax:   +49 7024 8688231
>

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231



More information about the AGENTPP mailing list