agenpro2 issue
Rich Coco
rich.coco____verizon.net
Fri Apr 4 18:52:40 CEST 2003
I am demoing the SNMP++ suite of utilities/libs, including AgenPro2 (code
generator). I am carrying out
At work, I have a masterAgent and subagent up and running and talking to each
other (RedHat Linux 7.0 system).
At home, I cannot get the generated subAgent code to compile (the masterAgent
code does compile and link fine).
Using what I *believe* are the same libraries (eg, same edits to .h files to
exclude IPv6 and _SNMPv3), and the same properties settings (using the agenPro2
GUI) for master and sub-agent, I get the following errors at home (RedHat 7.3).
-------- agenPro2 error message (during 'generate') ---------------------
ERROR | Velocity | ResourceManager: unable to find resource VM_global_library.vm
in any resource loader
[I have no VM_global_library.vm file in my distribution, either at home or at
work. This may or may not have anythiong to do with the compilation error to
follow...I simply do not know.]
----------------- agentX++/agen/subagent/src compilation error -------------
racoco: pwd
/usr/local/src/SNMP++/agentX++/agen/subagent/src
racoco: make -f Makefile.linux
rm -f sockeye_mib.o
g++ -g -Wall -c -o sockeye_mib.o -I../include -I../../../include
-I../../../../agent++/include -I../../../../snmp++/include
-I../../../../snmp++/src sockeye_mib.cpp
rm -f sockeye_gra_mib.o
g++ -g -Wall -c -o sockeye_gra_mib.o -I../include -I../../../include
-I../../../../agent++/include -I../../../../snmp++/include
-I../../../../snmp++/src sockeye_gra_mib.cpp
g++ -g -Wall -o agent agent.o sockeye_mib.o sockeye_gra_mib.o -L../../../lib
-L../../../../agent++/lib -L../../../../snmp++/lib -L../../../../libdes
-lpthread -lagentx++ -lagent++ -lsnmp++ -ldes
agent.o: In function `Agentpp::DefaultLog::init(Agentpp::AgentLog *)':
/usr/local/src/SNMP++/agentX++/agen/subagent/src/../../../../agent++/include/threads.h(.Agentpp::OidList<Agentpp::ProxyForwarder>::gnu.linkonce.t.remove(Agentpp::Oidx
*) +0x4a): undefined reference to
`Agentpp::ProxyForwarder::~ProxyForwarder(void)'
/usr/local/src/SNMP++/agentX++/agen/subagent/src/../../../../agent++/include/threads.h(.Agentpp::OidList<Agentpp::ProxyForwarder>::gnu.linkonce.t.clearAll(void)+0xb0):
undefined reference to `Agentpp::ProxyForwarder::~ProxyForwarder(void)'
collect2: ld returned 1 exit status
make: *** [agent] Error 1
I am not able to determine what is wrong. I do not want to hand-edit code
unecessarily since I did not have to do this at work.
It would seem there is a configuration/property difference between the two
environments (work .vs home), but I do not see one. Does the link error suggest
a root-cause to anyone?
Any help is appreciated.
- rich
--
rich coco
Sockeye Networks
racoco at sockeye.com
781.693.7051
More information about the AGENTPP
mailing list