Problem building Linux Kernel

Hey,

I'm running Debian/Lenny which I update weekly. I downloaded the Linux source
version 2.6.23.1 from the kernel.org site and uncompressed the file all with
no problem. The next step was to create the configuration which I did by
running;

make defconfig

This ran again without a problem. I next wanted to modify that configuration
before I built the kernel which I tried to do by executing the following
command;

make menuconfig

This is where I am stuck! I get the following error message after executing
that command. [I have only included the first few lines of the error message
because the rest of the compiler errors are the result of the first few I
think. I can post the rest if needed.]

// Begin.

HOSTCC scripts/kconfig/lxdialog/checklist.o

In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or
directory

In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: error: expected specifier-qualifier-list
before ‘chtype’

// End.

Seeing that I could build the default configuration without having to setup
any paths to source files I would have thought that the build for the
menuconfig would not require setting up any paths as well. But I can't find
any reference as to how these paths should be should be setup if that is was
I am supposed to do.

I am using Linux Kernel In a Nutshell as a reference and have read the README
that comes withs the kernel source as well. Any help would be appreciated.

Thanks,
Randy

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Problem building Linux Kernel

Randy Patterson - [Tech]:
>
> In file included from scripts/kconfig/lxdialog/checklist.c:24:
> scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or
> directory

Your system is missing libncurses5-dev.

J.
--
I enjoy shopping, eating, sex and doing jigsaw puzzles of idealised
landscapes.
[Agree] [Disagree]

Problem building Linux Kernel

On Thursday 08 November 2007 09:52:35 am Jochen Schulz wrote:
> Randy Patterson - [Tech]:
> > In file included from scripts/kconfig/lxdialog/checklist.c:24:
> > scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or
> > directory
>
> Your system is missing libncurses5-dev.
>
> J.

Thanks! Problem solved. Odd that the book I referred or the README file that
explains the building process didn't mentioned that as a needed dependency.

What would I do without debian-user! :-)

Randy

--

Problem building Linux Kernel

Hi,

scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or
directory

> Thanks! Problem solved. Odd that the book I referred or the README
file that
> explains the building process didn't mentioned that as a needed
dependency.

Next time, you would try to find the needed package by using apt-file
search curses.h # replace of course curses.h by the name of the missing
file :)

seb

---------------------------------

This message and any attachments (hereinafter referred to as the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender at The International Institute of Information Technology (hereinafter referred to as "SUPINFO"). Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. Because the internet can not guarantee the integrity of this message, SUPINFO and its subsidiaries, laboratories and regional branches will not therefore be liable for the message that could only engage his author, not SUPINFO, and only if not modified.

---------------------------------

Ce message et toutes les pieces jointes (ci-apres dénommé le "message") sont etablis a l'attention exclusive de ses destinataires et sont donc confidentiels. Si toutefois vous recevez ce message par erreur, nous vous remercions de bien vouloir le detruire et d'en avertir immediatement l'expediteur au sein de l'Ecole Supérieure d'Informatique (ci-après dénommée "SUPINFO"). Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. Internet ne permettant pas d'assurer l'integrite des messages e-mail en général et donc de ce message en particulier, SUPINFO et ses filiales, sites régionaux, laboratoires ou autres entités attachées, declinent toute responsabilite au titre du présent message qui ne pourrait engager que son auteur et non SUPINFO et seulement dans l'hypothese ou le message n'aurait pas ete modifie par quelque moyen que ce soit.

---------------------------------

Problem building Linux Kernel

On Thu, 8 Nov 2007 10:22:16 -0600
"Randy Patterson - [Tech]" wrote:

> On Thursday 08 November 2007 09:52:35 am Jochen Schulz wrote:
> > Randy Patterson - [Tech]:
> > > In file included from scripts/kconfig/lxdialog/checklist.c:24:
> > > scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or
> > > directory
> >
> > Your system is missing libncurses5-dev.
> >
> > J.
>
> Thanks! Problem solved. Odd that the book I referred or the README file that
> explains the building process didn't mentioned that as a needed dependency.

It isn't needed for building the kernel, or even for configuring it
unless you choose to do so via 'make menuconfig'. From the
kernel-package README:

> Before you go any further, please allow me to point out that you need to
> have a few other packages installed before you can compile your own kernels
> (it is difficult to compile anything without a compiler ;-).
>
> Firstly, you will need gcc, the libc development package (libc5-dev or
> libc6-dev at the time of writing), and, on Intel platforms, bin86. [If
> you use the menuconfig target of make, you will need ncursesX.X-dev,
> and make xconfig also requires either tkX.X-dev for 2.4.X kernels, or
> libqt3-mt-dev and g++ >= 3.0 for the new 2.6 kernel versions, and 2.6.X
> kernels also have an additional option, make gconfig, which requires
> libglade2-dev, and other packages these depend on]

> Randy

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator

--

Problem building Linux Kernel

On Thursday 08 November 2007 02:41:48 pm Celejar wrote:
> > Thanks! Problem solved. Odd that the book I referred or the README file
> > that explains the building process didn't mentioned that as a needed
> > dependency.
>
> It isn't needed for building the kernel, or even for configuring it
> unless you choose to do so via 'make menuconfig'. From the
>
> kernel-package README:
> > Before you go any further, please allow me to point out that you need to
> > have a few other packages installed before you can compile your own
> > kernels (it is difficult to compile anything without a compiler ;-).
> >
> > Firstly, you will need gcc, the libc development package (libc5-dev or
> > libc6-dev at the time of writing), and, on Intel platforms, bin86. [If
> > you use the menuconfig target of make, you will need ncursesX.X-dev,
> > and make xconfig also requires either tkX.X-dev for 2.4.X kernels, or
> > libqt3-mt-dev and g++ >= 3.0 for the new 2.6 kernel versions, and 2.6.X
> > kernels also have an additional option, make gconfig, which requires
> > libglade2-dev, and other packages these depend on]
> >
> >
> > Randy
>
> Celejar

Obviously I needed to have read the README a little more closely than I had!!
They couldn't have written that any more clearly.

Thanks,
Randy

--

Problem building Linux Kernel

On Thu, 8 Nov 2007 15:45:40 -0600
"Randy Patterson - [Tech]" wrote:

> On Thursday 08 November 2007 02:41:48 pm Celejar wrote:
> > > Thanks! Problem solved. Odd that the book I referred or the README file
> > > that explains the building process didn't mentioned that as a needed
> > > dependency.
> >
> > It isn't needed for building the kernel, or even for configuring it
> > unless you choose to do so via 'make menuconfig'. From the
> >
> > kernel-package README:

[README snipped]

> > > Randy
> >
> > Celejar
>
> Obviously I needed to have read the README a little more closely than I had!!
> They couldn't have written that any more clearly.
>
> Thanks,
> Randy

Life is too short to always read everything ideally closely ...

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator

--

Syndicate content