From owner-freebsd-current Mon Oct 12 14:28:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA19150 for freebsd-current-outgoing; Mon, 12 Oct 1998 14:28:18 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA18920; Mon, 12 Oct 1998 14:27:58 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.9.1/8.9.1) with ESMTP id OAA06986; Mon, 12 Oct 1998 14:27:40 -0700 (PDT) (envelope-from jdp) Message-Id: <199810122127.OAA06986@austin.polstra.com> To: "Andrey A. Chernov" cc: current@FreeBSD.ORG, peter@FreeBSD.ORG Subject: Re: a.out: ld errors building libatm In-reply-to: Your message of "Tue, 13 Oct 1998 00:47:30 +0400." <19981013004730.A17881@nagual.pp.ru> Date: Mon, 12 Oct 1998 14:27:40 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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