SNMP -> make error

nop223

27-06-2005 04:49:55

Making all in src
Making all in .
CXX snmp.o
In file included from /usr/local/include/net-snmp/definitions.h22,
from /usr/include/net-snmp/net-snmp-includes.h61,
from snmp.cpp26
/usr/local/include/net-snmp/types.h95 syntax error before `typedef'
In file included from /usr/local/include/net-snmp/definitions.h22,
from /usr/include/net-snmp/net-snmp-includes.h61,
from snmp.cpp26
/usr/local/include/net-snmp/types.h184 parse error before `}' token
In file included from /usr/local/include/net-snmp/definitions.h25,
from /usr/include/net-snmp/net-snmp-includes.h61,
from snmp.cpp26
/usr/local/include/net-snmp/library/snmp_impl.h118 syntax error before `int'
In file included from /usr/local/include/net-snmp/utilities.h48,
from /usr/include/net-snmp/net-snmp-includes.h64,
from snmp.cpp26
/usr/local/include/net-snmp/library/data_list.h59 syntax error before `*'
token
/usr/local/include/net-snmp/library/data_list.h73 syntax error before `*'
token
make[2] *** [snmp.o] Error 1
make[1] *** [all-recursive] Error 1
make *** [all-recursive] Error 1

balleman

27-06-2005 20:39:16

looks like a net-snmp issue. please let us know your distro, net-snmp version, etc, and we'll try to help.

nop223

29-06-2005 04:15:48

PLEASE HELP ME

cry I have upgraded the compiler to gcc 3.4.4

the configuration is

0x86 CPU

Gcc 3.4.4
net-snmp 5.2.1
ucd-snmp 4.2.6
openssl 0.9.7g
netmrg 0.18.2

and i have error in the same smnp.o but new messages

Making all in src
Making all in .
CXX snmp.o
In file included from /usr/local/include/net-snmp/definitions.h22,
from /usr/include/net-snmp/net-snmp-includes.h61,
from snmp.cpp26
/usr/local/include/net-snmp/types.h95 error expected init-declarator before "typedef"
/usr/local/include/net-snmp/types.h95 error expected `,' or `;' before "typedef"
In file included from /usr/local/include/net-snmp/definitions.h25,
from /usr/include/net-snmp/net-snmp-includes.h61,
from snmp.cpp26
/usr/local/include/net-snmp/library/snmp_impl.h118 error expected constructor, destructor, or type conversion before "int"
/usr/local/include/net-snmp/library/snmp_impl.h118 error expected `,' or `;' before "int"
In file included from /usr/local/include/net-snmp/utilities.h29,
from /usr/include/net-snmp/net-snmp-includes.h64,
from snmp.cpp26
/usr/local/include/net-snmp/library/snmp_client.h48 error expected `;' before '*' token

silfreed

29-06-2005 08:09:00

Is it possible that you upgraded a version of net-snmp, but didn't update the headers? Perhaps try reinstalling your net-snmp and see if that helps.

-Doug