Compile troubles for RHEL 5.4 and tweaks
am 09.02.2010 19:00:47 von Don Drake--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
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.
First, I had to build unixODBC-2.2.=
15pre since 2.2.14 had incorrect header files.
Here are the diffs fr=
om 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=20
*conn, const char
*s, ssize_t len, BOOL ifallupper)
---
> make_lstring_ifneeded(ConnectionClass=20
*conn, const
SQLCHAR *s, ssize_t len, BOOL ifallupper)
=A0
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=20
len, BOOL);
---
> char
*make_lstring_ifneeded(ConnectionClass *, const SQLCHAR *s, ssize_t
len, BOOL);
=A0
Edit odbcapi.c
$ diff /content_dev/psqlodbc-08.04.0200/odbcapi.c
odbcapi.c
1115c1115,1116
< =
=A0
SQLROWSETSIZE *pcrow,
---
> =
=A0
//SQLROWSETSIZE *pcrow,
> =
=A0
SQLULEN *pcrow,
=A0
Hopefully this will ma=
ke it easier for someone else.
Is there an easier=
way to get the latest ODBC driver installed?
Tha=
nks.
-Don
--00504501588e84d136047f2eb2f8--