On Tuesday 15 February 2005 16:49, [EMAIL PROTECTED] wrote:
> Hello,
>
> Could you please help me with the following problem?
>
> Here's a problem I've encountered when trying to compile an UML (User Mode
> Linux) linux binary:

> 5) Then I've tried make linux ARCH=um but got problems:
>  a) with gcc 3.4.1 that I started with (standard Mandrake 10.1 instalation)
> I've got a lot of errors like:
>
> "sched.c:839: error: conflicting types for 'sleep_on_timeout'
>
> /home/adam/work/UML/linux-2.4.27/include/linux/sched.h:598: error: previous
> declaration of 'sleep_on_timeout'
>
> was here"
No idea about this (yet)... maybe GCC became stricter about declaration 
consistency... Since the problem happens probably with i386, too, you might 
try the latest 2.4 with the same patch applied.

> So I guessed it was a gcc/Mandrake problem..
>  b) with gcc 3.3.1-2mdk or gcc 2.96-063mdk I got another problem - make
> linux ARCH=um runs smooth

> until it gets to linking: here is what I've got:
> "ld -r -o unmap_fin.o unmap.o -lc -L/usr/lib
> ld: cannot find -lc
> make[3]: *** [unmap_fin.o] Error 1
> make[3] Leaving directory
> `/home/adam/work/UML/linux-2.4.27/arch/um/kernel/tt' ..."

This is a message caused by missing /usr/lib/libc.a - install 
glibc-static-devel and this one *should* work fine. Actually, in my 
experience, gcc 3.3.2 from Mandrake 10 Official miscompiles UML / 2.4 (not 
reproducible with UML / 2.6). gcc 3.2.2 from Mandrake 9.1 installs and works 
well (use make ARCH=um CC='gcc-3.2.2' after installing it)... I've no 
experience with the 3.3.1 one.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to