From owner-freebsd-hackers Wed Jun 9 21:14:54 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 83A8214D6F for ; Wed, 9 Jun 1999 21:14:51 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id XAA37296; Wed, 9 Jun 1999 23:14:47 -0500 (CDT) (envelope-from dan) Date: Wed, 9 Jun 1999 23:14:47 -0500 From: Dan Nelson To: Chad David Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Oracle OCI code on FreeBSD Message-ID: <19990609231446.A37094@dan.emsphone.com> References: <375EC210.C3AA6E5@acns.ab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <375EC210.C3AA6E5@acns.ab.ca>; from "Chad David" on Wed Jun 9 19:35:44 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jun 09), Chad David said: > I have managed to install Oracle 8.0.5 on FreeBSD 3.2-STABLE, and > everything seems to be fine, but I am unable to run an OCI program > that I am porting from Solaris. I started out with unresolved > symbols in libclntsh.so, and I "got rid" of them by relinking > libclntsh.so against /usr/compat/linux/lib/libc.so.6. > > The OCI specific code is compiled into a shared object, and is loaded > into my program via dlopen() / dlsym(), which leaves me wondering > what happens when a Linux shared object is loaded into a FreeBSD > process? Is this possible (linking against linux/lib/libc.so.6) or > am I completely out to lunch? Has anybody managed to get an OCI > program running on FreeBSD? Won't work. stdio is completely different from BSD<->Linux, so no fread/fwrite calls will work, struct direct is different (scratch opendir), ioctls are certainly different, errnos don't map the same, signals are different, etc etc etc. > When I run the program I get hit with SIGBUS as soon as the symbol in > my shared object is called. I am not really sure what other details > would be helpful, but if anyone is at all interested in the I would > be happy to supply more :). Install the linux_devel port and resign yourself to building Linux executables whenever you have to talk to Oracle. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message