From owner-freebsd-ports Wed Oct 3 5:48:41 2001 Delivered-To: freebsd-ports@freebsd.org Received: from mailgw2.be.to (mailgw2.be.to [210.235.212.6]) by hub.freebsd.org (Postfix) with ESMTP id 5844937B403 for ; Wed, 3 Oct 2001 05:48:36 -0700 (PDT) Received: from mail1.be.to (mail1.be.to [210.235.212.2]) by mailgw2.be.to (8.11.0+3.3W/8.11.0/BETO3.11-20000910123456) with ESMTP id f93CmUc00708; Wed, 3 Oct 2001 21:48:30 +0900 (envelope-from okazaki@be.to) Received: from truk.isolanet (hawaii.isola.co.jp [211.0.101.206]) by mail1.be.to (8.9.3+3.2W/BETO.2.0-2000090621000000) with ESMTP id VAA07297; Wed, 3 Oct 2001 21:48:28 +0900 Date: Wed, 03 Oct 2001 21:46:54 +0900 Message-ID: From: OKAZAKI Tetsurou To: "Chad R. Larson" Cc: ports@FreeBSD.org Subject: Re: bzip2 make breakage In-Reply-To: <20011002172306.A26342@freeway.dcfinc.com> References: <20011002172306.A26342@freeway.dcfinc.com> User-Agent: Wanderlust/2.6.0 (Twist And Shout) Emacs/21.0 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In the message <20011002172306.A26342@freeway.dcfinc.com> "Chad R. Larson" wrote: > I had to make the following edit to get bzip2 to build on my > 2.2.8-STABLE system. It doesn't look to me like this is an O/S > version issue, however. We were passing the name of the shared No. This is an OS version issue (ELF platform vs a.out platform). ELF based linker takes `-soname' as an option which requires one argument to specify an internal name of the shared library (see ld(1) on ELF-based FreeBSD). On the other hand, a.out based linker does not have an option `-soname' and ignores `-soname' from command arguments, then takes the next argument `libbz2.so.1' as an file name of an existing library or object to link with the ld-output specifed by `-o' option. > object being built to the linker as an option. Can't work, doesn't > exist yet. And wouldn't make much sense even if it did. > *** -patch-aa Tue Oct 2 17:10:46 2001 > --- patch-aa Tue Oct 2 17:11:32 2001 > *************** > *** 40,46 **** > fi > +libbz2.so.1: $(SO_OBJS) > ! + $(CC) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1 $(SO_OBJS) > + ln -sf libbz2.so.1 libbz2.so > + > test: bzip2 > --- 40,46 ---- > fi > +libbz2.so.1: $(SO_OBJS) > ! + $(CC) -shared -Wl,-soname -o libbz2.so.1 $(SO_OBJS) > + ln -sf libbz2.so.1 libbz2.so > + > test: bzip2 > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= So, this change will not work on ELF based FreeBSD (3-STABLE and later). One workaround is change this line to, $(CC) -shared -Wl,-soname=libbz2.so.1 -o libbz2.so.1 $(SO_OBJS) which will work on both platforms. -- Tetsurou To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message