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

Dimitry Andric dimitry at andric.com
Tue Jun 29 09:44:27 UTC 2010


On 2010-06-29 11:25, Dag-Erling Smørgrav wrote:
> Anton Shterenlikht <mexas at bristol.ac.uk> writes:
>> http://seis.bris.ac.uk/~mexas/ia64-lzma-problem.txt
> 
> This confirms my suspicion that ld is picking up the wrong liblzma:
> 
>> attempt to open /usr/local/lib/liblzma.a succeeded
> 
> 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/obj/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 ?



More information about the freebsd-current mailing list