Re: r209240 ia64 -> buildworld -> undefined reference to `lzma_physmem'

From: Anton Shterenlikht <mexas_at_bristol.ac.uk>
Date: Thu, 24 Jun 2010 16:47:30 +0100
On Thu, Jun 24, 2010 at 08:16:52AM -0700, Marcel Moolenaar wrote:
> Sorry for the top post:
> 
> Anton,
> 
> Can check if you have /usr/local/lib/liblzma on your other machines. I have this nagging feeling that you're picking up a library outside of your object tree.

Marcel

On as28 and as221 I get:

$ ls /usr/local/lib/liblzma*
ls: /usr/local/lib/liblzma*: No such file or directory
$ ls /usr/lib/liblzma*
/usr/lib/liblzma.a      /usr/lib/liblzma.so     /usr/lib/liblzma.so.5   /usr/lib/liblzma_p.a
$

However, on the problem box it's the other way round:

$ ls /usr/local/lib/liblzma*
/usr/local/lib/liblzma.a        /usr/local/lib/liblzma.so
/usr/local/lib/liblzma.la       /usr/local/lib/liblzma.so.0
$ ls /usr/lib/liblzma*
ls: /usr/lib/liblzma*: No such file or directory
$ 


> 
> Also: can you send the contents of /etc/make.conf
> 

/etc/make.conf is identical (save for the time in the
perl comment line) on all three boxes:

$ cat /etc/make.conf
SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

CFLAGS= -O1
COPTFLAGS= -O1
# added by use.perl 2010-05-17 10:55:29
PERL_VERSION=5.10.1
$ 


many thanks
anton



> 
> 
> -- 
> Marcel (Mobile)
> 
> On Jun 24, 2010, at 1:36 AM, Anton Shterenlikht <mexas_at_bristol.ac.uk> wrote:
> 
> > On Wed, Jun 23, 2010 at 04:20:18PM +0200, Dag-Erling Smørgrav wrote:
> >> Anton Shterenlikht <mexas_at_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
> 

-- 
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
Received on Thu Jun 24 2010 - 13:47:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC