LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 02-28-2010, 08:01 PM   #1
Darrell22
Member
 
Registered: Nov 2003
Posts: 74

Rep: Reputation: 15
Question Make doesn't work. Again!


Dear Experts,

I'm running Redhat 5.2

cat /proc/version
Linux version 2.6.18-92.el5PAE (mockbuild@ca-build15.us.oracle.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-41)) #1 SMP Fri May 23 22:26:05 EDT 2008


uname -r
2.6.18-92.el5PAE


When I boot, I get a choice of:

title Enterprise Linux (2.6.18-92.el5PAE)
root (hd0,1)
kernel /vmlinuz-2.6.18-92.el5PAE ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-92.el5PAE.img
title Enterprise Linux-xen (2.6.18-92.el5xen)
root (hd0,1)
kernel /xen.gz-2.6.18-92.el5
module /vmlinuz-2.6.18-92.el5xen ro root=LABEL=/ rhgb quiet
module /initrd-2.6.18-92.el5xen.img
title Enterprise Linux-base (2.6.18-92.el5)
root (hd0,1)
kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-92.el5.img

and I choose the first.


I'm trying to configure my Belkin USB network adapter
to work with it.

I've downloaded a number of files off the web
and I've been following the instructions.

But each time I run the make command,
as in the instructions, it fails.




pwd
/tmp/usbnetwork

[root@blue usbnetwork]# ls -l
total 480
-rwxr-xr-x 1 root root 486348 Feb 27 11:08 2009_0713_RT73_Linux_STA_Drv1.1.0.3.zip


unzip 2009_0713_RT73_Linux_STA_Drv1.1.0.3.zip

cd /tmp/usbnetwork/2009_0713_RT73_Linux_STA_Drv1.1.0.3/Module

ls -l M*
-rw-r--r-- 1 root root 2922 Jul 13 2009 Makefile
-rw-r--r-- 1 root root 3039 Jul 13 2009 Makefile.4


diff Makefile Makefile.4

< # Abstract: Makefile for rt73 linux driver on kernel series 2.6
---
> # Abstract: Makefile for rt73 linux driver on kernel series 2.4


grep -i "2.6" * -l
Makefile
readme


[root@blue Module]# make

make -C /lib/modules/2.6.18-92.el5PAE/build SUBDIRS=/tmp/usbnetwork/2009_0713_RT73_Linux_STA_Drv1.1.0.3/Module modules
make: *** /lib/modules/2.6.18-92.el5PAE/build: No such file or directory. Stop.
make: *** [all] Error 2


which make
/usr/bin/make


make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-redhat-linux-gnu



file /lib/modules/2.6.18-92.el5PAE/build
/lib/modules/2.6.18-92.el5PAE/build:
broken symbolic link to `../../../usr/src/kernels/2.6.18-92.el5-PAE-i686'


find / -type f | grep -i "kernels/2.6.18-92.el5-PAE-i686"
- nothing



ls -l /lib/modules/2.6.18-92.el5PAE/build
lrwxrwxrwx 1 root root 47 Jan 16 07:44 /lib/modules/2.6.18-92.el5PAE/build -> ../../../usr/src/kernels/2.6.18-92.el5-PAE-i686


cd /lib/modules/2.6.18-92.el5PAE


file build
build: broken symbolic link to `../../../usr/src/kernels/2.6.18-92.el5-PAE-i686'


find / -type f | grep -i "2.6.18-92.el5-PAE-i686"
- nothing


find / -type f | grep -i "2.6.18-92.el5-PAE-i686" | wc
0 0 0




cd /usr/src/kernels

[root@blue kernels]# ls -l
total 12
drwxr-xr-x 18 root root 4096 Jan 16 07:51 2.6.18-92.el5-xen-i686
lrwxrwxrwx 1 root root 22 Jan 16 07:51 2.6.18-92.el5xen-i686 -> 2.6.18-92.el5-xen-i686




pwd
/lib/modules/2.6.18-92.el5PAE

[root@blue 2.6.18-92.el5PAE]# ls -l
total 1188
lrwxrwxrwx 1 root root 47 Jan 16 07:44 build -> ../../../usr/src/kernels/2.6.18-92.el5-PAE-i686
drwxr-xr-x 4 root root 4096 Jan 16 07:46 extra
drwxr-xr-x 9 root root 4096 Jan 16 07:44 kernel
-rw-r--r-- 1 root root 252381 Jan 16 07:46 modules.alias
-rw-r--r-- 1 root root 69 Jan 16 07:46 modules.ccwmap
-rw-r--r-- 1 root root 204282 Jan 16 07:46 modules.dep
-rw-r--r-- 1 root root 147 Jan 16 07:46 modules.ieee1394map
-rw-r--r-- 1 root root 375 Jan 16 07:46 modules.inputmap
-rw-r--r-- 1 root root 2314 Jan 16 07:46 modules.isapnpmap
-rw-r--r-- 1 root root 74 Jan 16 07:46 modules.ofmap
-rw-r--r-- 1 root root 191199 Jan 16 07:46 modules.pcimap
-rw-r--r-- 1 root root 589 Jan 16 07:46 modules.seriomap
-rw-r--r-- 1 root root 107089 Jan 16 07:46 modules.symbols
-rw-r--r-- 1 root root 322731 Jan 16 07:46 modules.usbmap
lrwxrwxrwx 1 root root 5 Jan 16 07:44 source -> build
drwxr-xr-x 2 root root 4096 May 23 2008 updates
drwxr-xr-x 3 root root 4096 Jan 16 07:46 weak-updates




Make a link
/lib/modules/.../build


file /usr/src/kernels/2.6.18-92.el5-xen-i686
/usr/src/kernels/2.6.18-92.el5-xen-i686: directory


ln -s /lib/modules/2.6.18-92.el5PAE/build /usr/src/kernels/2.6.18-92.el5-xen-i686


file /lib/modules/2.6.18-92.el5PAE/build

lib/modules/2.6.18-92.el5PAE/build:
broken symbolic link to `../../../usr/src/kernels/2.6.18-92.el5-PAE-i686'


file /usr/src/kernels/2.6.18-92.el5-xen-i686
/usr/src/kernels/2.6.18-92.el5-xen-i686: directory



find / -type f -iname "build"
/usr/share/sendmail-cf/cf/Build


find / -type l -iname "build" -ls

38896118 0 lrwxrwxrwx 1 root root 43 Jan 16 07:44
/lib/modules/2.6.18-92.el5/build -> ../../../usr/src/kernels/2.6.18-92.el5-i686

38765429 0 lrwxrwxrwx 1 root root 47 Jan 16 07:44
/lib/modules/2.6.18-92.el5PAE/build -> ../../../usr/src/kernels/2.6.18-92.el5-PAE-i686

38863043 0 lrwxrwxrwx 1 root root 47 Jan 16 07:44
/lib/modules/2.6.18-92.el5xen/build -> ../../../usr/src/kernels/2.6.18-92.el5-xen-i686

38798441 0 lrwxrwxrwx 1 root root 49 Jan 16 07:44
/lib/modules/2.6.18-92.el5debug/build -> ../../../usr/src/kernels/2.6.18-92.el5-debug-i686

100798385 0 lrwxrwxrwx 1 root root 35 Feb 27 14:19
/usr/src/kernels/2.6.18-92.el5-xen-i686/build -> /lib/modules/2.6.18-92.el5PAE/build

----------------------------------

file /usr/src/kernels/2.6.18-92.el5-i686
/usr/src/kernels/2.6.18-92.el5-i686: ERROR: cannot open `/usr/src/kernels/2.6.18-92.el5-i686' (No such file or directory)


file /usr/src/kernels/2.6.18-92.el5-PAE-i686
/usr/src/kernels/2.6.18-92.el5-PAE-i686: ERROR: cannot open `/usr/src/kernels/2.6.18-92.el5-PAE-i686' (No such file or directory)


file /usr/src/kernels/2.6.18-92.el5-xen-i686
/usr/src/kernels/2.6.18-92.el5-xen-i686: directory


file /usr/src/kernels/2.6.18-92.el5-debug-i686
/usr/src/kernels/2.6.18-92.el5-debug-i686: ERROR: cannot open `/usr/src/kernels/2.6.18-92.el5-debug-i686' (No such file or directory)


file /lib/modules/2.6.18-92.el5PAE/build
/lib/modules/2.6.18-92.el5PAE/build: broken symbolic link to `../../../usr/src/kernels/2.6.18-92.el5-PAE-i686'


-----------------------

file /lib/modules/2.6.18-92.el5/build
/lib/modules/2.6.18-92.el5/build: broken symbolic link to `../../../usr/src/kernels/2.6.18-92.el5-i686'

