From owner-freebsd-bugs Tue Dec 19 7:53:15 2000 From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 19 07:53:13 2000 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from gate.cpmet.ufpel.tche.br (gate.cpmet.ufpel.tche.br [200.248.148.33]) by hub.freebsd.org (Postfix) with ESMTP id 3536137B400; Tue, 19 Dec 2000 07:53:10 -0800 (PST) Received: from localhost (casantos@localhost) by gate.cpmet.ufpel.tche.br (8.11.1/8.11.1) with ESMTP id eBJFrX207369; Tue, 19 Dec 2000 15:53:33 GMT (envelope-from casantos@cpmet.ufpel.tche.br) X-Authentication-Warning: gate.cpmet.ufpel.tche.br: casantos owned process doing -bs Date: Tue, 19 Dec 2000 15:53:33 +0000 (GMT) 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 In-Reply-To: <868zpcqyaq.fsf@xen.infosec.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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