Re: [uml-user] Problems compiling user mode linux kernel

2006-09-27 Thread Lee Cartwright
Jeff Dike wrote: > You should have added the /usr/lib part, not modified /lib to /usr/lib. > > But in any case, that's not the problem, so put that back the way it was > and add "V=1" to the UML build command and post the failing link command > line. > > Jeff > >

Re: [uml-user] Problems compiling user mode linux kernel

2006-09-27 Thread Jeff Dike
On Wed, Sep 27, 2006 at 12:56:48PM +0100, Lee Cartwright wrote: > Here is the libutil info for my system (FC4 for the record). > > /usr/lib/libutil.a > /usr/lib/libutil.so -> ../../lib/libutil.so.1 > /lib/libutil.so.1 -> libutil-2.3.5.so > /lib/libutil-2.3.5.so > > So it seems to be in both direc

Re: [uml-user] Problems compiling user mode linux kernel

2006-09-27 Thread Lee Cartwright
Jeff Dike wrote: > If your distro really has libutil only in /usr/lib, then the place to fix > that is this line in arch/um/Makefile: > > LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib > > Jeff > Hi Jeff, Here is the libutil info for my system (FC4 for the

Re: [uml-user] Problems compiling user mode linux kernel

2006-09-27 Thread Jeff Dike
On Wed, Sep 27, 2006 at 09:19:18AM +0100, Lee Cartwright wrote: > /usr/bin/ld: cannot find -lutil > collect2: ld returned 1 exit status It'll be looking for libutil.so unless you asked for a static link. Here, it is in both /lib and /usr/lib: /lib/libutil-2.4.so /lib/libutil.so.1

Re: [uml-user] Problems compiling user mode linux kernel

2006-09-27 Thread Samuel Korpi
On 9/27/06, Lee Cartwright <[EMAIL PROTECTED]> wrote: > > Embarrassing question time but how do I check my library path? libutil.a > is in /usr/lib so I'm guessing it's just a case of adding it there. > Then it actually should be working already, as to my knowledge /usr/lib is the default search pa

Re: [uml-user] Problems compiling user mode linux kernel

2006-09-27 Thread Lee Cartwright
Samuel Korpi wrote: > >> > Hmm. I've never had such a problem. Check that you have libutil.a in > your library path (e.g. /usr/lib/libutil.a). If not, that is most > likely causing the error. Depending on your distro, you then have to > find where libutil.a is provided. > > /Samuel > > Embarrassin

Re: [uml-user] Problems compiling user mode linux kernel

2006-09-27 Thread Samuel Korpi
On 9/27/06, Lee Cartwright <[EMAIL PROTECTED]> wrote: > Thanks, that got me a bit further :) > > I removed my linux directory, unpacked the kernel source again and > applied the patch you linked to. The make is now failing with the > following error:lutil > ... > /usr/bin/ld: cannot find -lutilluti

Re: [uml-user] Problems compiling user mode linux kernel

2006-09-27 Thread Lee Cartwright
Hi Samuel, Thanks, that got me a bit further :) I removed my linux directory, unpacked the kernel source again and applied the patch you linked to. The make is now failing with the following error: CC lib/rbtree.o CC lib/rwsem.o CC lib/semaphore-sleepers.o CC lib/sha1

Re: [uml-user] Problems compiling user mode linux kernel

2006-09-27 Thread Samuel Korpi
On 9/27/06, Lee Cartwright <[EMAIL PROTECTED]> wrote: > > I have > downloaded the 2.6.18 kernel from kernel.org and applied the -mm patch > (Which I believe I was supposed to do). I have made a config file using > make defconfig ARCH=um. > Try instead the stable 2.6.18 kernel (without the -mm patc

[uml-user] Problems compiling user mode linux kernel

2006-09-26 Thread Lee Cartwright
Hi all, I've got a session of user mode linux up and running using the pre-compiled binaries so thought I would have a go at building my own uml. Hopefully this will help me to understand uml a bit more. I have downloaded the 2.6.18 kernel from kernel.org and applied the -mm patch (Which I bel