file /lib/modules/2.6.18-92.el5PAE/build
/lib/modules/2.6.18-92.el5PAE/build: broken symbolic link to `../../../usr/src/kernels/2.6.18-92.el5-PAE-i686'


file /lib/modules/2.6.18-92.el5xen/build
/lib/modules/2.6.18-92.el5xen/build: symbolic link to `../../../usr/src/kernels/2.6.18-92.el5-xen-i686'

file /lib/modules/2.6.18-92.el5debug/build
/lib/modules/2.6.18-92.el5debug/build: broken symbolic link to `../../../usr/src/kernels/2.6.18-92.el5-debug-i686'

file /usr/src/kernels/2.6.18-92.el5-xen-i686/build
/usr/src/kernels/2.6.18-92.el5-xen-i686/build: broken symbolic link to `/lib/modules/2.6.18-92.el5PAE/build'



------------------------------------------------------
------------------------------------------------------
------------------------------------------------------
------------------------------------------------------


Next day, download some other files.
See if I can get them to work.



--------------------

Try again:

cd /tmp/usbnetwork/2009_0713_RT73_Linux_STA_Drv1.1.0.3/Module

which make
/usr/bin/make

make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-redhat-linux-gnu


make

make -C /lib/modules/2.6.18-92.el5PAE/build SUBDIRS=/tmp/usbnetwork/2009_0713_RT73_Linux_STA_Drv1.1.0.3/Module modules
make: *** /lib/modules/2.6.18-92.el5PAE/build: No such file or directory. Stop.
make: *** [all] Error 2


tar xzfvp rt73-cvs-daily.tar.gz
...


cd /tmp/usbnetwork/rt73-cvs-2009041204/Module

make && make install

make: *** /lib/modules/2.6.18-92.el5PAE/build: No such file or directory. Stop.
rt73.ko failed to build!
make: *** [module] Error 1


file /lib/modules/2.6.18-92.el5PAE/build

/lib/modules/2.6.18-92.el5PAE/build: broken symbolic link to `../../../usr/src/kernels/2.6.18-92.el5-PAE-i686'


file /usr/src/kernels/2.6.18-92.el5-PAE-i686

/usr/src/kernels/2.6.18-92.el5-PAE-i686: ERROR: cannot open `/usr/src/kernels/2.6.18-92.el5-PAE-i686' (No such file or directory)


file /usr/src/kernels
/usr/src/kernels: directory

cd /usr/src/kernels

[root@blue kernels]# ls -l
total 12
drwxr-xr-x 18 root root 4096 Feb 27 14:19 2.6.18-92.el5-xen-i686
lrwxrwxrwx 1 root root 22 Jan 16 07:51 2.6.18-92.el5xen-i686 -> 2.6.18-92.el5-xen-i686



------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------


So, I'm calling for help.

As you can see, there are lots of broken links.

Does anyone know the secret to getting make to work???

What is it please?
 
Old 02-28-2010, 09:54 PM   #2
kakaka
Member
 
Registered: Sep 2003
Posts: 382

Rep: Reputation: 86
I not familiar with all the details of what you're trying to build. But glancing at the way you are doing things, just a couple quick observations. If you want to check for a fixed string in some text, you might want to consider using "fgrep" instead of "grep", since
"grep" or "egrep" will tend to interpret the string your seeking as various types of regular expressions. You might want to issue
the command:

man grep

at look at the relationship between the various forms of grep. Also, just because you have the binary files associated with
your kernel, doesn't mean you have the source files for it, what you might find in /usr/src/kernels if you had the source
for your particular kernel. It appears you might have the source for the "xen" kernel form, not the "PAE" form of the
kernel. You might need to get the source for the PAE form of the kernel.
 
Old 03-01-2010, 02:24 AM   #3
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 227

Rep: Reputation: 54
Quote:
make: *** /lib/modules/2.6.18-92.el5PAE/build: No such file or directory. Stop.
Apparently, the kernel source or kernel headers package for that kernel is not installed.
 
  


Reply

Tags
make, makefile


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make Xconfig doesn't work, make menuconfig does work Debian/KDE bucovaina78 Linux - Kernel 1 10-15-2008 02:26 PM
1st time installing redhat - Make and Make Install does not work runlikeanantelope Linux - Newbie 4 02-19-2007 04:58 PM
Trying to make mod_ssl work - virtualhosts make trouble Belize Linux - Software 0 02-26-2005 09:30 PM
How do I make a change to a current kernel? Would 'make oldconfig' work... jtp51 Slackware 11 11-02-2004 12:02 AM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 12:17 PM


All times are GMT -5. The time now is 01:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration