I installed the kernel-2.6.18-8.el5.src.rpm today and went to build it, but it fails with this error:
$ rpmbuild -bp --target=`uname -m` kernel-2.6.spec Building target platforms: x86_64 Building for target x86_64 error: Failed build dependencies: unifdef is needed by kernel-2.6.18-8.el5.x86_64
I double checked and this appears to be the latest kernel source rpm on centos/5.0/os/SRPMS. I googled around a bit and didn't see any simple solution to this, although I can't help but feel that there is one - is there, or do I need to do some serious patching here?
$ ls -l kernel-2.6.18-8.el5.src.rpm -rw-r--r-- 1 mhr users 48134078 Apr 12 13:16 kernel-2.6.18-8.el5.src.rpm $ uname -a Linux mhullrichter 2.6.18-8.1.1.el5 #1 SMP Mon Apr 9 09:43:24 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
Thanks
On Fri, May 04, 2007 at 02:08:46PM -0700, Mark Hull-Richter wrote:
I installed the kernel-2.6.18-8.el5.src.rpm today and went to build it, but it fails with this error:
$ rpmbuild -bp --target=`uname -m` kernel-2.6.spec Building target platforms: x86_64 Building for target x86_64 error: Failed build dependencies: unifdef is needed by kernel-2.6.18-8.el5.x86_64
I double checked and this appears to be the latest kernel source rpm on centos/5.0/os/SRPMS. I googled around a bit and didn't see any simple solution to this, although I can't help but feel that there is one - is there, or do I need to do some serious patching here?
yum -y install unifdef
On 5/4/07, Luciano Miguel Ferreira Rocha strange@nsk.no-ip.org wrote:
yum -y install unifdef
Hmm - that makes a slight difference....
On 5/4/07, Mark Hull-Richter mhullrich@gmail.com wrote:
Hmm - that makes a slight difference....
Well, if installing the build dependencies had you puzzled for a moment, I suppose I should probably throw you a bone about the generic configs that are included now, such that simply editing the configs as my initial wiki directions state won't cut it anymore. Johnny Hughes may provide some more info if he bothers to poke his head up from banging it on 4.5.
On 5/4/07, Jim Perrin jperrin@gmail.com wrote:
Well, if installing the build dependencies had you puzzled for a moment, I suppose I should probably throw you a bone about the generic configs that are included now, such that simply editing the configs as my initial wiki directions state won't cut it anymore. Johnny Hughes may provide some more info if he bothers to poke his head up from banging it on 4.5.
That or a reference to somewhere (else) I could look it up would be helpful. I did notice that the kernel-devel package now includes the rpmbuild tools - a very nice addition, esp. since the 4.4 tools don't work on the 5.0 sources (IIRC).
On 5/4/07, Mark Hull-Richter mhullrich@gmail.com wrote:
On 5/4/07, Jim Perrin jperrin@gmail.com wrote:
That or a reference to somewhere (else) I could look it up would be helpful.
The references are in the spec file and several code comments.
I did notice that the kernel-devel package now includes the
rpmbuild tools -
No it doesn't. Now you're just getting silly with things. Please at least attempt to verify the things you say before you spout off like this. It's like watching a homeless guy yell at a bus stop.
Just what do you think it was originally built on?
On Fri, 2007-05-04 at 15:18 -0700, Mark Hull-Richter wrote:
On 5/4/07, Jim Perrin jperrin@gmail.com wrote:
Well, if installing the build dependencies had you puzzled for a moment, I suppose I should probably throw you a bone about the generic configs that are included now, such that simply editing the configs as my initial wiki directions state won't cut it anymore. Johnny Hughes may provide some more info if he bothers to poke his head up from banging it on 4.5.
That or a reference to somewhere (else) I could look it up would be helpful. I did notice that the kernel-devel package now includes the rpmbuild tools - a very nice addition, esp. since the 4.4 tools don't work on the 5.0 sources (IIRC).
The problem now is that building a custom kernel via RPM requires that you remove some code (the "Generic Template" code) from the spec file for building on a CentOS-5 machine.
With that code in the spec file, you will have several items reset to the defaults regardless of what you put in the modified config files.
What you need to remove is in this post:
http://lists.centos.org/pipermail/centos/2007-April/080118.html
Thanks, Johnny Hughes