Results 1 to 7 of 7

Thread: openSuse 10.2 Kernel Version Error

Hybrid View

  1. #1

    openSuse 10.2 Kernel Version Error

    Hello, I recently decided to update my backup server of mine from Suse 9.3 to openSuse 10.2, and am having a problem (which, for the purpose of the server, is kind of a big deal). I was trying to compile a module for the RAID card driver, and as soon as I try to 'make' I receive this error:

    backups:/home/ron/Backup Server Stuff/Highpoint RocketRAID 2320/rr232x-linux-src-1.03/product/rr232x/linux # make
    ../../../inc/linux/Makefile.def:80: *** Cannot find kernel version. Check /lib/modules/2.6.18.2-34-default/build/include/linux/version.h.. Stop.




    Here is an excerpt from the Makefile.def (which probably isn't too important, but for completeness...):

    #
    # change KERNELDIR according to your system
    #
    ifndef KERNELDIR
    KERNELDIR := /lib/modules/$(shell uname -r)/build
    endif

    KERNEL_VER := $(shell cat $(KERNELDIR)/include/linux/version.h | grep UTS_RELEASE | cut -c22-24 | head -n 1)

    ifeq ($(KERNEL_VER),)
    $(error Cannot find kernel version. Check $(KERNELDIR)/include/linux/version.h.)
    endif

    ifneq ($(KERNEL_VER), 2.6)
    ifneq ($(KERNEL_VER), 2.4)
    $(error Only kernel 2.4/2.6 is supported but you use $(KERNEL_VER))




    The
    strange thing is this, the above mentioned 'version.h' file:

    #define LINUX_VERSION_CODE 132626
    #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << Cool + (c))




    Now, I am not sure what the version.h is supposed to look like, so I am not sure what I am looking at (hence, the reason I post this so someone more knowledgeable might be able to push me in the right direction).
    I do know for a fact that I have kernel headers installed, and the kernel source (let me rephrase that... I selected it during the installation, and YaST shows that it is installed. Other than that, I don't know how to verify).

    If anyone could possible shed some light on this, I would be greatly appreciative. Thanks in advance!
    Asus A8V Deluxe Mobo
    AMD Athlon64 X2 4400 -939
    2GB Crucial DDR3200 Dual-Channel
    ATi AiW 9800 Pro 128DDR
    Audigy2 ZS
    Sony DRU-810 DVD+RW DL
    3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 120Gb 16Mb Cache

  2. #2
    Junior Member nounou's Avatar
    Join Date
    Nov 2006
    Location
    spain
    Posts
    77
    hi,
    I had this problem not long ago and it is not so documented as one could hope
    I had this problem whith a fresh kernel I just compiled and somehow something went wrong during compil but I didn't notice...I tried to redo (config + compile) this kernel and the message disapeared...I was having this message when trying to install nvidia drivers for my old gforce

  3. #3
    Dang, I was afraid that I may need to do that... I have NEVER had a kernel compile succeed...
    Asus A8V Deluxe Mobo
    AMD Athlon64 X2 4400 -939
    2GB Crucial DDR3200 Dual-Channel
    ATi AiW 9800 Pro 128DDR
    Audigy2 ZS
    Sony DRU-810 DVD+RW DL
    3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 120Gb 16Mb Cache

  4. #4
    Junior Member nounou's Avatar
    Join Date
    Nov 2006
    Location
    spain
    Posts
    77
    well it has gone much easier than a feww years ago...
    the hardest bit is to have the correct option selected in the make xconfig
    because after that make make modules make modules_install and make install and the bootloader is modified to have a boot on old kernel or recent one and all is done...no bzimage nor copy of files...
    just take your time when selecting modules...you can do a make oldconfig that take the parameters of the running kernel and use them for the new one...but if it goes from a 2.17 to a recent one...I've had a bug and it didn't work as expected...my hard drives where not mounted correctly and kernel panic....I had to re configure by hand and recompile...

  5. #5
    Yeah, I suppose I will give it a shot. I'll be back soon if things go south. Thanks for the pointer!
    Asus A8V Deluxe Mobo
    AMD Athlon64 X2 4400 -939
    2GB Crucial DDR3200 Dual-Channel
    ATi AiW 9800 Pro 128DDR
    Audigy2 ZS
    Sony DRU-810 DVD+RW DL
    3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 120Gb 16Mb Cache

  6. #6
    Junior Member nounou's Avatar
    Join Date
    Nov 2006
    Location
    spain
    Posts
    77
    Hi,
    I found an old paper with my solution on it
    make include/linux/version.h
    am I too late?

Similar Threads

  1. Error executing make command for xmlrpc-c 1.06.32 tarball version
    By sabkuchindia in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 04-16-2009, 06:38 AM
  2. object file not supporting kernel version
    By misbah_khan in forum Linux - General Topics
    Replies: 1
    Last Post: 11-27-2006, 07:02 AM
  3. RH8.0 Up2date for kernel version 2.4.18.28
    By Rastar in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 03-29-2003, 09:16 AM
  4. Kernel Version
    By mugs in forum Linux - General Topics
    Replies: 2
    Last Post: 11-20-2002, 02:05 AM
  5. question about kernel version
    By boblucci in forum Linux - General Topics
    Replies: 15
    Last Post: 12-15-2001, 12:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •