Instal MyODBC problem

Instal MyODBC problem

am 29.09.2005 13:16:33 von David Garcia

------=_Part_1993_20783184.1127992593702
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I cant install MyODBC Versin 3.51.11

I have installed iodbc version 3.51, ok.

Configure options:
../configure CC=3D/usr/local/bin/gcc CFLAGS=3D-m64
--with-mysql-path=3D/usr/local/mysql --with-iODBC=3D/usr/local/odbc

root@teide1 # ./configure CC=3D/usr/local/bin/gcc CFLAGS=3D-m64
--with-mysql-path=3D/usr/local/mysql --with-iODBC=3D/usr/local/odbc
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes

.....


MySQL CONFIGURATION - CLIENT LIBS AND HEADERS
checking if building of thread safe library is enabled... yes
checking for mysql_real_query... no
configure: error: Could not find compile MySQL single user test program.
Please check config.log for errors
root@teide1 #



config.log File

configure:21199: checking for mysql_real_query
configure:21256: /usr/local/bin/gcc -o conftest -DPORTABLE_GUI -m64
-I/usr/local/mysql/include -DBIG_TABLES -Xa -xstrconst -mt -D_FORTEC_
-xarch=3Dv9 conftest.c -lz -xarch=3Dv9 -L/usr/local/mysql/lib -lmysqlclient=
-lz
-lposix4 -lcrypt -lgen -lsocket -lnsl -lm >&5
gcc: unrecognized option `-Xa'
gcc: language arch=3Dv9 not recognized
ld: fatal: file conftest.c: unknown file type
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status



Any idea.
Thanks

------=_Part_1993_20783184.1127992593702--

Re: Instal MyODBC problem

am 10.10.2005 08:56:36 von pharvey

David,

It appears that you are building with gcc but some of the environment is
thinking it is using Sun Studio ('-D_FORTEC_' for example).

I am only using Sun Studio here so the root of the problem is not
immediatly obvious to me.

I recommend looking at the config.log for iODBC and for MyODBC and see
how each are recognizing the environment.


David Garcia wrote:

>I cant install MyODBC Versin 3.51.11
>
>I have installed iodbc version 3.51, ok.
>
>Configure options:
>./configure CC=/usr/local/bin/gcc CFLAGS=-m64
>--with-mysql-path=/usr/local/mysql --with-iODBC=/usr/local/odbc
>
>root@teide1 # ./configure CC=/usr/local/bin/gcc CFLAGS=-m64
>--with-mysql-path=/usr/local/mysql --with-iODBC=/usr/local/odbc
>checking build system type... sparc-sun-solaris2.9
>checking host system type... sparc-sun-solaris2.9
>checking target system type... sparc-sun-solaris2.9
>checking for a BSD-compatible install... ./install-sh -c
>checking whether build environment is sane... yes
>
>....
>
>
>MySQL CONFIGURATION - CLIENT LIBS AND HEADERS
>checking if building of thread safe library is enabled... yes
>checking for mysql_real_query... no
>configure: error: Could not find compile MySQL single user test program.
>Please check config.log for errors
>root@teide1 #
>
>
>
>config.log File
>
>configure:21199: checking for mysql_real_query
>configure:21256: /usr/local/bin/gcc -o conftest -DPORTABLE_GUI -m64
>-I/usr/local/mysql/include -DBIG_TABLES -Xa -xstrconst -mt -D_FORTEC_
>-xarch=v9 conftest.c -lz -xarch=v9 -L/usr/local/mysql/lib -lmysqlclient -lz
>-lposix4 -lcrypt -lgen -lsocket -lnsl -lm >&5
>gcc: unrecognized option `-Xa'
>gcc: language arch=v9 not recognized
>ld: fatal: file conftest.c: unknown file type
>ld: fatal: File processing errors. No output written to conftest
>collect2: ld returned 1 exit status
>
>
>
>Any idea.
>Thanks
>
>
>


--
Peter Harvey, Software Developer
MySQL AB, www.mysql.com

Are you MySQL certified? www.mysql.com/certification



--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org