Skip to Content.
Sympa Menu

freetds - RE: [freetds] fd_Set -parse error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Swapna_Anand <Swapna_Anand AT Satyam.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] fd_Set -parse error
  • Date: Mon, 27 Oct 2003 18:00:23 +0530


Hi All,

Jkl- Thanks for the reply. "Man fs_set" does not find an entry in Interix.
Iam trying out workarounds and have reached a stage where I feel that it is
not getting thru the following code

#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE
# include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
# include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>

in "configure" giving the following errors


Making all in unittests
if /bin/sh ../../libtool --mode=compile gcc -I. -I. -I../../include
-I../..
clude -D_ALL_SOURCE -D_FREETDS_LIBRARY_SOURCE -DTDS50 -Wall
-Wstrict-prototy -Wmissing-prototypes -D_ALL_SOURCE -MT login.lo -MD -MP
-MF ".deps/login.Tp -c -o login.lo `test -f 'login.c' || echo './'`login.c;
then mv ".deps/logipo" ".deps/login.Plo"; else rm -f ".deps/login.Tpo";
exit 1; figcc -I. -I. -I../../include -I../../include -D_ALL_SOURCE
-D_FREETDS_LIBRARY_RCE -DTDS50 -Wall -Wstrict-prototypes
-Wmissing-prototypes -D_ALL_SOURCE -MT
in.lo -MD -MP -MF .deps/login.Tpo -c login.c -o login.o
login.c: In function `tds_set_server':
login.c:143: warning: implicit declaration of function `strlen'
login.c:144: warning: implicit declaration of function `getenv'
login.c:144: warning: assignment makes pointer from integer without a cast
login.c: In function `tds_set_capabilities':
login.c:189: warning: implicit declaration of function `memcpy'
login.c: In function `tds_connect':
login.c:202: error: storage size of `sin' isn't known
login.c:206: error: storage size of `selecttimeout' isn't known
login.c:207: error: `fd_set' undeclared (first use in this function)
login.c:207: error: (Each undeclared identifier is reported only once
login.c:207: error: for each function it appears in.)
login.c:207: error: parse error before "fds"
login.c:217: warning: implicit declaration of function `FD_ZERO'
login.c:217: error: `fds' undeclared (first use in this function)
login.c:269: warning: implicit declaration of function `inet_addr'
login.c:276: error: `AF_INET' undeclared (first use in this function)
login.c:277: warning: implicit declaration of function `htons'
login.c:286: warning: implicit declaration of function `inet_ntoa'
login.c:286: warning: implicit declaration of function `ntohs'
login.c:287: warning: implicit declaration of function `socket'
login.c:287: error: `SOCK_STREAM' undeclared (first use in this function)
login.c:297: warning: implicit declaration of function `ioctl'
login.c:297: error: `FIONBIO' undeclared (first use in this function)
login.c:301: warning: implicit declaration of function `connect'
login.c:302: error: `errno' undeclared (first use in this function)
login.c:302: error: `EINPROGRESS' undeclared (first use in this function)
login.c:312: warning: implicit declaration of function `FD_SET'
login.c:315: warning: implicit declaration of function `select'
login.c:316: error: `EINTR' undeclared (first use in this function)
login.c:331: warning: implicit declaration of function `free'
login.c:356: warning: implicit declaration of function `malloc'
login.c:362: warning: implicit declaration of function `strcat'
login.c:363: warning: implicit declaration of function `strchr'
login.c:202: warning: unused variable `sin'
login.c:206: warning: unused variable `selecttimeout'
login.c: In function `tds_send_login':
login.c:455: warning: implicit declaration of function `exit'
login.c:527: warning: implicit declaration of function `strcpy'
login.c: In function `tds7_send_auth':
login.c:635: warning: implicit declaration of function `memset'
login.c: In function `tds7_send_login':
login.c:724: warning: implicit declaration of function `getpid'
*** Error code 1

Stop.

Do let me know if it looks right? Would highly, appreciate any suggestions.

Thanks
Swapna



-----Original Message-----
From: Lowden, James K [mailto:LowdenJK AT bernstein.com]
Sent: Wednesday, October 22, 2003 11:16 PM
To: 'FreeTDS Development Group'
Subject: RE: [freetds] fd_Set -parse error

> From: Swapna_Anand [mailto:Swapna_Anand AT Satyam.com]
> Sent: October 22, 2003 2:19 AM
>
> Hi All,
> I am trying to configure and make Freetds 0.61 on
> Interix subsystem
> of windows(SFU).Configure went on fine but "make" gives me
> the following
> error
>
> Making all in pool
> if gcc -DHAVE_CONFIG_H -I. -I. -I../../include
> -I../../include -I. -I../serv
> -D_FREETDS_LIBRARY_SOURCE -DTDS50 -Wall -Wstrict-prototypes
> -Wmissing-proto
> s -g -O2 -MT config.o -MD -MP -MF ".deps/config.Tpo" -c -o
> config.o `test
> config.c' || echo './'`config.c; then mv ".deps/config.Tpo"
> ".deps/config.P
> else rm -f ".deps/config.Tpo"; exit 1; fi
> In file included from config.c:35:
> pool.h:100: error: parse error before "fd_set"
> pool.h:100: warning: function declaration isn't a prototype

What does Interix say about "man fs_set"? Is fd_set defined in (the
equivalent of) /usr/include/*.h ?

If you work up a patch for src/pool that lets it at least compile on
Interix, that would be great. Unless you need the pool server, though, you
could just hack the Makefile or "#if 0" the bodies of src/pool/*.c to go
around the issue.

HTH.

--jkl
-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.


_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************




Archive powered by MHonArc 2.6.24.

Top of Page