AIX endian problems
Geoff Winkless
geoff at farmline.com
Tue Jul 11 06:19:19 EDT 2000
"Mark Schaal" <mark at champ.tstonramp.com> writes:
> > I've compiled the tds library on AIX 4.3.2. This is big endian
hardware.
> >
> > Autoconf defines both HW_BIG_ENDIAN and WORDS_BIGENDIAN.
> >
> > While the tds unittests all report success, the "sample" tdstest.c
> > program fails. The dumps all include the following message:
> >
> > The token datastream length was not correct. This is an internal
> > protocol error.
> [...]
> > Thanks,
> >
> > Tom
>
> If you pass the unittests you should be okay. There are some
> endian issues with TDS7.0 on big endian hardware for certain
> data types, but I believe that should be the only problem case.
>
> Oddly, I couldn't find your error message anywhere in the freeTDS
> files.
Hmm. The last time I had that symptom (error messages that aren't in the
code) I ended up realising that I was running the wrong libraries.
Check that you're linking to freetds, not (eg) Sybase's libs.
Geoff
More information about the FreeTDS
mailing list