From owner-freebsd-current@FreeBSD.ORG Tue Jun 29 09:44:27 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 902211065672; Tue, 29 Jun 2010 09:44:27 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4AF418FC1B; Tue, 29 Jun 2010 09:44:27 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:7170:55e0:2a72:c90e] (unknown [IPv6:2001:7b8:3a7:0:7170:55e0:2a72:c90e]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 73FBB5C43; Tue, 29 Jun 2010 11:44:24 +0200 (CEST) Message-ID: <4C29C080.4090102@andric.com> Date: Tue, 29 Jun 2010 11:44:32 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.4) Gecko/20100619 Lanikai/3.1.1pre MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <20100624151121.GA29609@mech-cluster241.men.bris.ac.uk> <86lja48m58.fsf@ds4.des.no> <20100625084429.GA42107@mech-cluster241.men.bris.ac.uk> <86vd97e94g.fsf@ds4.des.no> <20100628121253.GA61909@mech-cluster241.men.bris.ac.uk> <86y6dz5o3x.fsf@ds4.des.no> <20100628130607.GA69122@mech-cluster241.men.bris.ac.uk> <86tyon5kdw.fsf@ds4.des.no> <20100628152630.GA70763@mech-cluster241.men.bris.ac.uk> <86vd93qfge.fsf@ds4.des.no> <20100629091935.GA80234@mech-cluster241.men.bris.ac.uk> <86zkyechrf.fsf@ds4.des.no> In-Reply-To: <86zkyechrf.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Anton Shterenlikht , freebsd-ia64@freebsd.org Subject: Re: r209240 ia64 -> buildworld -> undefined reference to `lzma_physmem' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2010 09:44:27 -0000 On 2010-06-29 11:25, Dag-Erling Sm=C3=B8rgrav wrote: > Anton Shterenlikht writes: >> http://seis.bris.ac.uk/~mexas/ia64-lzma-problem.txt >=20 > This confirms my suspicion that ld is picking up the wrong liblzma: >=20 >> attempt to open /usr/local/lib/liblzma.a succeeded >=20 > but I still can't figure out why. Can you do the following: Because the ld command line includes /usr/local/lib twice, and *before* /usr/obj/usr/src/tmp/usr/lib: -L/usr/local/lib -L/usr/local/lib -L/usr/obj/usr/src/tmp/usr/lib -L/usr/o= bj/usr/src/tmp/usr/lib The question is, where do those -L/usr/local/lib's come from. :) Maybe because Anton is calling /usr/bin/cc instead of /usr/obj/usr/src/tmp/usr/bin/cc ?