Kernel Compile Error: Mandriva 2007

Discussion in 'Kernel Questions' started by wazzubrad, Aug 19, 2007.

  1. wazzubrad

    wazzubrad New Member

    This is what I end up with. Is my symlink going in the correct location or referencing the correct location?

    [root@localhost src]# tar xjf linux-2.6.22.3.tar.bz2
    [root@localhost src]# ln -s linux-2.6.22.3 linux
    [root@localhost src]# cd /usr/src/linux
    [root@localhost linux]# make clean && make mrproper
    awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
    awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
    awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
    awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
    CLEAN scripts/basic
    CLEAN scripts/kconfig/lxdialog
    CLEAN scripts/kconfig
    CLEAN scripts/package
    CLEAN .config .config.old .version include/linux/autoconf.h .kernelrelease
    [root@localhost linux]# make rpm
    /bin/sh /usr/src/linux-2.6.17-13mdv/scripts/package/mkspec > /usr/src/linux-2.6.17-13mdv/kernel.spec
    make clean
    awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
    awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
    set -e; cd ..; ln -sf /usr/src/linux-2.6.17-13mdv kernel-2.6.1713mdvcustomdefault
    set -e; cd ..; tar -cz --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS --exclude .pc --exclude .hg --exclude .git -f kernel-2.6.1713mdvcustomdefault.tar.gz kernel-2.6.1713mdvcustomdefault/.
    set -e; cd ..; rm kernel-2.6.1713mdvcustomdefault
    set -e; \
    /bin/sh /usr/src/linux-2.6.17-13mdv/scripts/mkversion > /usr/src/linux-2.6.17-13mdv/.tmp_version
    set -e; \
    mv -f /usr/src/linux-2.6.17-13mdv/.tmp_version /usr/src/linux-2.6.17-13mdv/.version
    rpm --target i386 -ta ../kernel-2.6.1713mdvcustomdefault.tar.gz
    Could not exec /usr/lib/rpm/rpmb: No such file or directory
    make[1]: *** [rpm] Error 1
    make: *** [rpm] Error 2
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I wonder why your 2.6.22 kernel looks for files belonging to 2.6.17... :confused:

    What's the output of
    Code:
    ls -la /usr/src
    ?
     
  3. wazzubrad

    wazzubrad New Member

    The output is:

    drwxr-xr-x 16 root root 4096 Aug 19 09:36 ./
    drwxr-xr-x 13 root root 4096 Jul 23 10:47 ../
    drwxr-xr-x 2 root root 4096 Apr 11 11:24 ati-8.34.8/
    drwxr-xr-x 4 root root 4096 Aug 8 21:28 ati-8.34.8-2.1plf2007.1/
    drwxr-xr-x 3 root root 4096 Jul 27 15:27 debug/
    drwxr-xr-x 2 root root 4096 Apr 11 11:25 hcfpcimodem-1.10full/
    drwxr-xr-x 2 root root 4096 Apr 11 11:25 hsfmodem-7.47.00.03full/
    lrwxrwxrwx 1 root root 18 Aug 18 23:28 linux -> linux-2.6.17-13mdv/
    drwxr-xr-x 22 root root 4096 Aug 19 09:39 linux-2.6.17-13mdv/
    drwxrwxr-x 19 root root 4096 Aug 15 10:25 linux-2.6.22.3/
    drwxr-xr-x 2 root root 4096 Apr 11 11:25 madwifi-0.9.2/
    drwxr-xr-x 4 root root 4096 Aug 1 16:40 Mesa/
    drwxr-xr-x 2 root root 4096 Apr 11 11:25 nvidia71xx-7184/
    drwxr-xr-x 2 root root 4096 Apr 11 11:25 nvidia96xx-9631/
    drwxr-xr-x 2 root root 4096 Apr 11 11:25 nvidia97xx-9755/
    drwxr-xr-x 3 root root 4096 Apr 11 11:11 rpm/
    drwxr-xr-x 2 root root 4096 Apr 11 11:25 slmodem-2.9.11/
     
  4. falko

    falko Super Moderator Howtoforge Staff

    linux is pointing to linux-2.6.17-13mdv/, not linux-2.6.22.3/...
    Try this:
    Code:
    ln -sf /usr/src/linux-2.6.22.3 /usr/src/linux
     
  5. jakdominance

    jakdominance New Member

    I get this:

    Code:
    [root@localhost linux]# make rpm
    make clean
    set -e; cd ..; ln -sf /usr/src/linux-2.6.29.1-4mnb kernel-2.6.29.14mnbcustomdefault
    /bin/sh /usr/src/linux-2.6.29.1-4mnb/scripts/setlocalversion > /usr/src/linux-2.6.29.1-4mnb/.scmversion
    set -e; cd ..; tar -cz --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS --exclude .pc --exclude .hg --exclude .git -f kernel-2.6.29.14mnbcustomdefault.tar.gz kernel-2.6.29.14mnbcustomdefault/.
    set -e; cd ..; rm kernel-2.6.29.14mnbcustomdefault
    rm -f /usr/src/linux-2.6.29.1-4mnb/.scmversion
    set -e; \
            /bin/sh /usr/src/linux-2.6.29.1-4mnb/scripts/mkversion > /usr/src/linux-2.6.29.1-4mnb/.tmp_version
    set -e; \
            mv -f /usr/src/linux-2.6.29.1-4mnb/.tmp_version /usr/src/linux-2.6.29.1-4mnb/.version
    rpm  --target i386 -ta ../kernel-2.6.29.14mnbcustomdefault.tar.gz
    "rpm -b" is deprecated, use "rpmbuild -b"
    /usr/lib/rpm/rpmb_deprecated: line 3: exec: rpmbuild: not found
    make[1]: *** [rpm] Error 127
    make: *** [rpm] Error 2
    
    is this a different problem? when i do
    Code:
    ls -la /usr/src
    
    i get this:
    Code:
    total 59964
    drwxr-xr-x  3 root root     4096 May 16 21:27 ./
    drwxr-xr-x 14 root root     4096 May 16 09:09 ../
    -rw-r--r--  1 root root 61322765 May 16 21:27 kernel-2.6.29.14mnbcustomdefault.tar.gz
    lrwxrwxrwx  1 root root       19 May 16 17:55 linux -> linux-2.6.29.1-4mnb/
    drwxr-xr-x 23 root root     4096 May 16 21:27 linux-2.6.29.1-4mnb/
    
    which is different, but i'm still stuck.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Is the rpmbuild package installed?
     
  7. jakdominance

    jakdominance New Member

    probably not. actually, there's probably a ton of things that I haven't installed and should. how do i install rpmbuild and is there documentation on other recommended installs anywhere? for instance important stuff to do in order to install and configure vmware tools.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Try
    Code:
    urpmi rpmbuild
     
  9. Hariboo

    Hariboo New Member

    Mandriva 2007

    I dowonloaded Mandriva 2007 version from a FTP site. It was a 64 bit version. I couldn't Stellenangebote install it. Then I bought it by buying a copy of the Linux Magazine. It had some other problems. It didn't recognize the mouse.

    I send an email to the people who made it. They want people to contact them if there is a problem. They never reply.
     
    Last edited: Aug 4, 2009
  10. falko

    falko Super Moderator Howtoforge Staff

    Mandriva 2007 is quite old. Why don't you try 2009.1?
     
  11. miltonhork

    miltonhork New Member

    Hi
    Linux is all about the freedom to use different libraries for the same functions. Redhat is big and vast with a lot of the sym links already established. I'm still learning linux. Sorry I can't tell you what the command was that seeks the dependencies for you in a build. I did find an old article that has helped me in the past. See if the link below makes any sense. Good luck!
     

Share This Page