Re: Couple of questions
Robert Scussel <[email protected]>
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Organization | OmniTI, Inc. |
| Message-ID | <[email protected]> |
When I:
insmod /tmp/enbd.ko
I get the following in dmesg:
enbd: disagrees about version of symbol struct_module
nm of enbd.ko results in:
--snip--
U unregister_sysctl_table
U __up_wakeup
0000000000000000 r ____versions
U __wake_up
--snip
I can post the entire nm if it makes a difference, but after nm my other
modules it looks similar. I don't see kernel versions on any of the
other modules.
Ideas? Did I take a wrong turn somewhere?
Thanks in advancce again,
B
Peter T. Breuer wrote:
> "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
--
Robert Scussel
1024D/BAF70959/0036 B19E 86CE 181D 0912 5FCC 92D8 1EA1 BAF7 0959