[unixODBC-support] Unable to get isql working on AIX 7.1

Kevin Adler kadler at us.ibm.com
Mon Jan 25 18:34:39 GMT 2016


On AIX,  use -maix64 or -maix32 instead of -m64 or -m32. See 
http://www.ibm.com/developerworks/aix/library/au-gnu.html

The -q64 is only for the IBM xlc compiler.

Regards


Kevin Adler


Software Development - DB2 for i, Database Access for IBM i

 

IBM Systems & Technology Group
015-3/C117
3605 Hwy 52 N
Rochester, MN 55901-1407
United States

Dept: 45X
Phone:
+1-507-253-5111
email:
kadler at us.ibm.com




From:   Sundar Mahadevan <sundarmahadevan82 at gmail.com>
To:     Support for the unixODBC project 
<unixodbc-support at mailman.unixodbc.org>
Date:   01/25/2016 11:51 AM
Subject:        Re: [unixODBC-support] Unable to get isql working on AIX 
7.1
Sent by:        unixodbc-support-bounces at mailman.unixodbc.org



Hi Nick,
Thank you for the response. During the original install, i used the 
following export variables.

export CC=gcc
export CFLAGS="-maix64 -q64 -DBUILD_REAL_64_BIT_MODE"
export OBJECT_MODE=64

As per your suggestion, i set the following export variables (based on 
https://community.oracle.com/thread/2569247?tstart=0)

export PATH=/usr/ccs/bin:$PATH
export CFLAGS="-m64 -DBUILD_REAL_64_BIT_MODE"
export CXXFLAGS="-m64 -DBUILD_REAL_64_BIT_MODE"

But i get the following error. Any ideas on what value should i set it to?

cc1: error: unrecognized command line option "-m64"
configure:3648: error: C compiler cannot create executables

I got the same error for the following settings as well.

export PATH=/usr/ccs/bin:$PATH
export CFLAGS="-m64"
export CXXFLAGS="-m64"

cc1: error: unrecognized command line option "-m64"
configure:3648: error: C compiler cannot create executables

I am trying to find what the acceptable values for CFLAGS are, but could 
not find any with google. Appreciate your help. Thanks.


On Fri, Jan 22, 2016 at 9:59 AM, Nick Gorham <nick at lurcher.org> wrote:
On 22/01/16 14:53, Sundar Mahadevan wrote:
Hi Nick,
Thanks for the quick response. The following are the commands, i used to 
install the driver manager with the 64 bit flags set. While running 
/usr/bin/make i got gcc: unrecognized option '-q64'. I am not sure if it 
was critical since i did not see any error when i ran /usr/bin/make 
install

dbclient at omsa4103:SUPCON(/u13/app/DBCLIENT/unixODBC-2.3.4)> export CC=gcc
dbclient at omsa4103:SUPCON(/u13/app/DBCLIENT/unixODBC-2.3.4)> export 
CFLAGS="-maix64 -q64 -DBUILD_REAL_64_BIT_MODE"
dbclient at omsa4103:SUPCON(/u13/app/DBCLIENT/unixODBC-2.3.4)> export 
OBJECT_MODE=64
dbclient at omsa4103:SUPCON(/u13/app/DBCLIENT/unixODBC-2.3.4)> 
/u13/app/DBCLIENT/unixODBC-2.3.4/configure 
--prefix=/home/oracle/bin/UnixOdbcDriverManager --enable-gui=no 
--enable-drivers=no

no errors for the above command

dbclient at omsa4103:SUPCON(/u13/app/DBCLIENT/unixODBC-2.3.4)> /usr/bin/make

Its normally -m64 for gcc, not sure I use IBM's compiler on AIX to build 
Easysoft drivers.


-- 
Nick
_______________________________________________
unixODBC-support mailing list
unixODBC-support at mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support
_______________________________________________
unixODBC-support mailing list
unixODBC-support at mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support






More information about the unixODBC-support mailing list