Date: Tue, 19 Dec 2000 08:00:05 -0800 (PST) From: Carlos A M dos Santos <casantos@cpmet.ufpel.tche.br> To: freebsd-bugs@FreeBSD.org Subject: Re: i386/23643: dlopen() can't link to symbols in main program module Message-ID: <200012191600.eBJG05W43746@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/23643; it has been noted by GNATS.
From: Carlos A M dos Santos <casantos@cpmet.ufpel.tche.br>
To: Andrey Sverdlichenko <blaze@infosec.ru>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG,
GNATS Management <gnats-admin@FreeBSD.ORG>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012191600.eBJG05W43746>
