Linux-built DLLs under QNX?

Is it possible to run DLLs built under Linux on QNX,
assuming that the code would run if rebuilt under QNX?
Or is there a format incompatibility? Thanks.

John Nagle
Animats

John Nagle <nagle@downside.com> wrote:

Is it possible to run DLLs built under Linux on QNX,
assuming that the code would run if rebuilt under QNX?
Or is there a format incompatibility? Thanks.

If you build QNX DLLs under Linux, they should work under
QNX. But Linux DLLs should not be expected to work under QNX.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

“John Nagle” <nagle@downside.com> wrote in message
news:3DF9046C.7020702@downside.com

Is it possible to run DLLs built under Linux on QNX,
assuming that the code would run if rebuilt under QNX?
Or is there a format incompatibility? Thanks.

QNX and Linux are NOT binary (DLL are binaries) compatible.

John Nagle
Animats

Though, I vaguely remember PeterV saying that both use the same ELF
format and that the only tricky part would be system / kernel calls.
Though, being a DLL, there’s a really good chance (not 100%) that the
DLL would just dynamically bind to the right calls in libc.

Daryl Low

Mario Charest wrote:

“John Nagle” <> nagle@downside.com> > wrote in message
news:> 3DF9046C.7020702@downside.com> …

Is it possible to run DLLs built under Linux on QNX,
assuming that the code would run if rebuilt under QNX?
Or is there a format incompatibility? Thanks.


QNX and Linux are NOT binary (DLL are binaries) compatible.


John Nagle
Animats
\

Daryl Low <dlo*w@qnx.com> wrote:

Though, I vaguely remember PeterV saying that both use the same ELF
format and that the only tricky part would be system / kernel calls.
Though, being a DLL, there’s a really good chance (not 100%) that the
DLL would just dynamically bind to the right calls in libc.

But for things like FILE *'s and such, our structures don’t look like
their structures, so it’s unlikely that things would actually work.

You can make a shared object that would run in both, but you’d have
to be very careful about what you referenced from it.


Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

Brian Stecher wrote:

Daryl Low <dlo*> w@qnx.com> > wrote:

But for things like FILE *'s and such, our structures don’t look like
their structures, so it’s unlikely that things would actually work.

You can make a shared object that would run in both, but you’d have
to be very careful about what you referenced from it.

OK. The code involved is supposedly pure compute, but
most likely, some I/O has slipped in. But we may be
able to get the vendor to pull the I/O related stuff
out. It’s one of those annoying proprietary code
issues. Thanks.

John Nagle

John Nagle wrote:

Is it possible to run DLLs built under Linux on QNX,
assuming that the code would run if rebuilt under QNX?
Or is there a format incompatibility? Thanks.

John Nagle
Animats

I have done it with the bsafe reference dll before there was a qnx one
available. As mentioned in other posts, as long as there are no kernel
or problematic libc calls made, it DOES work. :slight_smile:

Rick…


Rick Duff Internet: rick@astranetwork.com
Astra Network QUICS: rgduff
QNX Consulting and Custom Programming URL: http://www.astranetwork.com
+1 (204) 987-7475 Fax: +1 (204) 987-7479