Skip to Content.
Sympa Menu

freetds - Re: FreeTDS on Solaris

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Gregg Jensen <greggj AT savvis.net>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: FreeTDS on Solaris
  • Date: Tue, 23 Feb 1999 09:24:49 -0600


Martin Spott wrote:
>
> I'm still busy in hoping to get FreeTDS to work on my Solaris/Sparc box.
>
> The last version I was trying is the one from CVS repository I cehcked out
> this morning 8:54 CET. I'm using 'egcs-2.91.60' as compiler. This starts so
> look quite fine. 'configure' tells me:
>
> ./configure --prefix=/opt/freetds --enable-shared --disable-static
> [...]
> checking whether byte ordering is bigendian... yes
> [...]
>
> The second 'configure' that is run within 'make' seconds that. _Really_
> nice. But later, 'make' tells me the following:
>
> make[2]: Entering directory /usr/local/src/freetds/src/tds'
> /bin/sh ../../libtool --mode=compile gcc -DPACKAGE=\"freetds\"
> -DVERSION=\"0.41\" -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1
> -DWORDS_BIGENDIAN=1 -DHAVE_STRFTIME=1 -I. -I. -I../../include -O3
> ^^^^^^^^^
> -DHW_LITTLE_ENDIAN -DTDS50 -c mem.c
> ^^^^^^^^^^^^^

Configure is still broken for Solaris. What I have done, is manually
change the lines that look like this:


if test "$CFLAGS"AAA = AAA ; then OLDCFLAGS="$OLDCFLAGS
-DHW_LITTLE_ENDIAN";
else OLDCFLAGS="$OLDCFLAGS -DHW_BIG_ENDIAN"; fi
CFLAGS=$OLDCFLAGS

to

#if test "$CFLAGS"AAA = AAA ; then OLDCFLAGS="$OLDCFLAGS
-DHW_LITTLE_ENDIAN";
#else OLDCFLAGS="$OLDCFLAGS -DHW_BIG_ENDIAN"; fi
OLDCFLAGS="$OLDCFLAGS -DHW_BIG_ENDIAN"
CFLAGS=$OLDCFLAGS

(basically hard wired it for BIG_ENDIAN)

I too, see it re-run configure after running configure on Solaris, but
with the change above, I have been able to get it compiled successfully
and linked with sqsh-1.4. With a minor word alignment change in
tds_convert_flt8, I have been able to run a large portion of sql
commands successfully (only testing dblib stuff right now). In fact,
the output that I have gotten from sqsh on Solaris (sparc) has matched
the output I get from sqsh on Linux (intel) except for one particular
query that spits out a few unknown tokens at the end of the output.

Gregg




Archive powered by MHonArc 2.6.24.

Top of Page