At 12:27 PM 9/19/00 -0600, you wrote:


>Jeff Groves wrote:
> >
> > I still have not figured out how to build the kernel from source.
> >
> > I installed a fresh version of Mandrake 7.1 (Developer option) with all the
> > standard defaults.  The only unusual thing I did was to create ReiserFS
> > filesystems (except for /boot).
> >
> > Now I have a "virgin" system, so I installed the latest source kernel RPM
> > (kernel-2.2.17-6mdk.src.rpm) from Cooker.  I am trying to get the DPT I2O
> > driver working and it appears that this kernel already has the patches to
> > support it.
> >
> > Next, I started the build:
> >    rpm -ba --target=i586 kernel-2.2.spec
> >
> > A while later it failed, and I noticed several errors similar to the 
> following:
> >    newport.c:11: asm/gfx.h: No such file
> >    newport.c:12: asm/ng1.h: No such file
> >    newport.c:14: asm/newport.h: No such file
>
>How much later? It looks like you are missing corresponding kernel
>headers.
>
>Did you get the kernel source RPM *and* the equivalent kernel header
>RPM? You can't build nothin' with the headers =)

The kernel headers and other kernel stuff is installed:

# rpm -qa | grep kernel
kernel-2.2.15-4mdk
kernel-doc-2.2.15-4mdk
kernel-headers-2.2.15-4mdk
kernel-utils-2.2.15-4mdk
kernel-source-2.2.15-4mdk

I cannot install kernel-headers-2.2.17-6mdk, since that is supposed to be 
created by the build!


> > The last error lines were:
> >    + %make bZImage
> >    /var/tmp/rpm-tmp.6671: fg: no job control
> >    Bad exit status from /var/tmp/rpm-tmp.6671 (%build)
>
>No job control? You must be missing more than just your kernel headers.
>Can you do this:

Job control works fine.  I actually ran the build like this:

   nohup rpm -ba --target=i586 kernel-2.2.spec &
   tail -f nohup.out

Do I also need to install the unmodified kernel 
(kernel-linus-2.2.17-1mdk.src.rpm)?

I'm running out of ideas.  Surely there must be some others who have build 
kernels from RPMs.  What am I missing?

Thanks,

Jeff






Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to