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

Claus Klein claus.klein at arcormail.de
Mon Jun 24 00:36:42 CEST 2013


Hi Frank,

I have tried this:

Claus-Kleins-MacBook-Pro:AgentProV4 clausklein$ cat fixagenpro.autoconf.patch 
diff --git a/agent++/configure.ac b/agent++/configure.ac
index dc467a5..f4ae4d1 100644
--- a/agent++/configure.ac
+++ b/agent++/configure.ac
@@ -248,7 +248,6 @@ AC_CXX_BOOL
 AS_IF([test "x$ac_cv_cxx_bool" = "xyes"], [NEED_DEFINE_BOOL=0], [NEED_DEFINE_BOOL=1])
 
 # Checks for libraries.
-AS_IF([test "x${acx_with_libsnmp}" != "xyes"], [AC_MSG_ERROR([libsnmp++ is mandatory and must not be disabled])])
 AC_LANG_PUSH([C++])
 
 dnl pull the rabbit out of the hat to avoid regexp in ACX_CHECK_LIB_FLAGS searching for winsock2.h
@@ -299,6 +298,9 @@ $acx_include_sockets
     AC_MSG_NOTICE([compiling in support for libsnmp++ (LIBS="$LIBS_SNMP}")])
   ]
 )
+
+AS_IF([test "x${WITH_LIBSNMP}" != "x1"], [AC_MSG_ERROR([libsnmp++ is mandatory and must not be disabled])])
+
 AC_MSG_CHECKING([if libsnmp++ is built with SNMPv3 support])
 acx_cppflags_safe="$CPPFLAGS"
 CPPFLAGS="$CPPFLAGS $CLIBFLAGS"
@@ -507,5 +509,12 @@ AC_CONFIG_FILES([Makefile
                  examples/proxy_forwarder/src/Makefile
                  examples/static_table/Makefile
                  examples/static_table/src/Makefile
+                 agenpro/agent/include/Makefile
+                 agenpro/agent/Makefile
+                 agenpro/agent/src/Makefile
+                 agenpro/Makefile
+                 agenpro/simagent/include/Makefile
+                 agenpro/simagent/Makefile
+                 agenpro/simagent/src/Makefile
                  src/Makefile])
 AC_OUTPUT(agent++-4.pc include/agent_pp/agent++.h)
Claus-Kleins-MacBook-Pro:AgentProV4 clausklein$ 

This generates the missing Makefiles, fine so far.
I think, the errors while build are normal till I generate code for some mibs.

Making all in agenpro
Making all in agent
Making all in include
make[4]: Nothing to be done for `all'.
Making all in src
g++ -DHAVE_CONFIG_H -I. -I/Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/agenpro/agent/src -I../../..  -I../../../include -I/Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/include -I/Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/agenpro/agent/src/../include -D_THREAD_SAFE  -I/usr/local/include -D_XOPEN_SOURCE=XPG6  -idirafter /Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++ -Wall -Wextra -Wundef  -D_THREAD_SAFE  -MT agent.o -MD -MP -MF .deps/agent.Tpo -c -o agent.o /Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/agenpro/agent/src/agent.cpp
/Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/agenpro/agent/src/agent.cpp:38:29: error: module_includes.h: No such file or directory
/Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/agenpro/agent/src/agent.cpp:39:25: error: module_init.h: No such file or directory
/Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/agenpro/agent/src/agent.cpp: In function 'int main(int, char**)':
/Volumes/Macintosh_HD/Users/clausklein/Workspace/cpp/AgentProV4/agent++/agenpro/agent/src/agent.cpp:226: error: 'module_init' was not declared in this scope
make[4]: *** [agent.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



//Regards
Claus





On 23.06.2013, at 19:46, Claus Klein wrote:

> 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?



More information about the AGENTPP mailing list