Operating System - Linux
1829115 Members
14550 Online
109986 Solutions
New Discussion

Re: problems compiling e1000-6.2.19b-1.src.rpm

 
NPI
Occasional Advisor

problems compiling e1000-6.2.19b-1.src.rpm

Hello,
we wanted to install the e1000-6.2.19b-1.src.rpm module on a RHEL AS4, but when we run
rpmbuild -bb e1000.spec
we have the following warnings:

make: Entering directory `/usr/src/redhat/BUILD/e1000-6.2.19b/src'
Makefile:177: ***
Makefile:182: *** Warning: kernel source configuration (UP)
Makefile:183: *** does not match running kernel (SMP)
Makefile:185: *** Continuing with build,
Makefile:186: *** resulting driver may not be what you want
Makefile:187: ***
make -C /lib/modules/2.6.9-34.EL/build SUBDIRS=/usr/src/redhat/BUILD/e1000-6.2.19b/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-i686'
/usr/src/redhat/BUILD/e1000-6.2.19b/src/Makefile:177: ***
/usr/src/redhat/BUILD/e1000-6.2.19b/src/Makefile:182: *** Warning: kernel source configuration (UP)
/usr/src/redhat/BUILD/e1000-6.2.19b/src/Makefile:183: *** does not match running kernel (SMP)
/usr/src/redhat/BUILD/e1000-6.2.19b/src/Makefile:185: *** Continuing with build,
/usr/src/redhat/BUILD/e1000-6.2.19b/src/Makefile:186: *** resulting driver may not be what you want
/usr/src/redhat/BUILD/e1000-6.2.19b/src/Makefile:187: ***


Other Details:
THe kernel is the one provided by REDHAT

# uname -a
Linux wolfnpi 2.6.9-34.ELhugemem #1 SMP Fri Feb 24 17:04:34 EST 2006 i686 i686 i386 GNU/Linux


Does anyone know how to avoid these warnings and have a "clean" installation?

Obiouvsly, if other details are needed, feel free to ask...

Thanks in advance for any help,
Filippo

9 REPLIES 9
Ivan Ferreira
Honored Contributor

Re: problems compiling e1000-6.2.19b-1.src.rpm

It seems that the installed kernel (hugemem SMP) does not match the configuration of the kernel source three (UniProcessor). This will happen when you install the binary kernel from rpm, and then installed the kernel source, but the kernel source does not have the .config file according to the running kernel. You can try by doing:

cd /usr/src/linux
make mrproper
cp configs/kernel--hugemem.config .config
make oldconfig

Or by running

make config

And enabling SMP support.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
NPI
Occasional Advisor

Re: problems compiling e1000-6.2.19b-1.src.rpm

In our RHEL4AS we don't have the directory

/usr/src/linux

but only

/usr/src/redhat

and

/usr/src/kernels

and the command

rpm -qa | grep kernel

gives us:

kernel-doc-2.6.9-34.EL
kernel-smp-devel-2.6.9-22.EL
kernel-utils-2.4-13.1.80
kernel-hugemem-2.6.9-34.EL
kernel-2.6.9-34.EL
kernel-hugemem-devel-2.6.9-34.EL
kernel-devel-2.6.9-34.EL

so what we need to do ?

Thanks in advance

Filippo

Vitaly Karasik_1
Honored Contributor

Re: problems compiling e1000-6.2.19b-1.src.rpm

Very strange! kernel-hugemem-devel-2.6.9-34.EL it's that you need.
May be e1000-6.2.19b-1.src.rpm doesn't support RHEL4 update 3 yet? (on their webpage http://h18004.www1.hp.com/support/files/server/us/download/24013.html they speak about update 1 only)
Steven E. Protter
Exalted Contributor

Re: problems compiling e1000-6.2.19b-1.src.rpm

Actually not so strange.

HP does QA testing before they support new releases. It can take 30-180 days depending on the priority that is set and complexity of the issue.

That's my experience anyway.

There are things to check prior to using this release.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vitaly Karasik_1
Honored Contributor

Re: problems compiling e1000-6.2.19b-1.src.rpm

Steven,

This is strange because we're speaking about building kernel module from sources. It should work for all 2.6.9-xxx kernels.

Filippo,
I believe, I know the solution: you should remove all *kernel-devel* packages except kernel-hugemem-devel-2.6.9-34.EL. May be make sense even remove *all* *kernel-devel* packages and install kernel-hugemem-devel-2.6.9-34.EL.
NPI
Occasional Advisor

Re: problems compiling e1000-6.2.19b-1.src.rpm

thanks Vitaly,
the solution is right that...
but, in addition, we have also to delete by hands all the diretctories of the modules of the other "types" of kernels; that is
/lib/modules/2.6.9-34.ELsmp, etc...

If we leave those ones there, and we try to compile e1000 module, we have the following error:
make: Entering directory `/usr/src/redhat/BUILD/e1000-6.2.19b/src'
Makefile:97: *** Linux kernel source not configured - missing version.h. Stop.
make: Leaving directory `/usr/src/redhat/BUILD/e1000-6.2.19b/src'
error: Bad exit status from /var/tmp/rpm-tmp.82527 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.82527 (%build)



Deleting them by hand, the compilation ends in the right way...

Thanks to all for the support.

Filippo
Vitaly Karasik_1
Honored Contributor

Re: problems compiling e1000-6.2.19b-1.src.rpm

you're welcome!

>but, in addition, we have also to delete >by hands all the diretctories of the >modules of the other "types" of kernels

it seems to me like a bug in e1000 package.
Alexander Chuzhoy
Honored Contributor

Re: problems compiling e1000-6.2.19b-1.src.rpm

Did you try the LD_ASSUME_KERNEL variable?
Hope it helps.
NPI
Occasional Advisor

Re: problems compiling e1000-6.2.19b-1.src.rpm

unfortunatly setting the variable

LD_ASSUME_KERNEL=2.6.9-34.ELhugemem

don't help, we get same error:

make: Entering directory `/usr/src/redhat/BUILD/e1000-6.2.19b/src'
rm -rf e1000.ko e1000.o e1000.mod.c e1000.mod.o e1000_main.o e1000_hw.o e1000_param.o e1000_ethtool.o kcompat.o e1000.7.gz
.*cmd .tmp_versions
make: Leaving directory `/usr/src/redhat/BUILD/e1000-6.2.19b/src'
+ make -C src KSP=/lib/modules/2.6.9-34.EL/build INSTALL_MOD_PATH=/var/tmp/e1000-6.2.19b-root MANDIR=/usr/share/man CFLAGS
_EXTRA= install
make: Entering directory `/usr/src/redhat/BUILD/e1000-6.2.19b/src'
Makefile:97: *** Linux kernel source not configured - missing version.h. Stop.
make: Leaving directory `/usr/src/redhat/BUILD/e1000-6.2.19b/src'
error: Bad exit status from /var/tmp/rpm-tmp.65516 (%build)