[unixODBC-dev] setting SQL_ATTR_ODBC_CURSORS attribute to SQL_CUR_USE_ODBC fails to open the libodbccr library on AIX

Scott Zhong Scott.Zhong at roguewave.com
Fri Jun 6 19:36:52 BST 2014


Hi,

    unixODBC 2.3.2 on AIX 6.1 after setting SQL_ATTR_ODBC_CURSORS attribute to SQL_CUR_USE_ODBC and then connecting to a data source (DB2 is used in this testcase) produces an error about unable to open cursor library.

Testcase snippet:

...
SQLULEN attr_cur = SQL_CUR_USE_ODBC;
SQLSetConnectAttr (hdbc, SQL_ATTR_ODBC_CURSORS, (SQLPOINTER)(SQLLEN)attr_cur, NULL);
SQLDriverConnect (hdbc, NULL, connStrIn, SQL_NTS, connStrOut, BUFFER_LEN, &connStrOutLen, SQL_DRIVER_NOPROMPT);
...

/>uname -srv
AIX 1 6
/>oslevel -s
6100-09-01-1341
/>xlC -qversion
IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72)
Version: 12.01.0000.0008
/>xlC -I$ODBC/include testcase_setconnectattr.cpp -L$ODBC/lib -lodbc -lpthread -liconv
/>./a.out QE197UTF dbtest1 zebco5

Using specified DSN : QE197UTF
setting SQL_ATTR_ODBC_CURSORS to "1"
DSN=QE197UTF;Uid=dbtest1;Pwd=zebco5
rc: -1
ERROR: 0:  01000 : [unixODBC][Driver Manager]Can't open cursor lib '/nfs/packages/mdx/aix/ppc32/databases/unixodbc/2.3.2/etc/libodbccr.so' : file not found
Error in Step 1 -- SQLDriverConnect failed
Exiting!!

copying "libodbccr.a" to "/nfs/packages/mdx/aix/ppc32/databases/unixodbc/2.3.2/etc/libodbccr.so" does NOT fix the issue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-dev/attachments/20140606/dbf078d7/attachment.html>


More information about the unixODBC-dev mailing list