From owner-freebsd-questions Fri Feb 7 07:04:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA00680 for questions-outgoing; Fri, 7 Feb 1997 07:04:56 -0800 (PST) Received: from haywire.DIALix.COM (news@haywire.DIALix.COM [192.203.228.65]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA00648 for ; Fri, 7 Feb 1997 07:04:41 -0800 (PST) Received: (from news@localhost) by haywire.DIALix.COM (8.8.4/8.8.2) id XAA17991 for freebsd-questions@freebsd.org; Fri, 7 Feb 1997 23:04:25 +0800 (WST) X-Authentication-Warning: haywire.DIALix.COM: news set sender to usenet-request@haywire.dialix.com using -f Received: from GATEWAY by haywire.DIALix.COM with netnews for freebsd-questions@freebsd.org (problems to: usenet@haywire.dialix.com) To: freebsd-questions@freebsd.org Date: Fri, 7 Feb 1997 11:44:56 GMT From: mark@putte.seeware.DIALix.oz.au (Mark Hannon) Message-ID: Organization: Private FreeBSD site References: <199702050831.IAA07887@support-5.uk.radan.com> Subject: Re: ld.so error Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article , 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 | | +-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+