HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Kernel Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=6)
-   -   Kernel Compile Error: Mandriva 2007 (http://www.howtoforge.com/forums/showthread.php?t=14889)

wazzubrad 19th August 2007 18:00

Kernel Compile Error: Mandriva 2007
 
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

falko 20th August 2007 18:51

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
?

wazzubrad 21st August 2007 01:20

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/

falko 21st August 2007 17:49

Quote:

Originally Posted by wazzubrad
The output is:

lrwxrwxrwx 1 root root 18 Aug 18 23:28 linux -> linux-2.6.17-13mdv/

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

jakdominance 16th May 2009 14:46

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.

falko 17th May 2009 19:37

Is the rpmbuild package installed?

jakdominance 18th May 2009 14:55

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.

falko 19th May 2009 15:06

Try
Code:

urpmi rpmbuild

Hariboo 31st July 2009 13:10

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.

falko 1st August 2009 09:53

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


All times are GMT +2. The time now is 20:24.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.