[AGENT++] can not compile agent++ in Debian linux

Zhang Yan emma2740 at gmail.com
Fri Nov 23 10:45:32 CET 2007


Hi

I am trying to compile the agent++ in Debian. But I have failed during the
thousand times trials during three days. I read through all the mail list.
But the compilation errors are different. I will be really grateful if you
can help me.
My snmp++ is V3.2.5.b and agent++ is V3.5. I know that the version is old.
But it was together with one old program. So I just kept these two old
pakages.
I compiled libdes-l-4.01. Then I sucessfully  compiled snmp++.  But when I
came to the agent++, it can not be compiled.
My PC has intel DUO 64-bit processor. So I used ARCH=x86_64.

The commands and  errors are as the following:

--------------------------------------------------------------------------------------------------------------------------------------
$export ARCH=x86_64
$export PATH=$PATH:/usr/sbin
$make -f Makefile.linux clean
$ make -f Makefile.linux
--------------------------------------------------------------------------------------------------------------------------------------
rm -f  mib.o
g++ -g  -D_REENTRANT -Wall -DHEADER_DES_LOCL_H -D_DEBUG  -c -o
mib.o-I../include -I../../snmp++/include
mib.cpp
../include/mib.h:484: error: ISO C++ forbids declaration of 'MibTable' with
no type
../include/mib.h:484: error: expected ';' before '*' token
../include/mib.h:491: error: expected `;' before 'MibTableRow'
../include/mib.h:519: error: 'MibTable' has not been declared
../include/mib.h:593: error: ISO C++ forbids declaration of 'MibTable' with
no type
../include/mib.h:593: error: expected ';' before '*' token
../include/mib.h: In member function 'void
Agentpp::MibLeaf::set_reference_to_table(int*)':
../include/mib.h:519: error: 'my_table' was not declared in this scope
../include/mib.h: At global scope:
../include/mib.h:1035: error: 'MibTable' has not been declared
../include/mib.h:1109: error: 'MibTable' has not been declared
../include/mib.h:1186: error: 'MibTable' was not declared in this scope
../include/mib.h:1186: error: template argument 1 is invalid
mib.cpp: In copy constructor 'Agentpp::MibLeaf::MibLeaf(const
Agentpp::MibLeaf&)':
mib.cpp:171: error: 'my_table' was not declared in this scope
mib.cpp:171: error: 'const class Agentpp::MibLeaf' has no member named
'my_table'
mib.cpp: In member function 'virtual void
Agentpp::MibLeaf::init(SnmpSyntax*, int)':
mib.cpp:192: error: 'my_table' was not declared in this scope
mib.cpp: In member function 'Agentpp::Oidx Agentpp::MibLeaf::get_oid()
const':
mib.cpp:464: error: 'my_table' was not declared in this scope
mib.cpp: In member function 'virtual Agentpp::MibEntry*
Agentpp::snmpRowStatus::clone()':
mib.cpp:512: error: 'my_table' was not declared in this scope
mib.cpp: In member function 'virtual int
Agentpp::snmpRowStatus::check_state_change(const Agentpp::Vbx&,
Agentpp::Request*)':mib.cpp:588: error: 'my_table' was not declared in this
scope
mib.cpp:594: error: 'my_table' was not declared in this scope
mib.cpp:607: error: 'my_table' was not declared in this scope
mib.cpp: In member function 'virtual int Agentpp::snmpRowStatus::set(const
Agentpp::Vbx&)':
mib.cpp:642: error: 'my_table' was not declared in this scope
mib.cpp:648: error: 'my_table' was not declared in this scope
mib.cpp: In member function 'virtual int Agentpp::snmpRowStatus::unset()':
mib.cpp:678: error: 'my_table' was not declared in this scope
mib.cpp:685: error: 'my_table' was not declared in this scope
mib.cpp: At global scope:
mib.cpp:1051: error: prototype for 'void
Agentpp::MibTableRow::set_reference_to_table(Agentpp::MibTable*)' does not
match any in class 'Agentpp::MibTableRow'
../include/mib.h:1035: error: candidate is: void
Agentpp::MibTableRow::set_reference_to_table(int*)
mib.cpp: In member function 'void
Agentpp::MibTableRow::set_reference_to_table(Agentpp::MibTable*)':
mib.cpp:1059: error: no matching function for call to
'Agentpp::MibLeaf::set_reference_to_table(Agentpp::MibTable*&)'
../include/mib.h:519: note: candidates are: void
Agentpp::MibLeaf::set_reference_to_table(int*)
mib.cpp: In member function 'int
Agentpp::MibTable::perform_voting(Agentpp::MibTableRow*, int, int)':
mib.cpp:1557: error: no matching function for call to
'Agentpp::MibTableVoter::is_transition_ok(Agentpp::MibTable* const,
Agentpp::MibTableRow*&, Agentpp::Oidx&, int&, int&)'
../include/mib.h:1113: note: candidates are: virtual int
Agentpp::MibTableVoter::is_transition_ok(int*, Agentpp::MibTableRow*, const
Agentpp::Oidx&, int, int)
mib.cpp: In member function 'virtual void
Agentpp::MibTable::add_col(Agentpp::MibLeaf*)':
mib.cpp:1807: error: no matching function for call to
'Agentpp::MibLeaf::set_reference_to_table(Agentpp::MibTable* const)'
../include/mib.h:519: note: candidates are: void
Agentpp::MibLeaf::set_reference_to_table(int*)
mib.cpp: In member function 'virtual void
Agentpp::MibTable::replace_col(unsigned int, Agentpp::MibLeaf*)':
mib.cpp:1814: error: no matching function for call to
'Agentpp::MibLeaf::set_reference_to_table(Agentpp::MibTable* const)'
../include/mib.h:519: note: candidates are: void
Agentpp::MibLeaf::set_reference_to_table(int*)
mib.cpp: In member function 'virtual void
Agentpp::MibTable::add_col(Agentpp::snmpRowStatus*)':
mib.cpp:1821: error: no matching function for call to
'Agentpp::snmpRowStatus::set_reference_to_table(Agentpp::MibTable* const)'
../include/mib.h:519: note: candidates are: void
Agentpp::MibLeaf::set_reference_to_table(int*)
make: *** [mib.o] Error 1
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thank you for reading through my mail !


^__^

Yan Zhang



More information about the AGENTPP mailing list