Skip to Content.
Sympa Menu

freetds - RE: [freetds] freedts-0.62 build error in cygwin

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] freedts-0.62 build error in cygwin
  • Date: Wed, 14 Jan 2004 10:17:07 +0100

> >
> > I 'm trying to build freetds-0.62 version on my cygwin
> system. I 've
> > encountered this error,
> >
> > threadsafe.c:261:2: #error gethostbyname_r style unknown
> > threadsafe.c: In function `tds_gethostbyname_r':
> > threadsafe.c:221: warning: control reaches end of non-void function
> > threadsafe.c:306:2: #error gethostbyaddr_r style unknown
>
> ./configure --disable-threadsafe
>
> Freddy, let's think about a per-OS default for this option. It's a
> nonobvious error, and I think it will trip up a lot of folks.
>

Mmmm... well now this options should run on:
- Mac OS X
- Digital Unix
- Sun Solaris
- *BSD
- Linux (of course...)
- win32 (VC, MingW)
(well, all platform tested, I think... I don't know it it works on VMS)
In this case it seem that our FreeTDS do not detect that netdb library
is reentrant...
You can add a NETDB_REENTRANT define to config.h

>From configure.in

AC_CANONICAL_HOST
netdb_reentrant=no
case $host in
*-*-osf*)
CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE -D_XOPEN_SOURCE_EXTENDED
-D_POSIX_C_SOURCE=199506L"
netdb_reentrant=yes
;;
*-*-hpux11*)
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
netdb_reentrant=yes
;;
esac

So we should just add cygwin case...

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page