X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A6F5456A33 for ; Fri, 18 Mar 2005 05:28:35 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10590-04 for ; Fri, 18 Mar 2005 05:28:33 +0000 (GMT) Received: from digicertmy1.digicert.com.my (fw.digicert.com.my [202.185.202.34]) by svr1.postgresql.org (Postfix) with SMTP id 55F9556569 for ; Fri, 18 Mar 2005 05:28:30 +0000 (GMT) Received: (qmail 17385 invoked from network); 18 Mar 2005 05:28:30 -0000 X-NetworkBox-HamSign: 0101;OUT;digicertmy1;6fe240fdd710ed8f63f76d5335709804; Received: from unknown (HELO digicertsakhti) (192.168.1.151) by 192.168.1.1 with SMTP; 18 Mar 2005 05:28:30 -0000 Message-ID: <018501c52b7b$67c0d670$9701a8c0@digicert2003.com.my> From: "Sivasakthi d/o Sivagnanam" To: =?iso-8859-1?Q?Tomas_Sk=E4re?= , References: <80psxzifyn.fsf@junk.nocrew.org> <017c01c52b78$c32970b0$9701a8c0@digicert2003.com.my> Subject: Re: psqlodbc-08.00.0005 + libiodbc-3.52.2 + mac os x Date: Fri, 18 Mar 2005 13:29:07 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Scanned-By-digicertmy1: Virus scan performed by network-box (www.network-box.com) X-Scanned-By-digicertmy1: Scanner file id is digicertmy1-1111123710.348-17382-000 X-Scanned-By-digicertmy1: No known viruses found in message (received+scanned in 0.02/0.04 secs) X-Scanned-By-digicertmy1: Spam-Check-Result: No, hits=0 required=7 tests= autolearn=no version=2.0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.053 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200503/74 X-Sequence-Number: 5092 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" To: "Tomas Skäre" Cc: 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" To: "Valia V.Vaneeva" Cc: 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 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: Index: 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; Index: 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