Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Kernel Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th November 2006, 04:45
Linocks Linocks is offline
Member
 
Join Date: Nov 2006
Location: Cambs. UK
Posts: 60
Thanks: 3
Thanked 3 Times in 2 Posts
Red face FC5 - 'How To Compile A Kernel - The Fedora Way'

I am a Newbie & I have probably bitten off more than I can chew but I am trying to complete your 'How To Compile A Kernel - The Fedora Way' and I have got to the section where I vi kernel-2.6.specs. When I do this I get an empty file. I enter the text as per your 'Howto' but then I get the below message : -
Code:
[root@localhost SPECS]# rpmbuild -bp kernel-2.6.spec
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
[root@localhost SPECS]#
Where have I gone wrong?

My aim is to install a LAMP server on a machine for which I have built a good 'foundation'. That is why I decided to undertake this task and not just use the DVD from my LXF Magazine! Your assistance is highly appreciated.
Reply With Quote
  #2  
Old 20th November 2006, 13:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Can you run
Code:
ls -l
in the SPECS directory? What's the output?
__________________
Falko
--
Follow me on:
Reply With Quote
  #3  
Old 20th November 2006, 22:47
Linocks Linocks is offline
Member
 
Join Date: Nov 2006
Location: Cambs. UK
Posts: 60
Thanks: 3
Thanked 3 Times in 2 Posts
Exclamation 'How To Compile A Kernel - The Fedora Way'

The output is as per below : -

Code:
[root@BASE-ECS SPECS]# ls -al
total 128
drwxr-xr-x 2 root root   4096 Nov 19 20:42 .
drwxr-xr-x 7 root root   4096 Nov 19 18:25 ..
-rw-r--r-- 1 root root 103145 Oct 16 19:30 kernel-2.6.spec
[root@BASE-ECS SPECS]#
BUT..........

I should tell you that I started all over again and it worked this time so it would appear that I missed something initially or .......... I don't know because it was empty before. Notwithstanding same, I continued following your instructions and after applying the patch I got this error message : -

Code:
Patch #211 (linux-2.6-x86-unwinder-fixes.patch):
+ patch -p1 -s
+ echo 'Patch #300 (linux-2.6-ppc-dac960-ipr-clash.patch):'
Patch #300 (linux-2.6-ppc-dac960-ipr-clash.patch):
+ patch -p1 -s
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
1 out of 1 hunk ignored -- saving rejects to file drivers/block/DAC960.c.rej
error: Bad exit status from /var/tmp/rpm-tmp.18720 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.18720 (%prep)
(I have only copied the last few lines of the output - I downloaded and applied patch-2.6.18.2.bz2. Honest! ). So I ask myself (or anyone else for that matter)..... What now?!?
Reply With Quote
  #4  
Old 21st November 2006, 16:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Quote:
Originally Posted by Linocks
BUT..........

I should tell you that I started all over again and it worked this time so it would appear that I missed something initially or .......... I don't know because it was empty before. Notwithstanding same, I continued following your instructions and after applying the patch I got this error message : -

Code:
Patch #211 (linux-2.6-x86-unwinder-fixes.patch):
+ patch -p1 -s
+ echo 'Patch #300 (linux-2.6-ppc-dac960-ipr-clash.patch):'
Patch #300 (linux-2.6-ppc-dac960-ipr-clash.patch):
+ patch -p1 -s
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
1 out of 1 hunk ignored -- saving rejects to file drivers/block/DAC960.c.rej
error: Bad exit status from /var/tmp/rpm-tmp.18720 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.18720 (%prep)
(I have only copied the last few lines of the output - I downloaded and applied patch-2.6.18.2.bz2. Honest! ). So I ask myself (or anyone else for that matter)..... What now?!?
This is described in chapter 2.3 Patch The Kernel on http://www.howtoforge.com/kernel_compilation_fedora
__________________
Falko
--
Follow me on:
Reply With Quote
  #5  
Old 23rd November 2006, 02:20
Linocks Linocks is offline
Member
 
Join Date: Nov 2006
Location: Cambs. UK
Posts: 60
Thanks: 3
Thanked 3 Times in 2 Posts
Post 'How To Compile A Kernel - The Fedora Way'

Quote:
This is described in chapter 2.3 Patch The Kernel on http://www.howtoforge.com/kernel_compilation_fedora
Sorry Falko, what are you saying? The output means nothing to me. When following your instructions I actually copy the commands as they appear in your instructions in order to prevent typos.

