Re: Couple of questions

"Peter T. Breuer" <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
"Also sprach Robert Scussel:"
> So, I d/l 2.6.11, 2.6.11.6 and 2.6.12.3 kernel sources, and did a make 
> modules; make bzImage on each so that a) I know that the kernel builds 
> ok and b) necessary things are made.
> 
> Also I noticed on your reply that it built fine with 2.6.11.6 and that 
> you were using nbd-2.4.32, so I d/l enbd-2.4.32pre.tgz

2.4.32 is current. There is little hope that anything else would have
config files set up for the latest kernels (though it, for some value
of it, might work with a little bit of a fight).

> make LINUXDIR=/usr/src/linux-2.6.11.6
> -- everything works fine.

OK - that's what is supposed to happen.

> in fact even with linux-2.6.12.3, everything works find as long as I use:
> make LINUXDIR=/usr/src/linux-2.6.12.3

That's what is supposed to be done. If one dinna say where the kernel
source is that one wants to use, the makefile guesses you mean to build
for the current running kernel, and tries to follow through to where it
might be from the build link in the modules directory.

> however, even if I ln -s /usr/src/linux-2.6.12.3 -> /usr/src/linux and 
> just run make I get all sorts of errors like :

That's not surprising, since it doesn't look there!  The Makefile says:

  # where the kernel sources are     - alter to suit
  LINUXDIR    := /lib/modules/$(shell uname -r)/build

> Which I notice it goes to /lib/modules... for some of the includes if 
> LINUXDIR isn't specified on the make line, and is specified in the 
> Makefile as /usr/src/linux. This is probably what the web page was 
> talking about, but it wasn't clear to me and I thought that it warranted 
> noting.
> 
> Long story short:
> Compiled fine for both 2.6.11.6 and 2.6.12.3

OK - glad to hear that. I wonder if it works?

Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.