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 2730D8B9FA2 for ; Wed, 9 Feb 2005 21:25:58 +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 42978-09 for ; Wed, 9 Feb 2005 21:25:48 +0000 (GMT) Received: from smtp814.mail.sc5.yahoo.com (smtp814.mail.sc5.yahoo.com [66.163.170.84]) by svr1.postgresql.org (Postfix) with SMTP id 74FE78B9F90 for ; Wed, 9 Feb 2005 21:25:48 +0000 (GMT) Received: from unknown (HELO base686.home.org) (dave?bodenstab@sbcglobal.net@68.74.187.186 with plain) by smtp814.mail.sc5.yahoo.com with SMTP; 9 Feb 2005 21:25:47 -0000 Received: from base686.home.org (imdave@localhost.home.org [127.0.0.1]) by base686.home.org (8.13.1/8.13.1) with ESMTP id j19LPkW4004925 for ; Wed, 9 Feb 2005 15:25:46 -0600 (CST) (envelope-from imdave@base686.home.org) Received: (from imdave@localhost) by base686.home.org (8.13.1/8.13.1/Submit) id j19LPjxr004924 for pgsql-odbc@postgresql.org; Wed, 9 Feb 2005 15:25:45 -0600 (CST) (envelope-from imdave) Date: Wed, 9 Feb 2005 15:25:45 -0600 (CST) From: Dave Bodenstab Message-Id: <200502092125.j19LPjxr004924@base686.home.org> To: pgsql-odbc@postgresql.org Subject: Unresolved syms loading psqlodbc-08.00.0002's psqlodbc.so X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/48 X-Sequence-Number: 4938 Hello, I am using FreeBSD 4.8 I have built and installed libiodbc-3.52.2 I have built and installed the sqlite3 odbc driver. I have built psqlodbc-08.00.0002 (with the attached patch from the libiobc folks which was needed because M$ has apparently changed the api for their 64-bit architectures). When I run libiodbc's iodbctest program, I can connect to a sqlite3 db successfully. When I try to connect to a PostgreSql db, it fails. The error is because the symbol 'ucs2_to_utf8' is unresolved when psqlodbc.so is loaded. I see that win_unicode.c contains this function, so I compiled and included it into psqlodbc.so I then get unresolved references to either wbtoc or iswascii depending on whether I #define HAVE_ISWASCII I have searched FreeBSD's libc source and /usr/include for both those names, and they are not found. Any suggestions? Thank you. Dave Bodenstab Here is the patch supplied by the libiodbc folks: diff -wubB psqlodbc-08.00.0002/odbcapi30.c psqlodbc-08.00.0002.new/odbcapi30.c --- psqlodbc-08.00.0002/odbcapi30.c 2004-07-21 14:29:58.000000000 +0200 +++ psqlodbc-08.00.0002.new/odbcapi30.c 2005-02-08 10:59:23.000000000 +0100 @@ -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; diff -wubB psqlodbc-08.00.0002/odbcapi30w.c psqlodbc-08.00.0002.new/odbcapi30w.c --- psqlodbc-08.00.0002/odbcapi30w.c 2004-07-21 14:29:58.000000000 +0200 +++ psqlodbc-08.00.0002.new/odbcapi30w.c 2005-02-08 10:58:51.000000000 +0100 @@ -234,7 +234,7 @@ SQLPOINTER pCharAttr, SQLSMALLINT cbCharAttrMax, SQLSMALLINT *pcbCharAttr, - SQLPOINTER pNumAttr) + SQLLEN *pNumAttr) { RETCODE ret; BOOL alloced = FALSE; --------------060801090202080304000204--