From owner-freebsd-bugs Tue Dec 19 8: 0:14 2000 From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 19 08:00:10 2000 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C3BF237B402 for ; Tue, 19 Dec 2000 08:00:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBJG05W43746; Tue, 19 Dec 2000 08:00:05 -0800 (PST) (envelope-from gnats) Date: Tue, 19 Dec 2000 08:00:05 -0800 (PST) Message-Id: <200012191600.eBJG05W43746@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Carlos A M dos Santos Subject: Re: i386/23643: dlopen() can't link to symbols in main program module Reply-To: Carlos A M dos Santos Sender: gnats@FreeBSD.org Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR i386/23643; it has been noted by GNATS. From: Carlos A M dos Santos To: Andrey Sverdlichenko Cc: FreeBSD-gnats-submit@FreeBSD.ORG, GNATS Management , freebsd-bugs@FreeBSD.ORG Subject: Re: i386/23643: dlopen() can't link to symbols in main program module Date: Tue, 19 Dec 2000 15:53:33 +0000 (GMT) On 19 Dec 2000, the fast fingers of Andrey Sverdlichenko wrote: AS> 0:xen:test_so$ make AS> gcc -fpic -DPIC -O -pipe -Wall -c lib.c AS> cc -shared -o lib.so lib.o AS> gcc -g -fpic -DPIC -Wall -o prog main.c AS> AS> 0:xen:test_so$ ./prog AS> dlopen: ./lib.so: Undefined symbol "str" gcc -g -fpic -DPIC -Wall -export-dynamic -o prog main.c ^^^^^^^^^^^^^^^ man ld -- Carlos A. M. dos Santos Federal University of Pelotas Meteorological Research Center Av. Ildefonso Simoes Lopes 2791 Pelotas, RS, Brasil, CEP 96060-290 WWW: http://www.cpmet.ufpel.tche.br RENPAC (X.25): 153231641 Phone: +55 53 277-6767 FAX: +55 53 277-6722 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message