Skip to Content.
Sympa Menu

freetds - Re: [freetds] Compiling FreeTDS on Unixware7

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] Compiling FreeTDS on Unixware7
  • Date: Sun, 27 May 2007 22:07:44 +0200

Il giorno ven, 25/05/2007 alle 09.15 -0400, Glenn, Chris ha scritto:
> Has anyone successfully compiled FreeTDS to work on UnixWare 7?
>
> During the 'configure' phase I get the following message;
>
> ...
> checking netinet/tcp.h usability... no
> checking netinet/tcp.h presence... yes
> configure: WARNING: netinet/tcp.h: present but cannot be compiled
> configure: WARNING: netinet/tcp.h: check for missing prerequisite
> headers?
> configure: WARNING: netinet/tcp.h: see the Autoconf documentation
> configure: WARNING: netinet/tcp.h: section "Present But Cannot Be
> Compiled"
> configure: WARNING: netinet/tcp.h: proceeding with the preprocessor's
> result
> configure: WARNING: netinet/tcp.h: in the future, the compiler will
take
> precede
> nce
> configure: WARNING: ## ------------------------------------------
##
> configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists.
##
> configure: WARNING: ## ------------------------------------------
##
> checking for netinet/tcp.h... yes

I searched for this problem and I found that netinet/tcp.h require
sys/types.h to be included. Also there's a possible problem if
_XOPEN_SOURCE is defined (sys/types.h do not define u_long which is
required by netinet/tcp.h).
Please try adding a

#include <sys/types.h>

before any

#include <netinet/tcp.h>

> checking paths.h usability... yes
> ...
>
>
> Then when 'making' I get;
> ...
> Making all in unittests
> source='threadsafe.c' object='threadsafe.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/ksh ../../depcomp \
> /bin/ksh ../../libtool --tag=CC --mode=compile cc
> -DHAVE_CONFIG_H -I. -
> I. -I../../include -I../../include -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_TH
> READ_SAFE -DDEBUG=1 -g -c -o threadsafe.lo threadsafe.c
> cc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -D_FREETDS_LIBRARY_S
> OURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -g -c threadsafe.c -KPIC
> -DPIC -o .
> libs/threadsafe.o
> UX:acomp: ERROR: "threadsafe.c", line 270: #error: gethostbyname_r
style
> unknown
> *** Error code 1 (bu21)
> UX:make: ERROR: fatal error.
> *** Error code 1 (bu21)
> UX:make: ERROR: fatal error.
> *** Error code 1 (bu21)
> UX:make: ERROR: fatal error.
> *** Error code 1 (bu21)
> UX:make: ERROR: fatal error.
> *** Error code 1 (bu21)
> UX:make: ERROR: fatal error.
> ...

This can be related to previous problem, try --disable-threadsafe during
configure. If you can run autoconf tools (probably from Linux) you could
try to replace in configure.ac

if test $tds_mingw = no; then
AC_CHECK_HEADERS([sys/socket.h arpa/inet.h netdb.h netinet/in.h
\
netinet/tcp.h paths.h sys/ioctl.h libgen.h sys/select.h regex.h
langinfo.h])
fi

with

if test $tds_mingw = no; then
AC_CHECK_HEADERS([sys/socket.h arpa/inet.h netdb.h netinet/in.h
\
paths.h sys/ioctl.h libgen.h sys/select.h regex.h langinfo.h])
AC_CHECK_HEADERS([netinet/tcp.h],,,[#include <sys/types.h>])
fi


(netinet/tcp.h is tested with sys/types.h include)

>
> Any assistance resolving these issues would be greatly appreciated.
> I have successfully compiled, configured and tested FreeTDS on our
Linux
> server.
>
> Chris Glenn
>

Regards
Frediano






Archive powered by MHonArc 2.6.24.

Top of Page