*BSD News Article 64620


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!gatech!newsfeed.internetmci.com!news.sprintlink.net!new-news.sprintlink.net!news.accessone.com!not-for-mail
From: jdp@polstra.com (John Polstra)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Porting scilab-2,2 - Two problems - Any ideas ??
Date: 1 Apr 1996 08:02:59 -0800
Organization: Polstra & Co., Seattle, WA
Lines: 21
Message-ID: <4jounj$6qb@austin.polstra.com>
References: <4jbkri$1ak@gate.ohs.ie>
NNTP-Posting-Host: austin.polstra.com

In article <4jbkri$1ak@gate.ohs.ie>,
Steve O'Hara-Smith <steveo@gate.ohs.ie> wrote:
> 	I am in the process of porting INRIA's scilab package to FreeBSD
> and am having a bit of a battle with libm over it.
> ...
> 	The other problem is with dynamic linking, Scilab uses the dld
> package to link externally defined routines at runtime. It works :) almost :(
> The only problem is when the external routine uses functions in a shared
> library the references don't get picked up.

This is GNU dld, I assume.  Your best solution might be to modify
the code to use dlopen() and friends.  They work fine for this sort of
thing.  See DLOPEN(3) in the FreeBSD manual pages.
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth
-- 
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth