Date: Fri, 7 Feb 1997 11:44:56 GMT From: mark@putte.seeware.DIALix.oz.au (Mark Hannon) To: freebsd-questions@freebsd.org Subject: Re: ld.so error Message-ID: <E58Dyx.Cw.L.doorway@seeware.DIALix.oz.au> References: <199702050831.IAA07887@support-5.uk.radan.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.BSI.3.94.970206114212.829U-100000@localhost>, dwhite@gdi.uoregon.edu (Doug White) writes: > On Wed, 5 Feb 1997, Mark Ovens wrote: > >> I found an old Sun OpenWindows demo CD at work with various source >> code files on it. With a few mods to the source I have got most of them to >> compile & link without errors on my PC under FreeBSD 2.1.0. >> >> However, one of them produces the following error when I attempt to >> run the executable: >> >> ld.so: Undefined symbol "_cfree" called from textedit:/usr/X11R6/lib >> /libxview.s0.6.2 at 0x8123710 >> >> Can anyone explain this error, and more importantly tell me how to >> fix it!!. I am curious that such an error should occur when running the prog >> on the same machine it was compiled & linked on. > > It makes a call to a shared library. I don't believe symbols are resolved > in shared libs until runtime. You'll have to dig through the libxview > source and find where cfree is, or remove the call in your source. Link the compat library in at compile time. ie add -lcompat to the link flags. /mark -- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Mark Hannon,| FreeBSD, Free Unix for your PC | mark@seeware.DIALix.oz.au| | Melbourne, | PGP key available by fingering | epamha@epa.ericsson.se | | Australia | seeware@melbourne.DIALix.oz.au | | +-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E58Dyx.Cw.L.doorway>