*BSD News Article 87845


Return to BSD News archive

#! rnews 1200 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.edu.au!news.apana.org.au!cantor.edge.net.au!news.teragen.com.au!news.access.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!cam-news-feed2.bbnplanet.com!shore!news.ultranet.com!usenet
From: "Tony Lu" <tony@aglance.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: dlopen/dlsym on FreeBSD 2.1.0
Date: 30 Jan 1997 20:35:21 GMT
Organization: Intuitive Technology Co.
Lines: 10
Message-ID: <01bc0eec$a6ada5c0$1a000015@withit.aglance.com>
NNTP-Posting-Host: digit.aglance.com
X-Newsreader: Microsoft Internet News 4.70.1155
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34765

I am on FreeBSD 2.1.0 . 
I did a dlopen and a shared object, it seems work, (returned me a handle),
then I use dlsym to get a function from the handle which I got from dlopen,
it fails, say can not find the function, I know the function is in it, if I
do nm I can see the function, I think it may need some export when the
share object be created, but I don't know how.

you help is highly appreciated.