[AGENT++] snmp++ compilation in cygwin

Enzo Vigano enzo.vigano at thalesatm.com
Mon Nov 22 08:42:00 CET 2004


Hello everybody,
I'm trying to build agent++ in cygwin  (WIN2K).
With libdes no problem , but the compilation fails for snmp++
(snmp++v3.2.14)

Here the traces:

$ make -f Makefile.linux
g++ -D_XPG4_EXTENDED -D__unix -Wall  -I../include -I./ -I../../libdes -I../.
./crypt -g -o address.o -c address.cp
p
address.cpp: In member function `virtual bool IpAddress::parse_address(const
   char*)':
address.cpp:740: error: `gethostbyname_r' undeclared (first use this
function)
address.cpp:740: error: (Each undeclared identifier is reported only once
for
   each function it appears in.)
address.cpp:745: error: `AF_INET6' undeclared (first use this function)
address.cpp:746: error: `gethostbyname2_r' undeclared (first use this
function)
address.cpp:765: error: `in6_addr' undeclared (first use this function)
address.cpp:767: error: parse error before `;' token
address.cpp:768: error: `ipAddr' undeclared (first use this function)
address.cpp:772: error: `inet_ntop' undeclared (first use this function)
address.cpp: In member function `int IpAddress::addr_to_friendly()':
address.cpp:858: error: `gethostbyaddr_r' undeclared (first use this
function)
address.cpp:868: error: parse error before `;' token
address.cpp:870: error: `inet_pton' undeclared (first use this function)
make: *** [address.o] Error 1: *** [address.o] Error 1


This is gcc version


$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with:
/gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr --exec-prefix=/usr --sysc
onfdir=/etc --libdir
=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share
/info --enable-languages=c,ada,c++,d,
f77,java,objc,pascal --enable-nls --without-included-gettext --enable-libgcj
 --with-system-zlib --enable-interpre
ter --enable-threads=posix --enable-java-gc=boehm --enable-sjlj-exceptions -
-disable-version-specific-runtime-lib
s --disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)


Where am I wrong?
Can somebody help me?
Thanks in advance.
Enzo.








More information about the AGENTPP mailing list