Date: Mon, 12 Oct 1998 14:27:40 -0700 From: John Polstra <jdp@polstra.com> To: "Andrey A. Chernov" <ache@nagual.pp.ru> Cc: current@FreeBSD.ORG, peter@FreeBSD.ORG Subject: Re: a.out: ld errors building libatm Message-ID: <199810122127.OAA06986@austin.polstra.com> In-Reply-To: Your message of "Tue, 13 Oct 1998 00:47:30 %2B0400." <19981013004730.A17881@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> With all -current recently builded tools I got in libatm
>
> building shared atm library (version 2.0)
> ld: /usr/lib/aout/libmd.a(md5c.o): RRS text relocation at 0x1710 for "_memset"
> ld: /usr/lib/aout/libmd.a(md5c.o): RRS text relocation at 0x1079 for "_memset"
> ld: /usr/lib/aout/libmd.a(md5c.o): RRS text relocation at 0xfeb for "_memcpy"
> ld: /usr/lib/aout/libmd.a(md5c.o): RRS text relocation at 0xfa0 for "_memcpy"
>
> what this diagnostics means and how to fix it?
This is because Peter added a dependency on libmd, but there is no
shared version of it on a.out systems. So the .a library, which is
non-PIC, gets linked in.
I think the correct solution is to build a shared libmd on a.out
systems too. I.e., delete these lines from src/lib/libmd/Makefile:
.if ${OBJFORMAT} != elf
NOPIC= true
.endif
Peter, do you see any reason not to make that change?
John
--
John Polstra jdp@polstra.com
John D. Polstra & Co., Inc. Seattle, Washington USA
"Self-knowledge is always bad news." -- John Barth
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810122127.OAA06986>
