Skip site navigation (1) Skip section navigation (2)

Unresolved syms loading psqlodbc-08.00.0002's

From: Dave Bodenstab <dave(at)bodenstab(dot)org>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Unresolved syms loading psqlodbc-08.00.0002's
Date: 2005-02-09 21:25:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc

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
is loaded.

I see that win_unicode.c contains this function, so I compiled and
included it into

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/odbcapi30.c	2004-07-21 14:29:58.000000000 +0200
+++	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/odbcapi30w.c	2004-07-21 14:29:58.000000000 +0200
+++	2005-02-08 10:58:51.000000000 +0100
@@ -234,7 +234,7 @@
 	SQLPOINTER		pCharAttr,
 	SQLSMALLINT		cbCharAttrMax,	
 	SQLSMALLINT  *pcbCharAttr,
+	SQLLEN	*pNumAttr)
 	RETCODE	ret;
 	BOOL	alloced = FALSE;


pgsql-odbc by date

Next:From: Paul CochraneDate: 2005-02-10 11:05:48
Subject: Compiling using Visual Studio 2003
Previous:From: Dave PageDate: 2005-02-09 20:33:05
Subject: FW: postgresql & iodbc HOWTO document thoughts

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group