From: | Don Drake <dondrake(at)gmail(dot)com> |
---|---|
To: | pgsql-odbc(at)postgresql(dot)org |
Subject: | Compile troubles for RHEL 5.4 and tweaks |
Date: | 2010-02-09 18:00:47 |
Message-ID: | 6c21003b1002091000ka0b3047j4d92583a6cdefa7d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
I thought I would pass along the steps I had to do to get Postgres drivers
built on Red Hat 5.4 x86_64.
First, I had to build unixODBC-2.2.15pre since 2.2.14 had incorrect header
files.
Here are the diffs from my changes to the postgres odbc code:
Edit misc.c
$ diff /content_dev/psqlodbc-08.04.0200/misc.c misc.c
152c152
< make_lstring_ifneeded(ConnectionClass *conn, const char *s, ssize_t len,
BOOL ifallupper)
---
> make_lstring_ifneeded(ConnectionClass *conn, const SQLCHAR *s, ssize_t
len, BOOL ifallupper)
Edit misc.h
$ diff /content_dev/psqlodbc-08.04.0200/misc.h misc.h
133c133
< char *make_lstring_ifneeded(ConnectionClass *, const char *s, ssize_t
len, BOOL);
---
> char *make_lstring_ifneeded(ConnectionClass *, const SQLCHAR *s,
ssize_t len, BOOL);
Edit odbcapi.c
$ diff /content_dev/psqlodbc-08.04.0200/odbcapi.c odbcapi.c
1115c1115,1116
< SQLROWSETSIZE *pcrow,
---
> //SQLROWSETSIZE *pcrow,
> SQLULEN *pcrow,
Hopefully this will make it easier for someone else.
Is there an easier way to get the latest ODBC driver installed?
Thanks.
-Don
From | Date | Subject | |
---|---|---|---|
Next Message | Arnaud Lesauvage | 2010-02-12 11:10:24 | How to speedup inserts via ADO ? |
Previous Message | Hiroshi Inoue | 2010-02-05 22:23:57 | Re: Error when update VarBinary field C# psqlodbc_08_04_0200 |