freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Brian Bruns <camber AT umcc.ais.org>
- To: TDS Development Group <freetds AT franklin.oit.unc.edu>
- Subject: Re: Problem compiling on Solaris 2.6
- Date: Sat, 24 Jul 1999 22:51:21 -0400 (EDT)
On Fri, 23 Jul 1999, Mark Schaal wrote:
>
>
> The problem is with the enum at convert.c:510
> enum {MONTH = 1, DAY, YEAR, HOUR, MIN, SEC, MILLI};
>
> which conflicts with Solaris /usr/include/sys/time.h
> /*
> * Definitions for commonly used resolutions.
> */
> #define SEC 1
> #define MILLISEC 1000
> #define MICROSEC 1000000
> #define NANOSEC 1000000000
>
Thanks, I'll change it...I guess I assumed since it was defined locally it
would only get that scope...but since defines are preprocessed elements
that goes out the window.
Thanks for letting me know what the deal was.
>
> Change all uses of SEC to SECONDS and it should compile. Hmmm,
> or maybe prefixing everything with TDS_ would be better as a
> psuedo-namespace.
>
> Mark
>
> >
> > I am having trouble with compiling FreeTDS v0.45. If anyone has any
> > ideas
> > why this would be happening.
> [...]
> > convert.c: In function `_string_to_tm':
> > convert.c:510: parse error before `1'
> > convert.c:535: duplicate case value
> > convert.c:523: this is the first entry for that value
> [...]
> > Thank you,
> > Robert Mann
> > Lightspeed Net
>
>
> --
> Mark J. Schaal Phone: (909)
> 620-7724
> TST On Ramp Fax: (909) 620-8174
> System Administrator E-Mail: mark AT tstonramp.com
>
-
Problem compiling on Solaris 2.6,
FreeTDS, 07/23/1999
- <Possible follow-up(s)>
- Re: Problem compiling on Solaris 2.6, staff, 07/23/1999
- Re: Problem compiling on Solaris 2.6, Martin Spott, 07/23/1999
- Re: Problem compiling on Solaris 2.6, Brian Bruns, 07/24/1999
- Re: Problem compiling on Solaris 2.6, Brian Bruns, 07/24/1999
- Re: Problem compiling on Solaris 2.6, Martin Spott, 07/25/1999
Archive powered by MHonArc 2.6.24.