Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!enews.sgi.com!arclight.uoregon.edu!netnews.nwnet.net!news-hub.interserv.net!news.interserv.com!news From: William Perry <wmperry@aventail.com> Newsgroups: comp.unix.bsd.bsdi.misc Subject: Problem with dynamic libraries (dlopen) & BSDI Date: 27 Nov 1996 08:33:49 -0800 Organization: Aventail, Inc. Lines: 24 Sender: wmperry@kramer.in.aventail.com Message-ID: <86iv6r5wgi.fsf@kramer.in.aventail.com> Reply-To: wmperry@aventail.com NNTP-Posting-Host: newman.aventail.com Errors-to: wmperry@aventail.com X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7</SYF`{vYQ(&RI1&EiH[FvT;J}@f!4kfz x_!Y#=y{Uuj9GvUi=cPuajQ(Z42R[wE@{G,sn$qGr5g/wnb*"*ktI+,CD}1Z'wxrM2ag-r0p5I6\nA [WJopW_J.WY; X-Newsreader: Red Gnus v0.70/XEmacs 20.0 Hello everyone - quick question. I've been having a very odd problem under BSDI 2.x. Our socks server can load shared libraries to add new authentication methods, etc, and uses the dlopen() dlsym() API to do so. This works fine on other OSes (Solaris, Linux, AIX, IRIX, HP/UX (via shl_load, etc)). BSDI is not cooperating though. The dlopen() fails and dlerror() returns: can't resolve undefined symbols: No such file or directory This is using an absolute pathname to the shared library to be loaded, so LD_LIBRARY_PATH isn't needed, etc. I also tried linking in the core C library to the .so, just in case it was a problem with the .so using 'printf' or some other function that wasn't exported by the parent. No go. The really odd thing is that it works fine when you run it under GDB. The module loads and symbols are found, etc. Has anyone else out there run into something like this under BSDI? -Bill P. -- William Perry wmperry@aventail.com