From owner-freebsd-questions Fri May 3 14:09:30 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA12075 for questions-outgoing; Fri, 3 May 1996 14:09:30 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA12069 for ; Fri, 3 May 1996 14:09:27 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA14806; Fri, 3 May 1996 14:01:07 -0700 From: Terry Lambert Message-Id: <199605032101.OAA14806@phaeton.artisoft.com> Subject: Re: dlopen and stuff To: faulkner@asgard.bga.com (Boyd R. Faulkner) Date: Fri, 3 May 1996 14:01:07 -0700 (MST) Cc: questions@freebsd.org In-Reply-To: <199605030038.TAA05473@utgard.bga.com> from "Boyd R. Faulkner" at May 2, 96 07:39:02 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I am trying to port regina (REXX) to FreeBSD. It supports loadable libraries > via the dlopen mechanism. I can dlopen the lib. dlsym returns the address > and runs but the lib code calls functions in a statically linked lib linked > to the executable calling the dynamic lib. This works on a sun. Can it work > here? You will need to dynamically link the common sublibrary, or the symbol space will not be exported. This is probably a bug in the way export symbol tables are handled for static code where dynamic linking is supported, if you want to examine the technicality. Specifically, there is not a shared export list for statically linked (but exported) symbols in objects which aren't shared. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.