Issues when cross-compile the freetds using unixODBC

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues when cross-compile the freetds using unixODBC

ZhengYabin
Hi,
        I’m recently using unixODBC and freetds to build a development environment for accessing a remote SQL Server on an arm-linux platform.
Things I’ve already done:
1.build x86 unixODBC with “./configure --prefix=/usr/local/unixODBC-x86”
2. cross-compile build unixODBC with “./configure --prefix=/usr/local/unixODBC-arm --host=arm-linux”

Then I tried to build freetds with unixODBC
3.build x86 freetds with “./configure --prefix=/usr/local/freetds-x86 --with-unixodbc=/usr/local/unixODBC-x86”, the process is good.
4. but when I tried to build arm edition with
“./configure --prefix=/usr/local/freetds-arm --with-unixodbc=/usr/local/unixODBC-arm --host=arm-linux”
it always genarated an error

./configure: line 16574: /usr/local/unixODBC-arm/bin/odbc_config: connot execute binary file
./configure: line 16575: /usr/local/unixODBC-arm/bin/odbc_config: connot execute binary file
configure: error: sql.h not found

It seems the configure script tried to execute the arm-linux edition odbc_config, it will definitely failed.
How to fix the problem to complete the cross-compile build?



发自 Windows 邮件


_______________________________________________
unixODBC-dev mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issues when cross-compile the freetds using unixODBC

Frediano Ziglio
2014-03-01 1:29 GMT+00:00 ZhengYabin <[hidden email]>:

> Hi,
>         I’m recently using unixODBC and freetds to build a development
> environment for accessing a remote SQL Server on an arm-linux platform.
>
> Things I’ve already done:
> 1.build x86 unixODBC with “./configure --prefix=/usr/local/unixODBC-x86”
> 2. cross-compile build unixODBC with “./configure
> --prefix=/usr/local/unixODBC-arm --host=arm-linux”
>
> Then I tried to build freetds with unixODBC
> 3.build x86 freetds with “./configure --prefix=/usr/local/freetds-x86
> --with-unixodbc=/usr/local/unixODBC-x86”, the process is good.
> 4. but when I tried to build arm edition with
> “./configure --prefix=/usr/local/freetds-arm
> --with-unixodbc=/usr/local/unixODBC-arm --host=arm-linux”
> it always genarated an error
>
> ./configure: line 16574: /usr/local/unixODBC-arm/bin/odbc_config: connot
> execute binary file
> ./configure: line 16575: /usr/local/unixODBC-arm/bin/odbc_config: connot
> execute binary file
> configure: error: sql.h not found
>
> It seems the configure script tried to execute the arm-linux edition
> odbc_config, it will definitely failed.
> How to fix the problem to complete the cross-compile build?
>

Try to delete odbc_config. configure script always try to execute it
if found but in this case cannot execute it. I always though this was
a shell script.

Frediano
_______________________________________________
unixODBC-dev mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issues when cross-compile the freetds using unixODBC

Nick Gorham-2
In reply to this post by ZhengYabin
On 01/03/14 01:29, ZhengYabin wrote:
Hi,
        I’m recently using unixODBC and freetds to build a development environment for accessing a remote SQL Server on an arm-linux platform.
Things I’ve already done:
1.build x86 unixODBC with “./configure --prefix=/usr/local/unixODBC-x86”
2. cross-compile build unixODBC with “./configure --prefix=/usr/local/unixODBC-arm --host=arm-linux”

Then I tried to build freetds with unixODBC
3.build x86 freetds with “./configure --prefix=/usr/local/freetds-x86 --with-unixodbc=/usr/local/unixODBC-x86”, the process is good.
4. but when I tried to build arm edition with
“./configure --prefix=/usr/local/freetds-arm --with-unixodbc=/usr/local/unixODBC-arm --host=arm-linux”
it always genarated an error

./configure: line 16574: /usr/local/unixODBC-arm/bin/odbc_config: connot execute binary file
./configure: line 16575: /usr/local/unixODBC-arm/bin/odbc_config: connot execute binary file
configure: error: sql.h not found

It seems the configure script tried to execute the arm-linux edition odbc_config, it will definitely failed.
How to fix the problem to complete the cross-compile build?



发自 Windows 邮件

Try later source,

2.3.1 contained this change

"Generate unixodbc_conf.h using macros to allow cross compiling"

--
Nick

_______________________________________________
unixODBC-dev mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev