freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Norbert Sendetzky <norbert AT linuxnetworks.de>
- To: freetds AT lists.ibiblio.org
- Subject: Re: [freetds] CS_INT size bug
- Date: Sun, 3 Sep 2006 19:52:26 +0200
On Sunday 03 September 2006 18:00, freetds-request AT lists.ibiblio.org wrote:
> > The 32 bit types CS_INT and tds_sysdep_int32_type are incorrectly defined
> > to "int", which is only true for 32bit plattforms.
>
> tds_sysdep_public.h is generated by the configure script, which tests the
> machine it's run on and sets the size of tds_sysdep_int32_type accordingly.
>
> If you were to run configure on a 32-bit machine and move the resulting
> source code tree to a 64-bit one, I'd expect the error you're encountering
> (unless you used the --build option).
>
> If you didn't do anything so fancy, please have a look at config.log and
> let us know what hardware architecture you're using. Maybe the
> config.guess file has become outdated.
I'm using a standard 32bit x86 machine.
The problem I'm facing are lots of warnings when compiling the sybase backend
of my library (OpenDBX, http://www.linuxnetworks.de/opendbx/) against FreeTDS
instead of the Sybase ctlib.
In Sybase' ctlib, CS_INT is defined as "long" and as "int" in FreeTDS which
is
problematic when using printf() functions. This is because of the different
expectations gcc/printf have when handling "%d" and "%ld" modifiers.
Norbert
--
OpenPGP public key
http://www.linuxnetworks.de/norbert.pubkey.asc
Attachment:
pgpvGaGumiucT.pgp
Description: PGP signature
-
[freetds] CS_INT size bug,
Norbert Sendetzky, 09/02/2006
- Re: [freetds] CS_INT size bug, jklowden, 09/02/2006
- <Possible follow-up(s)>
-
Re: [freetds] CS_INT size bug,
Norbert Sendetzky, 09/03/2006
-
Re: [freetds] CS_INT size bug,
entropy, 09/03/2006
-
Re: [freetds] CS_INT size bug,
jklowden, 09/03/2006
- Re: [freetds] CS_INT size bug, entropy, 09/03/2006
-
Re: [freetds] CS_INT size bug,
jklowden, 09/03/2006
-
Re: [freetds] CS_INT size bug,
entropy, 09/03/2006
- Re: [freetds] CS_INT size bug, michael . peppler, 09/04/2006
-
Re: [freetds] CS_INT size bug,
Norbert Sendetzky, 09/05/2006
- Re: [freetds] CS_INT size bug, entropy, 09/05/2006
-
Re: [freetds] CS_INT size bug,
Lowden, James K, 09/05/2006
- Re: [freetds] CS_INT size bug, entropy, 09/06/2006
-
Re: [freetds] CS_INT size bug,
Norbert Sendetzky, 09/06/2006
- Re: [freetds] CS_INT size bug, entropy, 09/06/2006
Archive powered by MHonArc 2.6.24.