From: Don Drake <dondrake@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Compile troubles for RHEL 5.4 and tweaks
Date: Tue, 9 Feb 2010 12:00:47 -0600
Message-ID: <6c21003b1002091000ka0b3047j4d92583a6cdefa7d@mail.gmail.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: dondrake@gmail.com
Subject: Re: Compile troubles for RHEL 5.4 and tweaks
In-Reply-To: <6c21003b1002091000ka0b3047j4d92583a6cdefa7d@mail.gmail.com>
References: <6c21003b1002091000ka0b3047j4d92583a6cdefa7d@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox