[AGENT++] scatch build failed for snmp++-3.3.4 with configure and make on OSX

Claus Klein claus.klein at arcormail.de
Sun Nov 9 22:50:21 CET 2014


Hi Frank,

yes, I know, but the compiler doesn’t find the header file.

My build should be independent of the current version of header and libs installed.

In my case, I have nothing installed. But it should work for cross-compiling with different source code version as cureently installed at buildhost.

I need the g++ -isystem option to found all header used via #include <>!


To Build the examples at a stage dir without installation and with only the files used at the current build- and source-tree, I need all this include path settings:

claus-mbp:AgentProV4Build clausklein$ /opt/local/bin/g++ \
> -DAGENTPP_OPAQUE_PTHREAD_T=long -DHAVE_LIBSSL -DHAVE_LOCALTIME_R \
> -DHAVE_NAMESPACE_STD -DHAVE_NETINET_IN_H -DHAVE_PTHREAD -DHAVE_SYS_STAT_H \
> -DSNMP_PP_IPv6 -DSTDCXX_98_HEADERS -Dsnmp_pp_EXPORTS -fmessage-length=0 -g \
> -fPIC -Isnmp++/src -I/Users/clausklein/Workspace/cpp/AgentProV4/snmp++/src \
> -I/Users/clausklein/Workspace/cpp/AgentProV4/snmp++/src/../include  \
> -isystem /Users/clausklein/Workspace/cpp/AgentProV4/snmp++/src/..  \
> -isystem agentX++/include  \
> -isystem /Users/clausklein/Workspace/cpp/AgentProV4/agentX++/include  \
> -isystem /Users/clausklein/Workspace/cpp/AgentProV4/agentX++  \
> -isystem agent++/include \
> -isystem /Users/clausklein/Workspace/cpp/AgentProV4/agent++/include  \
> -isystem /Users/clausklein/Workspace/cpp/AgentProV4/agent++  \
> -isystem snmp++/include \
> -isystem /Users/clausklein/Workspace/cpp/AgentProV4/snmp++/include  \
> -isystem /Users/clausklein/Workspace/cpp/AgentProV4/snmp++ \
> -Iinclude -I/usr/local/include -I/opt/local/include    -Wall -std=c++98 -Wextra \
> -Wno-unused-parameter -Wno-unused-private-field -Wno-unknown-pragmas \
> -Wno-tautological-compare -Wall -MMD -MT \
> snmp++/src/CMakeFiles/snmp_pp.dir/IPv6Utility.cpp.o -MF \
> snmp++/src/CMakeFiles/snmp_pp.dir/IPv6Utility.cpp.o.d -o \
> snmp++/src/CMakeFiles/snmp_pp.dir/IPv6Utility.cpp.o -c \
> /Users/clausklein/Workspace/cpp/AgentProV4/snmp++/src/IPv6Utility.cpp
…

claus-mbp:AgentProV4Build clausklein$ find . -name include
./agent++/include
./agentX++/include
./snmp++/include

claus-mbp:AgentProV4Build clausklein$ find . -name '*.h'  
./agent++/include/agent_pp/agent++.h
./agentX++/include/agentx_pp/agentx++.h
./snmp++/include/snmp_pp/config_snmp_pp.h

claus-mbp:AgentProV4Build clausklein$ pwd
/Users/clausklein/Workspace/cpp/AgentProV4Build

Best regards,
Claus

On 09.11.2014, at 20:28, Frank Fock <fock at agentpp.com> wrote:

> Hi Claus,
> 
> the libsnmp.h file is part of the SNMP++ 3.3.4 download file.
> 
> Best regards,
> Frank



More information about the AGENTPP mailing list