Date: Thu, 10 Oct 1996 21:46:16 -0700 From: John Polstra <jdp@polstra.com> To: James FitzGibbon <james@nexis.net> Cc: asami@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: cvs commit: ports/lang/msqlperl - Imported sources Message-ID: <199610110446.VAA01680@austin.polstra.com> In-Reply-To: Your message of "Thu, 10 Oct 1996 22:56:00 EDT." <Pine.BSF.3.95.961010225526.21948A-100000@bdd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > This message is usually (probably always) caused by failing to specify > > "-fpic" when building one or more of the object files making up the > > shared library. > > Makes sense, except that at the moment, the msql port only installs the > static library. Are the symptoms the same ? The command that caused the error messages was this: LD_RUN_PATH="/usr/local/Minerva/lib" ld -o ./blib/arch/auto/Msql/Msql.so \ -Bshareable -L/usr/local/lib Msql.o -L/usr/local/Minerva/lib -lmsql You're saying that the "-lmsql" library is a static library? Oh, yes, I see that it is, since the error messages refer to "libmsql.a". So that is the problem, all right. One solution would be to modify the msql port so that it also installs a shared "msql" library. All the object files in that would have to be built with "-fpic". Or, it could just build the current libmsql.a library using object files compiled with "-fpic". But that would needlessly reduce the performance of other programs that statically link with the library. Probably the best solution is to build and install both static and shared versions of the msql library. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610110446.VAA01680>