pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sivasakthi d/o Sivagnanam <sakthi@digicert.com.my>
To: Tomas Skäre <tomas@nocrew.org>
To: pgsql-odbc@postgresql.org
Subject: Re: psqlodbc-08.00.0005 + libiodbc-3.52.2 + mac os x
Date: Fri, 18 Mar 2005 13:29:07 +0800
Message-ID: <018501c52b7b$67c0d670$9701a8c0@digicert2003.com.my> (raw)
References: <fb5ff2f258a7de667f9e35eb13370dd6@tpu.ru>
	<80psxzifyn.fsf@junk.nocrew.org>
	<017c01c52b78$c32970b0$9701a8c0@digicert2003.com.my>

Its ok...problem resolved.
http://www.webservertalk.com/archive155-2004-3-154252.html
Based on the comment made in the link above....i changed my odbc.ini Driver
to point to the following:-
[PgSQL]
;Driver=/usr/local/lib/psqlodbc.so
Driver=/usr/local/lib/libodbcpsql.so

ODBC Connection works now.

Thanks.
----- Original Message -----
From: "Sivasakthi d/o Sivagnanam" <sakthi@digicert.com.my>
To: "Tomas Skäre" <tomas@nocrew.org>
Cc: <pgsql-odbc@postgresql.org>
Sent: Friday, March 18, 2005 1:10 PM
Subject: Re: [ODBC] psqlodbc-08.00.0005 + libiodbc-3.52.2 + mac os x


Followed yr suggestion as i faced similar problem. Compiled successfully.
However during testing had this problem.... could u advise me what I shld do
? [OS=RedHat]

>>iodbctestw DSN=PgSQL
iODBC Unicode Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0205.0204
1: SQLDriverConnectW = [iODBC][Driver Manager]/usr/local/lib/psqlodbc.so:
undefined symbol: ucs2_to_utf8 (0) SQLSTATE=00000
2: SQLDriverConnectW = [iODBC][Driver Manager]Specified driver could not be
loaded (0) SQLSTATE=IM003

.sakthi
----- Original Message -----
From: "Tomas Skäre" <tomas@nocrew.org>
To: "Valia V.Vaneeva" <fattie@tpu.ru>
Cc: <pgsql-odbc@postgresql.org>
Sent: Thursday, March 17, 2005 2:49 AM
Subject: Re: [ODBC] psqlodbc-08.00.0005 + libiodbc-3.52.2 + mac os x


Valia V.Vaneeva <fattie@tpu.ru> writes:

> Hi,
>
> I've tried to compile psqlodbc-08.00.0005 with iODBC (libiodbc-3.52.2)
> support under Panther.
>
> The problem is as follows:
>
>   gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT odbcapi30w.lo -MD -MP -MF
> .deps/odbcapi30w.Tpo -c odbcapi30w.c  -fno-common -DPIC -o
> .libs/odbcapi30w.o
> odbcapi30w.c:238: error: conflicting types for `SQLColAttributeW'
> /usr/include/sqlucode.h:122: error: previous declaration of
> `SQLColAttributeW'
> make[1]: *** [odbcapi30w.lo] Error 1
> make: *** [all] Error 2
>
> How can it be fixed?

This patch will make it compile:

inline patch 1: odbcapi30.c, odbcapi30.c 16 Mar 2005 18:46:19 -0000 (+0/-0 lines) download inline-1.patchIndex: odbcapi30.c =================================================================== RCS file: /usr/local/cvsroot/psqlodbc/psqlodbc/odbcapi30.c,v retrieving revision 1.31 diff -u -u -r1.31 odbcapi30.c --- odbcapi30.c 21 Jul 2004 12:29:58 -0000 1.31 +++ odbcapi30.c 16 Mar 2005 18:46:19 -0000 @@ -104,7 +104,7 @@ SQLColAttribute(HSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLUSMALLINT
FieldIdentifier, PTR CharacterAttribute, SQLSMALLINT BufferLength, - SQLSMALLINT *StringLength, PTR NumericAttribute) + SQLSMALLINT *StringLength, SQLLEN *NumericAttribute) { RETCODE ret;
inline patch 2: odbcapi30w.c, odbcapi30w.c 16 Mar 2005 18:46:19 -0000 (+1/-1 lines) download inline-2.patchIndex: odbcapi30w.c =================================================================== RCS file: /usr/local/cvsroot/psqlodbc/psqlodbc/odbcapi30w.c,v retrieving revision 1.15 diff -u -u -r1.15 odbcapi30w.c --- odbcapi30w.c 21 Jul 2004 12:29:58 -0000 1.15 +++ odbcapi30w.c 16 Mar 2005 18:46:19 -0000 @@ -234,7 +234,7 @@ SQLPOINTER pCharAttr, SQLSMALLINT cbCharAttrMax, SQLSMALLINT *pcbCharAttr, - SQLPOINTER pNumAttr) + SQLLEN *pNumAttr) { RETCODE ret; BOOL alloced = FALSE;
Greetings, Tomas ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq Patches: download all (2 files, .tar.gz)

view thread (8+ messages)  latest in thread

Message-ID: <018501c52b7b$67c0d670$9701a8c0@digicert2003.com.my>
Permalink:  ../018501c52b7b$67c0d670$9701a8c0@digicert2003.com.my/
Also on:    postgresql.org/message-id/018501c52b7b$67c0d670$9701a8c0@digicert2003.com.my

 ·  · 

reply

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: sakthi@digicert.com.my, tomas@nocrew.org
  Subject: Re: psqlodbc-08.00.0005 + libiodbc-3.52.2 + mac os x
  In-Reply-To: <018501c52b7b$67c0d670$9701a8c0@digicert2003.com.my>
  References: <fb5ff2f258a7de667f9e35eb13370dd6@tpu.ru> <80psxzifyn.fsf@junk.nocrew.org> <017c01c52b78$c32970b0$9701a8c0@digicert2003.com.my> <018501c52b7b$67c0d670$9701a8c0@digicert2003.com.my>

* 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