freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Phil Larson <icplarso AT ismc.osis.gov>
- To: 'TDS Development Group' <freetds AT franklin.oit.unc.edu>
- Subject: Re: compile DBD-ODBC with freetds
- Date: Thu, 18 Mar 1999 11:28:05 -0500
Craig,
I just compiled the same code and got the exact results as Peter on my:
SunOS nettles 5.6 Generic sun4m sparc SUNW,SPARCstation-20, using gcc.
Thanks,
Phil Larson
-----Original Message-----
From: Peter Haworth [mailto:pmh AT edison.ioppublishing.com]
Sent: Thursday, March 18, 1999 6:47 AM
To: TDS Development Group
Subject: [freetds] Re: compile DBD-ODBC with freetds
Craig Spannring wrote:
> I'm suspecting alignment problems more and more. I'm still in the
> process of getting Sparc-Solaris account somewhere. In the meantime
> I'm going to go through the code and make it more longword alignment
> friendly.
>
> BTW- Could you tell me what the following little program does on a
> SPARC machine? Compile it with the same compiler flags that get used
> with the DBD driver.
>
>
> #include <stdio.h>
>
> main(int argc, char **argv)
> {
> char buf[] = "abcdefghijklmnopqrstuvwxyz";
> void *ptr = (char*)buf + atoi(argv[1]);
> long i = 0x30313233;
>
> *(long*)ptr = i;
>
> printf("%s\n", buf);
> }
>
>
>
> Run it four times, the first time with a argument of 0, second time
> with an argument of 1, ...
sagan:/home/sagan/pmh/.cpan/build/DBD-FreeTDS-0.02 % ./a.out 0
0123efghijklmnopqrstuvwxyz
sagan:/home/sagan/pmh/.cpan/build/DBD-FreeTDS-0.02 % ./a.out 1
Bus Error (core dumped)
sagan:/home/sagan/pmh/.cpan/build/DBD-FreeTDS-0.02 % ./a.out 2
Bus Error (core dumped)
sagan:/home/sagan/pmh/.cpan/build/DBD-FreeTDS-0.02 % ./a.out 3
Bus Error (core dumped)
sagan:/home/sagan/pmh/.cpan/build/DBD-FreeTDS-0.02 % ./a.out 4
abcd0123ijklmnopqrstuvwxyz
--
Peter Haworth pmh AT edison.ioppublishing.com
X Windows. Don't get frustrated without it.
X Windows. The problem for your problem.
X Windows. Even your dog won't like it.
X Windows. You'll envy the dead.
---
You are currently subscribed to freetds as: icplarso AT ismc.osis.gov
To unsubscribe, forward this message to
$subst('Email.Unsub')
-
Re: compile DBD-ODBC with freetds
, (continued)
- Re: compile DBD-ODBC with freetds, Peter Haworth, 03/03/1999
- Re: compile DBD-ODBC with freetds, Tom, 03/03/1999
- Re: compile DBD-ODBC with freetds, Brian Bruns, 03/04/1999
- Re: compile DBD-ODBC with freetds, Peter Haworth, 03/05/1999
- Re: compile DBD-ODBC with freetds, Craig Spannring, 03/05/1999
- Re: compile DBD-ODBC with freetds, Martin Spott, 03/05/1999
- Re: compile DBD-ODBC with freetds, Peter Haworth, 03/17/1999
- Re: compile DBD-ODBC with freetds, Craig Spannring, 03/18/1999
- Re: compile DBD-ODBC with freetds, Peter Haworth, 03/18/1999
- Re: compile DBD-ODBC with freetds, tetherow, 03/18/1999
- Re: compile DBD-ODBC with freetds, Phil Larson, 03/18/1999
- Re: compile DBD-ODBC with freetds, Gregg Jensen, 03/18/1999
Archive powered by MHonArc 2.6.24.