freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: tetherow AT nol.org
- To: freetds AT franklin.oit.unc.edu
- Cc: cts AT internetcds.com
- Subject: Re: compile DBD-ODBC with freetds
- Date: Thu, 18 Mar 1999 10:09:29 -0600 (EST)
On 17 Mar, Craig Spannring wrote:
> Peter Haworth writes:
> > Craig Spannring wrote:
> > > Peter Haworth writes:
> >
> > and here's the stack trace:
> >
> > #0 0xef524b8c in AllocMemory_real (ptr=0xb4864, size=6,
> > filename=0xef52cce8 "dbdimp.c", lineno=376) at tdslayer.c:253
> > Source file is more recent than executable.
>
>
> 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, ...
It does just as you expect. It works for any x where x%4==0 and bus
errors on every other occurance.
Replied to the list so that you didn't get a half a dozen of these (or
atleast a half a dozen more :)
--
------------------------------------------------------------------------
Sam Tetherow tetherow AT nol.org
Director of Development
Nebrask@ Online http://www.nol.org/
-
compile DBD-ODBC with freetds,
Keith A. Clay, 03/03/1999
- <Possible follow-up(s)>
- 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.