Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 2006 09:58:53 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-database@FreeBSD.ORG
Subject:   Re: Installing Oracle Client 10g on FreeBSD
Message-ID:  <200610170758.k9H7wraY060219@lurza.secnetix.de>
In-Reply-To: <freebsd-database.20061016185245.3421bf44.vlady@gbservices.biz>

next in thread | previous in thread | raw e-mail | index | archive | help
Vladimir Terziev wrote:
 > I'll be very thankful if you provide working instructions how
 > to intermix FreeBSD and Linux libraries.

Depends on what you mean by "intermix".

You cannot link FreeBSD and Linux code together, except
under very controlled circumstances (e.g. if the Linux lib
doesn't use any syscalls, then it is possible to link it
to FreeBSD code).  That's because _all_ code of a process
has to use the same ABI, and that's either the FreeBSD ABI
or the Linux ABI, but you cannot have both at the same
time.  Unless, of course, you write some glue code, e.g.
a wrapper library that does some magic things, but that's
usually not worth the effort.  It's easier to just re-
compile the whole thing for a common ABI (e.g. for the
Linux ABI if you don't have source code for the Linux lib).

If by "intermix" you mean that they communicate with each
other (e.g. via SysV IPC, sockets, FIFOs, whatever), but
they run within different process images -- that's not a
problem at all.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

It's trivial to make fun of Microsoft products,
but it takes a real man to make them work,
and a God to make them do anything useful.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610170758.k9H7wraY060219>