Agent++ compile problems
Frank.Fock____t-online.de
Frank.Fock____t-online.de
Thu Dec 20 10:50:14 CET 2001
Howon,
Please download the latest version of SNMP++. That one should
work.
Regards,
Frank
Howon schrieb:
> Hi,
> I had downloaded snmp++v3.1 & agent++v3.5. But I can
> not compile them. I am using Compaq Tru64 Unix V5.1(Rev.
> 732) and gmake v3.79.1 / cxx. What can I do?
> Hope you reply ASAP. Thanks.
>
>
> The following is compile error messages:
>
> cxx -g -pt -pthread -D_XPG4_EXTENDED -Dsun -D__unix
> -D_DEBUG -Wall -I../include -I./ -I../../libdes -o
> asn1.o -c asn1.cpp
> cxx: Warning: asn1.cpp, line 1853: statement is
> unreachable
> break;
> ------^
> cxx -g -pt -pthread -D_XPG4_EXTENDED -Dsun -D__unix
> -D_DEBUG -Wall -I../include -I./ -I../../libdes -o
> snmpmsg.o -c snmpmsg.cpp
> cxx: Warning: snmpmsg.cpp, line 279: integer conversion
> resulted in a change of
> sign
> if ((ipAddr.s_addr = inet_addr(addrString)) == -1)
> -----------------------------------------------------^
> cxx: Error: snmpmsg.cpp, line 291: argument of type "char
> *" is incompatible
> with parameter of type "hostent_data *"
> buf, 2048,
> &herrno);
> ---------------------------------------^
> cxx: Error: snmpmsg.cpp, line 291: too many arguments in
> function call
> buf, 2048,
> &herrno);
> --------------------------------------------^
> cxx: Error: snmpmsg.cpp, line 290: a value of type "int"
> cannot be
> assigned to an entity of type "hostent *"
> lookupResult = gethostbyname_r(addrString,
> &lookup_buf,
> ---------------------^
> cxx: Info: 3 errors detected in the compilation of
> "snmpmsg.cpp".
> gmake: *** [snmpmsg.o] Error 1
> bash-2.05$
>
>
>
More information about the AGENTPP
mailing list