From: Dave Bodenstab <dave@bodenstab.org>
To: pgsql-odbc@postgresql.org
Subject: Unresolved syms loading psqlodbc-08.00.0002's psqlodbc.so
Date: Wed, 9 Feb 2005 15:25:45 -0600 (CST)
Message-ID: <200502092125.j19LPjxr004924@base686.home.org> (raw)
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:
inline patch 1: psqlodbc-08.00.0002.new/odbcapi30.c, psqlodbc-08.00.0002.new/odbcapi30w.c (+2/-2 lines) download inline-1.patchdiff -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--
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: dave@bodenstab.org
Subject: Re: Unresolved syms loading psqlodbc-08.00.0002's psqlodbc.so
In-Reply-To: <200502092125.j19LPjxr004924@base686.home.org>
References: <200502092125.j19LPjxr004924@base686.home.org>
* 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