Have I omitted (or included) something I shouldn't have? I also, prior to asking for further assistance, tried both options from the output (i.e. the [y] & the [n] to see if they would generate different results.

I refer to the below : -

Code:
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
I am prepared to start all over again if you think that will help. I did follow the instructions (I think) at Section 2.3.
Reply With Quote
  #6  
Old 24th November 2006, 16:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

These errors and the solution are exactly what I describe in my tutorial. Please try to read it carefully.

Quote:
Patch #211 (linux-2.6-x86-unwinder-fixes.patch):
+ patch -p1 -s
+ echo 'Patch #300 (linux-2.6-ppc-dac960-ipr-clash.patch):'
Patch #300 (linux-2.6-ppc-dac960-ipr-clash.patch):
+ patch -p1 -s
Reversed (or previously applied) patch detected! Assume -R? [n] n
Apply anyway? [n] n
1 out of 1 hunk ignored -- saving rejects to file drivers/block/DAC960.c.rej
error: Bad exit status from /var/tmp/rpm-tmp.18720 (%prep)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.18720 (%prep)
What you have to do now is to comment out the patch #300.
__________________
Falko
--
Follow me on:
Reply With Quote
  #7  
Old 23rd December 2006, 23:36
Linocks Linocks is offline
Member
 
Join Date: Nov 2006
Location: Cambs. UK
Posts: 60
Thanks: 3
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by falko
These errors and the solution are exactly what I describe in my tutorial. Please try to read it carefully.

What you have to do now is to comment out the patch #300.

Thank you again!!
Reply With Quote
  #8  
Old 10th April 2007, 13:34
Cerberus Cerberus is offline
Junior Member
 
Join Date: Apr 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Still cannot build the i586/i686 arch

Hi All , I'm "Cerberus", i'am a new Linux distro-yer from Indonesia
I red your e-article about building rpm from linux kernel (using fedora way), that's very usefull for me...but i've collected some questions related to your article:

1. In order to build kernel-*.i686.rpm (for i686 arch) i used:

rpmbuild -bp --target=i686 kernel-2.6.spec

after that, i followed all your step from your article

BUT the result STILL JUST for i386 architecture (nothing ini i686 directory, i also did it for i586 arch)
Please give me some solutions about that problem.

BUT (again) Before that step:
- i didnt patch with the newest version but directly ran rpmbuild -bp --target=i686 kernel-2.6.spec
- i use the kernel configuration file (from knoppix) and saved it to .config
(i already changed the processor firmware type to Pentium-Pro and choosed the PC Compatible)

2. how to eliminate the "release" field?

e.g: my new kernel name is kernel-2.6.18-Cerberus-1.i386.rpm, how to eliminate the "-1" string?

Thanks alot, and i realy realy need your help
Reply With Quote
  #9  
Old 11th April 2007, 17:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Quote:
Originally Posted by Cerberus
1. In order to build kernel-*.i686.rpm (for i686 arch) i used:

rpmbuild -bp --target=i686 kernel-2.6.spec

after that, i followed all your step from your article

BUT the result STILL JUST for i386 architecture (nothing ini i686 directory, i also did it for i586 arch)
Please give me some solutions about that problem.

BUT (again) Before that step:
- i didnt patch with the newest version but directly ran rpmbuild -bp --target=i686 kernel-2.6.spec
- i use the kernel configuration file (from knoppix) and saved it to .config
(i already changed the processor firmware type to Pentium-Pro and choosed the PC Compatible)
Is your system a i686 system? What's the output of
Code:
uname -a
?
__________________
Falko
--
Follow me on:
Reply With Quote
  #10  
Old 13th April 2007, 08:41
Cerberus Cerberus is offline
Junior Member
 
Join Date: Apr 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default uname -a result

This is uname -a result

[root@xtimata]# uname -a
Linux xtimata 2.6.18_XTIMATA_2.1 #2 Mon Apr 9 21:28:44 WIT 2007 i686 i686 i386 GNU/Linux
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile Kernel 2.6 under Debian Sarge falko Kernel Questions 117 28th September 2009 14:03
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 20:38
Fedora Core 5 - Server not responding kyriakos Installation/Configuration 13 16th November 2006 15:16
WG311v2 almost working with Edgy (w/o ndiswrapper) need help with the rest caudata Server Operation 11 13th November 2006 21:02
Questions about ubuntu ISP-Server Setup badgerbox76 HOWTO-Related Questions 15 5th March 2006 15:41


All times are GMT +2. The time now is 13:35.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th