thaving rouble with agenpro2
Rich Coco
rich.coco____verizon.net
Wed Apr 2 00:47:31 CEST 2003
I am having difficulty getting generated code to compile after generating code
for a Master agent (see below). In brief, make tells me that
a generated file - module_init.h - cannot be found during the attempt
to compile agent.cpp (that came with the agentX++ distribution).
As is shown below, that file in fact was generated and does exist in
the 'src' directory. I am using the includes_code.vm, makefile_code.vm,
module_init_code.vm, h_code.vm, and cpp_code.vm templates (including their
'filename' counterparts).
the 'sockeye' files below were generated as a result of a MIB I created.
I was able to successfully build (cmpile and link) in the agen/subagent
directory. the only real difference between the two directories
(subagent and master) are the agent.cpp files that came with the distribution.
I suspect I have included something in the agenPro Project Wizard for
the master project that I should not have (or i am leaving something out,
or maybe both!). It dawns on me that the 5 Wizard entries (the templates I
am using) are the same for both the Master and Subagent projects. Probably that
is not right, but I cannot determine what other templates I should use instead
(for generating Master code).
advice welcome
- rich
------------------------ error output --------------------
racoco: pwd
/usr/local/src/SNMP++/agentX++/agen/master/src
racoco: make -f Makefile.linux
ALIAS: make CDEBUG=-g
rm -f agent.o
g++ -g -Wall -c -o agent.o -I../include -I../../../include
-I../../../../agent++/include -I../../../../snmp++/include
-I../../../../snmp++/src agent.cpp
agent.cpp:43:25: module_init.h: No such file or directory
make: *** [agent.o] Error 1
racoco: pwd
/usr/local/src/SNMP++/agentX++/agen/master/src
racoco: ls -ltr
total 56
-rw-rw-r-- 1 racoco racoco 891 Apr 1 14:19 Makefile.solaris
-rw-rw-r-- 1 racoco racoco 846 Apr 1 14:19 Makefile.linux
-rw-rw-r-- 1 racoco racoco 996 Apr 1 14:19 Makefile.hpux11
-rw-rw-r-- 1 racoco racoco 1695 Apr 1 14:19 common.mk
-rw-rw-r-- 1 racoco racoco 13332 Apr 1 14:19 agent.cpp
-rw-rw-r-- 1 racoco racoco 86 Apr 1 17:17 Modules.mk
-rw-rw-r-- 1 racoco racoco 349 Apr 1 17:17 module_init.h
-rw-rw-r-- 1 racoco racoco 12237 Apr 1 17:17 sockeye_gra_mib.cpp
-rw-rw-r-- 1 racoco racoco 721 Apr 1 17:17 sockeye_mib.cpp
racoco:
--
rich coco
Sockeye Networks
racoco at sockeye.com
781.693.7051
More information about the AGENTPP
mailing list