From owner-freebsd-emulation Fri Nov 28 19:25:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA28783 for emulation-outgoing; Fri, 28 Nov 1997 19:25:25 -0800 (PST) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (ppp4.portal.net.au [202.12.71.104]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA28777 for ; Fri, 28 Nov 1997 19:25:18 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id NAA00538; Sat, 29 Nov 1997 13:48:15 +1030 (CST) Message-Id: <199711290318.NAA00538@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Adrian Pavlykevych" cc: emulation@FreeBSD.ORG Subject: Re: Q:Using SCO libraries under FreeBSD (COFF convertor?) In-reply-to: Your message of "Fri, 28 Nov 1997 10:40:51." <199711280841.KAA21063@NetSurfer.lp.lviv.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 29 Nov 1997 13:48:14 +1030 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > I'm having problem with RDBMS access - all available drivers are for > SCO, so do libraries needed by PD drivers. This isn't even vaguely true. Which RDBMS are you using? There's a freely-available ODBC client kicking around, which should get you talking to just about anything. > Is there any way to convert SCO libraries into format recofgnizable > by FreeBSD linker? Not trivially, no. > I've installed GNU binutils and tried to convert library from > COFF-i386 to a.out-freebsd. Operation went smothly, but function > references remained without leading underscore - so they were not > accessible for linker. > > What I'm missing/doing wrong? If you're hopeful that you're that close, you can try munging the names in the ex-SCO library. Hit it with a binary editor and then use hidden #defines in your code to map names, eg. For a function 'zworp' in the library, rename it to _worp, and then add a define in your code: #define zworp(arg, arg, arg) worp(arg, arg, arg) mike