Linking amd64 binary with a 32-bit linux library

2008-08-07 Thread Maxim Khitrov
My knowledge of compilers is insufficient to answer this question. I'm currently going through the process of installing a 32-bit version of Matlab onto FreeBSD 7.0 amd64. In fact, Matlab itself has been installed and seems to be running fine (albeit without a GUI due to some java-related issues).

Re: Linking amd64 binary with a 32-bit linux library

2008-08-07 Thread Kris Kennaway
Maxim Khitrov wrote: I take it that this happens because libmat.so is a linux binary, but is there any way to do what I'm after? You can't mix and match Linux and FreeBSD code in the same binary. You will have to make a completely Linux binary, either by compiling on a Linux system, or by

Re: Linking amd64 binary with a 32-bit linux library

2008-08-07 Thread Maxim Khitrov
On Thu, Aug 7, 2008 at 2:03 PM, Kris Kennaway [EMAIL PROTECTED] wrote: Maxim Khitrov wrote: I take it that this happens because libmat.so is a linux binary, but is there any way to do what I'm after? You can't mix and match Linux and FreeBSD code in the same binary. You will have to make a

Re: Linking amd64 binary with a 32-bit linux library

2008-08-07 Thread Kris Kennaway
Maxim Khitrov wrote: On Thu, Aug 7, 2008 at 2:03 PM, Kris Kennaway [EMAIL PROTECTED] wrote: Maxim Khitrov wrote: I take it that this happens because libmat.so is a linux binary, but is there any way to do what I'm after? You can't mix and match Linux and FreeBSD code in the same binary. You

Mixing 64 and 32-bit code (was: Linking amd64 binary with a 32-bit linux library)

2008-08-07 Thread Andrea Venturoli
Kris Kennaway ha scritto: You can't mix and match Linux and FreeBSD code in the same binary. Sorry for stepping in, but I have a similar question I asked in the past and didn't get any answer: is it possible to mix and match 32-bit and 64-bit FreeBSD code? I have a closed source 32-bit

Re: Mixing 64 and 32-bit code (was: Linking amd64 binary with a 32-bit linux library)

2008-08-07 Thread Chuck Swiger
On Aug 7, 2008, at 12:31 PM, Andrea Venturoli wrote: You can't mix and match Linux and FreeBSD code in the same binary. Sorry for stepping in, but I have a similar question I asked in the past and didn't get any answer: is it possible to mix and match 32-bit and 64-bit FreeBSD code? I have

Re: Linking amd64 binary with a 32-bit linux library

2008-08-07 Thread Dan Nelson
In the last episode (Aug 07), Maxim Khitrov said: On Thu, Aug 7, 2008 at 2:03 PM, Kris Kennaway [EMAIL PROTECTED] wrote: Maxim Khitrov wrote: I take it that this happens because libmat.so is a linux binary, but is there any way to do what I'm after? You can't mix and match Linux and