--00504501588e84d136047f2eb2f8
Content-Type: text/plain; charset=ISO-8859-1
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
--00504501588e84d136047f2eb2f8
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<br>I thought I would pass along the steps I had to do to get Postgres driv=
ers built on Red Hat 5.4 x86_64.<br><br>First, I had to build unixODBC-2.2.=
15pre since 2.2.14 had incorrect header files.<br><br>Here are the diffs fr=
om my changes to the postgres odbc code:<br>
<br><p class=3D"MsoNormal">Edit misc.c</p>
<p class=3D"MsoNormal">$ diff /content_dev/psqlodbc-08.04.0200/misc.c
misc.c</p>
<p class=3D"MsoNormal">152c152</p>
<p class=3D"MsoNormal">< make_lstring_ifneeded(ConnectionClass
*conn, const char
*s, ssize_t len, BOOL ifallupper)</p>
<p class=3D"MsoNormal">---</p>
<p class=3D"MsoNormal">> make_lstring_ifneeded(ConnectionClass
*conn, const
SQLCHAR *s, ssize_t len, BOOL ifallupper)</p>
<p class=3D"MsoNormal">=A0</p>
<p class=3D"MsoNormal">Edit misc.h</p>
<p class=3D"MsoNormal">$ diff /content_dev/psqlodbc-08.04.0200/misc.h
misc.h</p>
<p class=3D"MsoNormal">133c133</p>
<p class=3D"MsoNormal">< char=A0=A0=A0=A0
*make_lstring_ifneeded(ConnectionClass *, const char *s, ssize_t
len, BOOL);</p>
<p class=3D"MsoNormal">---</p>
<p class=3D"MsoNormal">> char=A0=A0=A0=A0
*make_lstring_ifneeded(ConnectionClass *, const SQLCHAR *s, ssize_t
len, BOOL);</p>
<p class=3D"MsoNormal">=A0</p>
<p class=3D"MsoNormal">Edit odbcapi.c</p>
<p class=3D"MsoNormal">$ diff /content_dev/psqlodbc-08.04.0200/odbcapi.c
odbcapi.c</p>
<p class=3D"MsoNormal">1115c1115,1116</p>
<p class=3D"MsoNormal"><=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
SQLROWSETSIZE *pcrow,</p>
<p class=3D"MsoNormal">---</p>
<p class=3D"MsoNormal">>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
//SQLROWSETSIZE *pcrow,</p>
<p class=3D"MsoNormal">>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
SQLULEN *pcrow,</p>
<p class=3D"MsoNormal">=A0</p><p class=3D"MsoNormal">Hopefully this will ma=
ke it easier for someone else.</p><p class=3D"MsoNormal">Is there an easier=
way to get the latest ODBC driver installed?</p><p class=3D"MsoNormal">Tha=
nks.<br>
</p><p class=3D"MsoNormal">-Don<br></p><p class=3D"MsoNormal"><br></p><br>
--00504501588e84d136047f2eb2f8--
