Re: problem to ompile gloox-0.9-rc1 on cygwin
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Thu, 19 Apr 2007 23:42:05 +0200 (CEST)
On Thu Apr 19 2007, karim bernardet wrote:
> Hi
>
> I am trying to compile gloox-0.9-rc1 on cygwin but it fails with
>
> /lib/gcc/i686-pc-cygwin/3.4.4 -L/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../..
> -lstdc++ -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc   -o
> .libs/cyggloox-7.dll -Wl,--image-base=0x10000000
> -Wl,--out-implib,.libs/libgloox.dll.a
> .libs/dns.o: In function `_ZN5gloox3DNS7resolveERKSsS2_S2_RKNS_7LogSinkE':
> /home/bernardet/gloox-0.9-rc1/src/dns.cpp:144: undefined reference to
> `___ns_name_ntop'
> .libs/dns.o: In function `_ZN5gloox3DNS7resolveERKSsS2_S2_RKNS_7LogSinkE':
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_map.h:412: undefined
> reference to `___ns_get16'

Hi Karim,

I never used cygwin nor tested gloox there, but disabling SRV resolving 
should help in this case, i.e. comment out any of

#define HAVE_RES_QUERYDOMAIN 1
#define HAVE_DN_SKIPNAME 1
#define HAVE_RES_QUERY 1

in your config.h.

On MinGW SRV records do work.

cheers,
Jakob

Attachment: pgpsrn17jnD54.pgp
Description: PGP signature