Skip to Content.
Sympa Menu

freetds - RE: [freetds] freetds 0.62rc1 with FreeBSD 5.1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO Frediano" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] freetds 0.62rc1 with FreeBSD 5.1
  • Date: Mon, 29 Dec 2003 14:06:54 +0100

>
> Hi all,
>
> I've just downloaded and unpacked 0.62rc1. Configure went
> through without problems (I didn't even have to specify the
> host system - this is always necessary when building from CVS).
>
> However, the make then stops here:
> threadsafe.c:144:2: #error gethostbyname_r style unknown
> threadsafe.c: In function `tds_gethostbyaddr_r':
> threadsafe.c:164: warning: implicit declaration of function
> `gethostbyaddr_r'
> threadsafe.c:164: warning: assignment makes pointer from
> integer without a cast
> threadsafe.c:201:2: #error getservbyname_r style unknown
> *** Error code 1
>
> The relevant part from ./configure:
> checking threadsafety... enabled
> checking for which type of gethostbyname_r... no
> checking for which type of getservbyname_r... no
> checking for which type of gethostbyaddr_r... seven
> checking for which type of getpwuid_r... five
> checking for which type of localtime_r... struct
>
> And config.log:
> configure:4327: checking for library containing gethostbyname
> configure:4358: gcc -o conftest -g -O2 -D_FREETDS_LIBRARY_SOURCE
> conftest.c >&5
> configure:4361: $? = 0
> configure:4364: test -s conftest
> configure:4367: $? = 0
> configure:4426: result: none required
>
>
> This is with FreeBSD 5.1:
> # uname -a
> FreeBSD alex.i.schlund.de 5.1-RELEASE-p11 FreeBSD 5.1-RELEASE-p11 #1:
> Mon Dec 29 11:58:32 CET 2003
> root AT alex.i.schlund.de:/usr/obj/usr/src/sys/BOOST i386
>
> As I understand the UserGuide, threadsafe should compile on
> BSD, shouldn't it? Or am I doing something wrong?
>

I don't understand why but it happened... Try downloading new
threadsafe.c from
http://cvs.sourceforge.net/viewcvs.py/*checkout*/freetds/freetds/src/tds
/threadsafe.c?rev=1.31
(put it on src/tds)

This version use getipnodeby*/getaddrinfo functions (available in *BSD
and Mac OS X).

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page