On Mon, October 15, 2007 4:29 pm, Mike Marion wrote:
> Quoting Lan Barnes <[EMAIL PROTECTED]>:
>
> This initial bit...
> ===
> [EMAIL PROTECTED] Module]# make
> cc -D__KERNEL__ -I/usr/src/kernels/2.6.20-1.2933.fc6-i686//include -O2
> -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
> -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS
> -include
> /usr/src/kernels/2.6.20-1.2933.fc6-i686//include/linux/modversions.h
> -Wall -Wstrict-prototypes -Wno-trigraphs   -c -o rtmp_main.o rtmp_main.c
> cc1: error:
> /usr/src/kernels/2.6.20-1.2933.fc6-i686//include/linux/modversions.h:
> No such file or directory
> In file included from rtmp_main.c:38:
> rt_config.h:53:40: error: linux/config.h: No such file or directory
> ===
>
> Leads me to believe that maybe your kernel source isn't setup for
> building modules yet.  If you didn't build the kernel then boot that
> kernel, the source likely needs you to do something like:
> make oldconfig
> make modules_prepare
> which will do thinks like put some initial small scripts into place
> and do some links in at least the asm paths.
>
> I could be way off though.
>
> I'm used to running into this and seeing very similar errors on
> rhel/sles hosts when you do an install, install kernel-source and then
> try to build a module without running (on SuSE at least): make
> cloneconfig; make modules_prepare.
>
>

That's almost certainly it. I installed the devel rpms but have never made
the kernel on this box.

Thanks, Mike. I won't post back it this fixes it.

-- 
Lan Barnes

SCM Analyst              Linux Guy
Tcl/Tk Enthusiast        Biodiesel Brewer


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to