Bug #11042 How to get Myodbc driver (shared library) on AIX5.1
Submitted: 2 Jun 2005 15:52 Modified: 28 May 2013 10:52
Reporter: jihong zhang Email Updates:
Status: Unsupported Impact on me:
None 
Category:Connector / ODBC Severity:S1 (Critical)
Version:3.51.07 OS:IBM AIX (AIX5.1)
Assigned to: CPU Architecture:Any

[2 Jun 2005 15:52] jihong zhang
Description:
We want to connect with mysql database via odbc driver. Our system is AIX5.1 and mysql version is 3.23.58.
1. I can not find myodbc shared library for AIX5.1 from mysql website. We download MyODBC-3.51.07-ibm-aix5.1.0.0-powerpc.tar.gz. There is not shared library. 
How can we get shared library of myodbc driver?

2. We also download myodbc source and tried to compile it. Unfortunately we got compiling error when I compiled catalog.c
How can we solve the compile error message if we have to build my own myodbc driver.

We appreciate for your help.

The following is the compiling error messages:
Making all in driver
	make  all-am
	source='catalog.c' object='catalog.lo' libtool=yes  depfile='.deps/catalog.Plo' tmpdepfile='.deps/catalog.TPlo'  depmode=gcc /bin/sh ../depcomp  /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.   -I/usr/local//include   -O3 -DDBUG_OFF -DPORTABLE_GUI   -I/home/mysql/include -c -o catalog.lo catalog.c
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local//include -O3 -DDBUG_OFF -DPORTABLE_GUI -I/home/mysql/include -c catalog.c -Wp,-MD,.deps/catalog.TPlo -o catalog.o
In file included from catalog.c:49:
myodbc3.h:72: parse error before string constant
In file included from myodbc3.h:116,
                 from catalog.c:49:
/usr/local/include/odbcinst.h:33: parse error before `HWND'
/usr/local/include/odbcinst.h:33: warning: no semicolon at end of struct or union
/usr/local/include/odbcinst.h:35: warning: data definition has no type or storage class
/usr/local/include/odbcinst.h:118: parse error before `hwndParent'
/usr/local/include/odbcinst.h:122: parse error before `hwndParent'
/usr/local/include/odbcinst.h:123: parse error before `hwndParent'
/usr/local/include/odbcinst.h:125: parse error before `hwnd'
/usr/local/include/odbcinst.h:150: parse error before `hwndParent'
/usr/local/include/odbcinst.h:187: parse error before `hwndParent'
/usr/local/include/odbcinst.h:234: parse error before `hwndParent'
/usr/local/include/odbcinst.h:239: parse error before `hwndParent'
/usr/local/include/odbcinst.h:243: parse error before `hwndParent'
catalog.c:258: incompatible types in initialization
catalog.c:258: initializer element is not constant
catalog.c:258: (near initialization for `SQLTABLES_fields[0].type')
catalog.c:258: warning: initialization makes integer from pointer without a cast
catalog.c:258: warning: excess elements in struct initializer
catalog.c:258: warning: (near initialization for `SQLTABLES_fields[0]')
catalog.c:258: warning: excess elements in struct initializer
catalog.c:258: warning: (near initialization for `SQLTABLES_fields[0]')
catalog.c:259: incompatible types in initialization
catalog.c:259: initializer element is not constant
catalog.c:259: (near initialization for `SQLTABLES_fields[1].type')
catalog.c:259: warning: initialization makes integer from pointer without a cast
catalog.c:259: warning: excess elements in struct initializer
catalog.c:259: warning: (near initialization for `SQLTABLES_fields[1]')
catalog.c:259: warning: excess elements in struct initializer
catalog.c:259: warning: (near initialization for `SQLTABLES_fields[1]')
catalog.c:260: incompatible types in initialization
catalog.c:260: initializer element is not constant
catalog.c:260: (near initialization for `SQLTABLES_fields[2].type')
catalog.c:260: warning: initialization makes integer from pointer without a cast
catalog.c:260: warning: excess elements in struct initializer
catalog.c:260: warning: (near initialization for `SQLTABLES_fields[2]')
catalog.c:260: warning: excess elements in struct initializer
catalog.c:260: warning: (near initialization for `SQLTABLES_fields[2]')
catalog.c:261: incompatible types in initialization
catalog.c:261: initializer element is not constant
......

How to repeat:
We failed to find a shared library of myodbc driver on AIX5.1.
[1 Oct 2005 13:07] Valeriy Kravchuk
Thank you for a problem report. Sorry for not handling it for such a long time. You binary package is still the last released for AIX. But, please, can you try to compile newer, 3.51.11 version (available at http://dev.mysql.com/downloads/connector/odbc/3.51.html) and inform me if you still have problems with it.
[2 Nov 2005 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[28 May 2013 10:52] Bogdan Degtyariov
We do not support AIX 5.1 anymore.
Closing the bug with the "Unsupported" status.