Skip to Content.
Sympa Menu

freetds - Re: compile problem - login.c - CVS version

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT umcc.ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: compile problem - login.c - CVS version
  • Date: Thu, 20 Apr 2000 06:12:13 -0400 (EDT)


This is a contributed patch that broke solaris builds. Search the mailing
list archive for a patch, I just haven't had time to test it out yet. It
will go it prior to 0.51 though.

Brian

On Thu, 20 Apr 2000, Mike Groeneweg wrote:

>
> I have just checked out the latest CVS copy, and tried to compile
> freetds on a Solaris 7.0 box, using gcc.
>
> In ./src/tds/login.c - my compile is bugging out.... it doesn't like
> 'FIONBIO'.
>
> -----------------------------------------
> /* Jeff's hack *** START OF NEW CODE *** */
> if (login->connect_timeout) {
> start = time (NULL);
> ioctl_blocking = 1; /* ~0; //TRUE; */
> if (IOCTL(tds->s, FIONBIO, &ioctl_blocking) < 0) {
> return NULL;
> }
> connect(tds->s, (struct sockaddr *) &sin, sizeof(sin));
> -----------------------------------------
>
> scorpion>make
> Making all in src
> make[1]: Entering directory `/opt/local/src/freetds/freetds_2004/src'
> Making all in tds
> make[2]: Entering directory
> `/opt/local/src/freetds/freetds_2004/src/tds'
> /bin/sh ../../libtool --mode=compile gcc -DPACKAGE=\"freetds\"
> -DVERSION=\"0.50\" -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1
> -DHAVE_UNISTD_H=1 -DWORDS_BIGENDIAN=1 -DHAVE_STRFTIME=1 -I. -I.
> -I../../include -g -O2 -DHW_BIG_ENDIAN -DTDS42 -c login.c
> rm -f .libs/login.lo
> gcc -DPACKAGE=\"freetds\" -DVERSION=\"0.50\" -DSTDC_HEADERS=1
> -DHAVE_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1 -DWORDS_BIGENDIAN=1
> -DHAVE_STRFTIME=1 -I. -I. -I../../include -g -O2 -DHW_BIG_ENDIAN -DTDS42
> -Wp,-MD,.deps/login.pp -c -fPIC -DPIC login.c -o .libs/login.lo
> login.c: In function `tds_connect':
> login.c:176: `FIONBIO' undeclared (first use in this function)
> login.c:176: (Each undeclared identifier is reported only once
> login.c:176: for each function it appears in.)
> make[2]: *** [login.lo] Error 1
> make[2]: Leaving directory `/opt/local/src/freetds/freetds_2004/src/tds'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/local/src/freetds/freetds_2004/src'
> make: *** [all-recursive] Error 1
>
>
> Any help/pointers appreciated.
>
> Mike Groeneweg
>
> --
> -=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-
> ,-._|\ M.Groeneweg AT murdoch.edu.au
> / Oz \ Workstation & Network Officer
> x_,--._/ ITS Murdoch University
> v Western Australia
> Ph: (+618) 9360 2766 Fax: (+618) 9360 6156
> ``Vi is my shepherd, I shall not font.''
>
> ---
> You are currently subscribed to freetds as: camber AT ais.org
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
>





Archive powered by MHonArc 2.6.24.

Top of Page