[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH]: Implement bzip2 and LZMA loaders / xen-unstable stubdom pvgrub support



On Thu, 8 Oct 2009, Pasi Kärkkäinen wrote:
> 
> Hello again,
> 
> Stefano: Have you ever seen this kind of linking failures with
> stubdoms/ioemu? 
> 
> Any ideas?
> 
> -- Pasi
> 
> On Tue, Sep 01, 2009 at 10:08:55PM +0300, Pasi Kärkkäinen wrote:
> > 
> > Attached are my current work-in-progress patches. It still doesn't link 
> > properly.. 
> > 
> > Stefano: Would you like to take a look? The patches are against current 
> > xen-unstable.
> > 
> > I'm getting weird linking error about stdin/stdout/stderr missing.. 
> > libc (newlib) is definitely linked in, so I'm not sure what's happening.. 
> > 
> > ld -nostdlib 
> > -L/root/xen-unstable.hg/stubdom/cross-root-i686/i686-xen-elf/lib -m 
> > elf_i386 -T arch/x86/minios-x86_32.lds
> > /root/xen-unstable.hg/stubdom/mini-os-x86_32-ioemu/mini-os.o -o 
> > /root/xen-unstable.hg/stubdom/mini-os-x86_32-ioemu/mini-os
> > 
> > xen-unstable.hg/stubdom/mini-os-x86_32-ioemu/mini-os.o: In function 
> > `bzopen_or_bzdopen':
> > xen-unstable.hg/stubdom/bzip2-x86_32/bzlib.c:1411: undefined reference to 
> > `__ctype_b_loc'

__ctype_b_loc is missing from newlib so you need to implement it
yourself.
See for example "minios: implement ffs, ffsl and ffsll.".


> > xen-unstable.hg/stubdom/bzip2-x86_32/bzlib.c:1447: undefined reference to 
> > `stdin'
> > xen-unstable.hg/stubdom/bzip2-x86_32/bzlib.c:1447: undefined reference to 
> > `stdout'
> > ...

bzip2 doesn't use autotools and the bzip2 Makefile seems to ignore any
environmental variable for CFLAG so you are not compiling it against
newlib at all.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.