[AGENT++] compile agentpp with cygwin under win server 2003

taner memet ali tanerm2 at gmx.de
Mon Aug 15 21:12:51 CEST 2005


Hi Jochen,
i have made the changes to the Makefile.linux file in the directory of 
snmp++. The compilation created the object files but i was bombed with 
warnings like:

g++ -g -Wall -c -o 
agent.o -I../include -I../../../include -I../../../../snmp++/include 
agent.cpp
In file included from ../../../../snmp++/include/snmp_pp/snmp_pp.h:69,
from ../../../include/agent_pp/agent++.h:120,
from agent.cpp:94:
../../../../snmp++/include/snmp_pp/config_snmp_pp.h:194:2: warning: #warning 
Threads defined_but_no_reentrant_LOCALTIME_function
../../../../snmp++/include/snmp_pp/config_snmp_pp.h:203:2: warning: #warning 
Threads defined_but_no_reentrant_GETHOSTBYADDR_function
../../../../snmp++/include/snmp_pp/config_snmp_pp.h:212:2: warning: #warning 
Threads defined_but_no_reentrant_GETHOSTBYNAME_function

and undefined references like this:

../../../../snmp++/lib/libsnmp++.a(auth_priv.o): In function 'here is a key` 
: /././snmp++/src/auth_priv.cpp:1257:undefined reference to _'des_key_sched' 
etc.

and i get an error in each examples directory
make *** [agent] Error 1

therefore i could not compile any executable files. Can you figure out where 
the problem is or do you need more information?

regards,
Taner

Original message:

>   3. Re: compile agentpp with cygwin under win server 2003
> Message: 3
> Date: Sun, 14 Aug 2005 21:19:20 +0200
> From: Jochen Katz <katz at agentpp.com>
> Subject: Re: [AGENT++] compile agentpp with cygwin under win server
> 2003
> To: agentpp at agentpp.org
> Message-ID: <42FF9938.9050006 at 2004.joka.homelinux.org>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
>> tell me some good information on how to compile the agent++ and agent-x
>> under win 2003 server with cygwin? there is a makefile for cygwin in
>> agent++ but i dont know which makefile is for the windows plattform in
>> snmp++ and in agent++ folder.
>
> you should use the Makefile.linux. Possibly you have to disable IPv6
> and add the changes below to config_snmp_pp.h.
>
> Regards,
>  Jochen
>
>
>
> // can we use the reentrant version of these functions or
> // are the standard functions thread safe
> #ifdef __GNUC__
>
> #ifdef __CYGWIN__
> // don't have _R functions...
> #else
> #define HAVE_GETHOSTBYNAME_R
> #define HAVE_LOCALTIME_R
> #define HAVE_GETHOSTBYADDR_R
> #endif
>
> #elif __DECCXX
>
>
> ------------------------------
>




More information about the AGENTPP mailing list