From owner-freebsd-hackers Tue Sep 5 9:24: 8 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.uni-bielefeld.de (mail2.uni-bielefeld.de [129.70.4.90]) by hub.freebsd.org (Postfix) with ESMTP id D569637B43F for ; Tue, 5 Sep 2000 09:24:04 -0700 (PDT) Received: from frolic.no-support.loc (ppp36-292.hrz.uni-bielefeld.de [129.70.37.36]) by mail.uni-bielefeld.de (Sun Internet Mail Server sims.4.0.2000.05.17.04.13.p6) with ESMTP id <0G0F00G0W9K0TK@mail.uni-bielefeld.de> for hackers@FreeBSD.ORG; Tue, 5 Sep 2000 18:24:02 +0200 (MET DST) Received: (from bjoern@localhost) by frolic.no-support.loc (8.9.3/8.9.3) id SAA00683; Tue, 05 Sep 2000 18:20:24 +0200 (CEST envelope-from bjoern) Date: Tue, 05 Sep 2000 18:20:23 +0200 From: Bjoern Fischer Subject: Re: dlopen() In-reply-to: <00090423164501.01182@mike>; from owensmk@earthlink.net on Mon, Sep 04, 2000 at 11:16:17PM -0500 To: Michael Owens Cc: hackers@FreeBSD.ORG Message-id: <20000905182023.A255@frolic.no-support.loc> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-disposition: inline Content-transfer-encoding: quoted-printable User-Agent: Mutt/1.2.5i References: <00090423164501.01182@mike> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Sep 04, 2000 at 11:16:17PM -0500, Michael Owens wrote: [...] > -Wl,export-dynamic, but still have not seemed to resolve the problem: whe= n the > program calls dlopen to load the library, it returns >=20 > ./libcircle.so: Undefined symbol "__pure_virtual" It seems that this is a libgcc issue. When linking `testdcl', the linker does not add unneeded symbols from libgcc. Symbols from libgcc needed in libcircle.so or libsquare.so, but unneeded in testdcl won't get resolved. Try linking libgcc to libcircle.so and libsquare.so. Look after how g++ invokes the linker (g++ -v), you may have to call the linker by yourself. This is a dirty hack. The proper solution is to convert libgcc into a shared library. This work is already under way. Bj=F6rn --=20 -----BEGIN GEEK CODE BLOCK----- GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+ K- !w !O !M !V PS++ PE- PGP++ t+++ !5 X++ tv- b+++ D++ G e+ h-- y+=20 ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message