agentX build problem on solaris

Frank Fock Frank.Fock____t-online.de
Thu Jul 27 19:36:52 CEST 2000


Hello Majdi,

please see comments inline:

Majdi Abuelbassal wrote:

> Guys, I getting the following errors when compiling on sun solaris 2.6:
> ---------------------------------------
> make -f Makefile.solaris
> rm -f  agentx.o
> CC -g -mt  -c -o agentx.o -I../include -I../../agent++/include
> -I../../snmp++/include -I../../snmp++/src agentx.cpp
> "agentx.cpp", line 544: Error: Formal argument 3 of type int* in call to
> accept(int, sockaddr*, int*) is being passed unsigned*

This changed from Solaris 2.6 to 7.0 (2.7). I think I have to
add a #define and use a macro here. Just use the same definition of
the variable len as for WIN32.

>
> .
> "agentx.cpp", line 584: Error: socklen_t is not defined.

Yes, it is only defined on Linux and Solaris 7. I will change
that to. You can use "int" instead of "socklen_t".

>
> "agentx.cpp", line 618: Error: Formal argument 3 of type int* in call to
> accept(int, sockaddr*, int*) is being passed unsigned*
>

s.a.

Hope that helps,
Frank




More information about the AGENTPP mailing list