List:MySQL ODBC« Previous MessageNext Message »
From:Martin J. Evans Date:August 3 2012 1:18pm
Subject:Re: mysql-connector-odbc-5.1.11 Fails to build
View as plain text  
On 03/08/12 14:03, Caleb Ramírez wrote:
> Hello,
>
> I'm trying to build mysql-connector-odbc on AIX 6.1. I've installed MySQL client
> libraries and include files from source in /usr/local/mysql. The cmake version is 2.8.8.
> There are insalled  unixODBC and iODBC managers and cmake finishes successfully. But when
> make is launched it exits with folowing error:
>
> Scanning dependencies of target myodbc3u
> [  2%] Building C object util/CMakeFiles/myodbc3u.dir/stringutil.c.o
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:127:15: error:
> macro "my_free" requires 2 arguments, but only 1 given
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c: In function
> 'sqlchar_as_sqlwchar':
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:127: error:
> 'my_free' undeclared (first use in this function)
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:127: error:
> (Each undeclared identifier is reported only once
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:127: error: for
> each function it appears in.)
>
> -------I "fixed" the problem by setting same definitions for macro my_free on
> dirver/driver.h and util/stringutil.h but another error came up:-----------
>
> Target "util/CMakeFiles/myodbc3u.dir/build" is up to date.
> [  8%] Built target myodbc3u
> [ 10%] Building C object driver/CMakeFiles/myodbc5.dir/ansi.c.o
> [ 12%] Building C object driver/CMakeFiles/myodbc5.dir/catalog.c.o
> [ 14%] Building C object driver/CMakeFiles/myodbc5.dir/catalog_no_i_s.c.o
> [ 16%] Building C object driver/CMakeFiles/myodbc5.dir/connect.c.o
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c: In function
> 'MySQLDriverConnect':
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:614: error:
> 'RTLD_GLOBAL' undeclared (first use in this function)
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:614: error:
> (Each undeclared identifier is reported only once
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:614: error: for
> each function it appears in.)
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:614: error:
> 'RTLD_LAZY' undeclared (first use in this function)
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:614: warning:
> assignment makes pointer from integer without a cast
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:638: warning:
> passing argument 3 of 'set_dbc_error' makes pointer from integer without a cast
>
> And now I'm stucked here, can anybody help me please?
>
> Regards
>
>
>

Those macros (RTLD_*) are in dlfcn.h normally - see man page for dlopen. I haven't built
mysql odbc driver for years and it may use libtool in which case you need to install
that. libtool provides a wrapper around dlopen etc.

Martin
-- 
Martin J. Evans
Easysoft Limited
http://www.easysoft.com
Thread
Re: mysql-connector-odbc-5.1.11 Fails to buildCaleb Ramírez3 Aug
  • Re: mysql-connector-odbc-5.1.11 Fails to buildMartin J. Evans3 Aug