build problem because of a broken link

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
johnb
Posts: 21
Joined: 2005/06/21 19:52:18
Contact:

build problem because of a broken link

Post by johnb » 2008/04/16 16:58:21

I'm getting this error trying to build a driver for my nic card...

[root@localhost Linux]# make
#@make -C /lib/modules/2.6.18-53.1.14.el5xen/build M=/root/Linux modules
make: *** /lib/modules/2.6.18-53.1.14.el5xen/build: No such file or directory. Stop.
make: *** [modules] Error 2

When I go to..

I get...

lrwxrwxrwx 1 root root 54 Mar 17 09:59 build -> ../../../usr/src/kernels/2.6.18-53.1.14.el5-xen-x86_64

all in red... which means a broken "ln"

Anyone know where this ln should go to?

CentOS release 5 (Final) with xen kernel...

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: build problem because of a broken link

Post by AlanBartlett » 2008/04/16 17:13:46

Have you installed the relevant [b]kernel-devel[/b] package that matches your current kernel?

[b]yum list avail kernel-devel\*[/b]

and then [b]yum install [i][/i][/b]

This WIki article may be of interest http://wiki.centos.org/HowTos/BuildingKernelModules

HTH.
Alan.

johnb
Posts: 21
Joined: 2005/06/21 19:52:18
Contact:

Re: build problem because of a broken link

Post by johnb » 2008/04/16 17:23:53

Yes, I have.

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: build problem because of a broken link

Post by AlanBartlett » 2008/04/16 17:51:44

[quote]Anyone know where this ln should go to? [/quote]

It should go to /usr/src/kernels/2.6.18-53.1.14.el5-xen-x86_64 - as provided by the [i]kernel-devel[/i] package.

Alan.

User avatar
toracat
Forum Moderator
Posts: 7386
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: build problem because of a broken link

Post by toracat » 2008/04/16 18:01:39

You need to go to Section 1 of:

http://wiki.centos.org/HowTos/I_need_the_Kernel_Source

Because you are apparently running a xen kernel, you would run:

yum install kernel-xen-devel

to install the so-called "kernel-devel" package.

johnb
Posts: 21
Joined: 2005/06/21 19:52:18
Contact:

Re: build problem because of a broken link

Post by johnb » 2008/04/16 18:45:54

That fixed it . Strange. I added the development packages when building the server, strange it didn't pick that dev to add.

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: build problem because of a broken link

Post by AlanBartlett » 2008/04/16 18:57:36

[quote]Have you installed the relevant kernel-devel package that matches your current kernel?

yum list avail kernel-devel\*

and then yum install [/quote]

[quote]Yes, I have.[/quote]

Sorry but I work on facts, not assumptions. Typing the command I suggested earlier (you could even have done it with a cut & paste)

[b]yum list avail kernel-devel\*[/b]

would have shown you where your problem was.

This command

[b]rpm -qa kernel\*[/b]

would also have helped you.

Alan.

johnb
Posts: 21
Joined: 2005/06/21 19:52:18
Contact:

Re: build problem because of a broken link

Post by johnb » 2008/04/18 17:54:42

[root@vs2 Linux]# yum list avail kernel-devel\*
Loading "installonlyn" plugin
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Available Packages
kernel-devel.x86_64 2.6.18-53.1.14.el5 updates



I needed kernel-xen-devel.x86_64 to fix my issue.

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: build problem because of a broken link

Post by AlanBartlett » 2008/04/18 18:26:15

Hints are given. Not necessarily explicit steps.

However [b]uname -rmi[/b] and [b]yum list available kernel\*[/b] would have been more precise hints from me. For that, I apologise.

Needless to say when I initially read

[quote]When I go to..

I get...

lrwxrwxrwx 1 root root 54 Mar 17 09:59 build -> ../../../usr/src/kernels/2.6.18-53.1.14.el5-xen-x86_64

all in red... which means a broken "ln"

Anyone know where this ln should go to? [/quote]

I [b]knew[/b] that the correct [b][i]kernel-devel[/i][/b] package had not been installed but, not wishing to cause any offence by just saying "[i]Install the kernel-devel package that matches your kernel[/i]", I phrased it as a rhetorical question.

[quote]Yes, I have.[/quote]

Was not a sensible reply.

Alan.

Post Reply

Return to “CentOS 5 - X86_64,s390(x) and PowerPC Support”