Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-08

LoadLibrary in freeBSD ?

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

fredvs

Hello.

I try to load a linux-library in freeBSD with
DynLibs.LoadLibrary(libfilename) but it does not load...

Must the loaded library be pure freeBSD library ?

I was thinking that freeBSD is able to run Linux applications.

Is it not true for libraries or must i install something in freeBSD to accept Linux libraries?

Or, maybe, change something in fpc code ?

Thanks.

-----
Many thanks ;-)

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/LoadLibrary-in-freeBSD-tp5719853.html Sent from the Free Pascal - General mailing list .

Reply by email

fredvs
to fredvs

Yep, i have some news from freeBSD.

I have installed linux_base-f10 (linux emulator) but it seams that freeBSD can load only 32-bit-libraries.

Here some comment from freeBSD site :

>>>

FreeBSD provides 32-bit binary compatibility with Linux®, allowing users to install and run most 32-bit Linux® binaries on a FreeBSD system without having to first modify the binary. It has even been reported that, in some situations, 32-bit Linux® binaries perform better on FreeBSD than they do on Linux®.

However, some Linux®-specific operating system features are not supported under FreeBSD. For example, Linux® binaries will not work on FreeBSD if they overly use i386™ specific calls, such as enabling virtual 8086 mode. In addition, 64-bit Linux® binaries are not supported at this time.

>>>>

Aaarg, i have install fpc-freeBSD-64-bit.

Maybe with fpc-freeBSD-32-bit applications (on a freeBSD-64-bit system?) and Linux-libraries-32-bit will do the trick ?

Or, perhaps, is it possible to load Linux-libraries-32-bit with fpc-freeBSD-64bit applications ?

Thanks.

-----
Many thanks ;-)

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/LoadLibrary-in-freeBSD-tp5719853p5719854.html Sent from the Free Pascal - General mailing list .

Reply by email

Graeme Geldenhuys
to fredvs
fredvs wrote
I have installed linux_base-f10 (linux emulator) but it seams that freeBSD can load only 32-bit-libraries.

Correct. The Linux Emulator in FreeBSD only supports 32-bit Linux applications at this point. There is work going on fer 64-bit support, but it is not complete yet.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Marco van de Voort
to fredvs: Yep, i have some news from freeBSD. I have installed linux_base-f10 (linux emulator) but…

In our previous episode, fredvs said:

Aaarg, i have install fpc-freeBSD-64-bit.

Afaik the linuxator also works on 64-bit FreeBSD, so you can run 32-bit Linux userland on 64-bit freebsd.

Maybe with fpc-freeBSD-32-bit applications (on a freeBSD-64-bit system?) and Linux-libraries-32-bit will do the trick ?

No. Linux binaries can load linux libs, freebsd binaries load freebsd libs.

Being able to run is not the same as being able to mix.

Reply by email