From owner-freebsd-ia64@FreeBSD.ORG  Thu Jun 24 08:36:38 2010
Return-Path: <owner-freebsd-ia64@FreeBSD.ORG>
Delivered-To: freebsd-ia64@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8DCC9106566C;
	Thu, 24 Jun 2010 08:36:38 +0000 (UTC)
	(envelope-from mexas@bristol.ac.uk)
Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102])
	by mx1.freebsd.org (Postfix) with ESMTP id 43D9C8FC0C;
	Thu, 24 Jun 2010 08:36:38 +0000 (UTC)
Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk)
	by dirg.bris.ac.uk with esmtp (Exim 4.69)
	(envelope-from <mexas@bristol.ac.uk>)
	id 1ORhvI-0005nm-UA; Thu, 24 Jun 2010 09:36:37 +0100
Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241])
	by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67)
	(envelope-from <mexas@bristol.ac.uk>)
	id 1ORhvI-0005Cs-Je; Thu, 24 Jun 2010 09:36:36 +0100
Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1])
	by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id
	o5O8aaZE009371; Thu, 24 Jun 2010 09:36:36 +0100 (BST)
	(envelope-from mexas@bristol.ac.uk)
Received: (from mexas@localhost)
	by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id
	o5O8aZIx009370; Thu, 24 Jun 2010 09:36:35 +0100 (BST)
	(envelope-from mexas@bristol.ac.uk)
X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to
	mexas@bristol.ac.uk using -f
Date: Thu, 24 Jun 2010 09:36:35 +0100
From: Anton Shterenlikht <mexas@bristol.ac.uk>
To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@des.no>
Message-ID: <20100624083635.GB9272@mech-cluster241.men.bris.ac.uk>
References: <20100617101541.GA90363@mech-cluster241.men.bris.ac.uk>
	<4C1A117A.9060608@dataix.net>
	<20100618085018.GA94427@mech-cluster241.men.bris.ac.uk>
	<4C1B63A1.3010604@dataix.net> <8639wgfnrk.fsf@ds4.des.no>
	<20100621150445.GA50194@mech-cluster241.men.bris.ac.uk>
	<754D875E-48AB-423D-B309-9415EA2867E4@mac.com>
	<20100623130534.GA69821@mech-cluster241.men.bris.ac.uk>
	<86d3vhomot.fsf@ds4.des.no>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <86d3vhomot.fsf@ds4.des.no>
User-Agent: Mutt/1.5.20 (2009-06-14)
Cc: freebsd-ia64@freebsd.org, freebsd-current@freebsd.org
Subject: Re: r209240 ia64 -> buildworld -> undefined reference to
 `lzma_physmem'
X-BeenThere: freebsd-ia64@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting FreeBSD to the IA-64 <freebsd-ia64.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ia64>,
	<mailto:freebsd-ia64-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ia64>
List-Post: <mailto:freebsd-ia64@freebsd.org>
List-Help: <mailto:freebsd-ia64-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ia64>,
	<mailto:freebsd-ia64-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jun 2010 08:36:38 -0000

On Wed, Jun 23, 2010 at 04:20:18PM +0200, Dag-Erling Smørgrav wrote:
> Anton Shterenlikht <mexas@bristol.ac.uk> writes:
> > I think it's possible that at some point, in anger, I did "make
> > installworld" after a failed, or otherwise interrupted "make
> > buildworld". Perhaps I got an inconsistent set of binaries as a
> > result...  Would that explain an error like this?
> 
> No, because at this point buildworld is using the toolchain and
> libraries that it built earlier.

sorry for the delay

On a clean copy of r209203

> Can you do
> 
> % find /usr/obj/usr/src -name liblzma.a
> 
> There should be at least one in /usr/obj/usr/src/lib/liblzma and one in
> /usr/obj/usr/src/tmp/usr/lib, and they should be identical.

seems so:

# find /usr/obj/usr/src -name liblzma.a
/usr/obj/usr/src/tmp/usr/lib/liblzma.a
/usr/obj/usr/src/lib/liblzma/liblzma.a
# diff /usr/obj/usr/src/tmp/usr/lib/liblzma.a /usr/obj/usr/src/lib/liblzma/liblzma.a
# 

>  Next, do
> 
> % nm /usr/obj/usr/src/lib/liblzma/liblzma.a | grep physmem
> 
> and show us the result.

# nm /usr/obj/usr/src/lib/liblzma/liblzma.a | grep physmem
hardware_physmem.o:
0000000000000000 T lzma_physmem
                 U lzma_tuklib_physmem
tuklib_physmem.o:
0000000000000000 T lzma_tuklib_physmem
# 

>  While you're at it, do this as well:
> 
> % nm /usr/lib/liblzma.a | grep physmem

# nm /usr/lib/liblzma.a | grep physmem
nm: '/usr/lib/liblzma.a': No such file
#

Did you mean /usr/local/lib/liblzma.a ?

# nm /usr/local/lib/liblzma.a|grep physmem
#


On my other 2 ia64 boxes, where I don't have
this problem, the output of the last command
is the same.


many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423