From owner-freebsd-questions Thu Feb 6 11:43:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA25215 for questions-outgoing; Thu, 6 Feb 1997 11:43:36 -0800 (PST) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA25210 for ; Thu, 6 Feb 1997 11:43:33 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.4/8.6.12) with SMTP id LAA01558; Thu, 6 Feb 1997 11:43:26 -0800 (PST) Date: Thu, 6 Feb 1997 11:43:26 -0800 (PST) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Mark Ovens cc: questions@freebsd.org Subject: Re: ld.so error In-Reply-To: <199702050831.IAA07887@support-5.uk.radan.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major