Skip to Content.
Sympa Menu

freetds - Re: [freetds] compilation issue

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] compilation issue
  • Date: 05 Feb 2003 17:42:59 +0100

Il mer, 2003-02-05 alle 17:20, Thompson, Bill D (London) ha scritto:
> Hi,
>
> I'm trying to compile FreeTDS on a SUN solaris box that's unfamiliar to me.
>
> I'm getting some errors that I'm at pains to understand. I know there's some
> people out there with much more knowledge of the different compilers than
> me, so I'll throw myself on your tender mercies.
>
> On this box the default cc compiler appears to be /usr/ucb/cc . There is no
> gcc on the box.
>
> Out of configure , Ive gotten:
>
> checking for /usr/ucb/cc option to accept ANSI C... none needed
> ...
> checking for asprintf... no
> checking for vasprintf... no
> ...
>
> then out of make I've gotten:
>
> /usr/ucb/cc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -D_FREETDS_LIBRARY_SOURCE -DTDS50 -g -c asprintf.c -KPIC -DPIC
> -o .libs/asprintf.o
> "asprintf.c", line 24: va_start: argument mismatch
> "../../include/replacements.h", line 38: warning: const is a keyword in ANSI
> C
> "../../include/replacements.h", line 38: syntax error before or at: const
> "../../include/replacements.h", line 38: warning: undefined or missing type
> for: const
> "../../include/replacements.h", line 42: syntax error before or at: const
> "../../include/replacements.h", line 42: warning: undefined or missing type
> for: const
> "../../include/replacements.h", line 42: warning: undefined or missing type
> for: va_list
> "asprintf.c", line 19: syntax error before or at: const
> "asprintf.c", line 19: warning: undefined or missing type for: const
> "asprintf.c", line 24: undefined symbol: __builtin_va_alist
> "asprintf.c", line 25: undefined symbol: fmt
>
> This makes no sense to me. I guess /usr/ucb/cc is an ANSI C compiler, but it
> then complains that "warning: const is a keyword in ANSI C"
>
> I'm probably being dumb here, but I'd appreciate any help....
>

Try to add
#define const
line to config.h
Perhaps SUN C compiler do not support const but reserve as a reserved
word... the same problem with export and g++... not implemented but
reserverd...

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page