Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 3FF686338C0 for ; Tue, 9 Feb 2010 14:00:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 35397-02 for ; Tue, 9 Feb 2010 18:00:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.223.182]) by mail.postgresql.org (Postfix) with ESMTP id 36228632D7F for ; Tue, 9 Feb 2010 14:00:48 -0400 (AST) Received: by iwn12 with SMTP id 12so8996729iwn.26 for ; Tue, 09 Feb 2010 10:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=VmejkteEM0azlUGDHwGd1k/UBs+pRtDOPjFLPhSrphQ=; b=vU3df4RAIbMKnvum16m7uu2PGdgAw2udi5Cz+3ujFw9nEl9VbJzIwQHxnkrhgvwipv Th2lBHQ8r0wWTB6eUIQKNQJ6MV8SjlTTQnKveZ/DWf+IonVKeZVgd69011tflVbAFS6A TG2sbWL2foo0m/+4jeiluEdLJeuNgYhKK0kZk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=TlTIoRtlfpI/PJjgzouOxI57NNev6a3hJ2tgP7YC0cFXwIsdsPRTSxPl5hO/JG5m0Y 538wRNYnV5c4ffuiKZv1d3PMnCeum7IK7w68gO/P0mfPtduOQWq1D2qmXICgEoY1RptB GZyGAdssaXvwZpNCnGvi4hvEcBGiqN50XRcjU= MIME-Version: 1.0 Received: by 10.231.168.133 with SMTP id u5mr2795126iby.29.1265738447113; Tue, 09 Feb 2010 10:00:47 -0800 (PST) Date: Tue, 9 Feb 2010 12:00:47 -0600 Message-ID: <6c21003b1002091000ka0b3047j4d92583a6cdefa7d@mail.gmail.com> Subject: Compile troubles for RHEL 5.4 and tweaks From: Don Drake To: pgsql-odbc@postgresql.org Content-Type: multipart/alternative; boundary=00504501588e84d136047f2eb2f8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201002/3 X-Sequence-Number: 10190 --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=A0=A0=A0=A0 *make_lstring_ifneeded(ConnectionClass *, const char *s, ssize_t=20 len, BOOL);

---

> char=A0=A0=A0=A0 *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=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,

---

>=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,

>=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,

=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--