[opensuse] Where to find "Linux header files development package" ?
Trying to install the sk98lin driver for a Marvell 88E8001 Gigabit Ethernet controller, I run into an error message saying "Kernel header not found. Please install the linux header files development package." There are several header files on the Software Management list in Opensuse 10.3 but I cannot identify the appropriate file(s). Hans Lombard Pretoria, South Africa -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 02 December 2007 05:45:23 am Mark Goldstein wrote:
Hi,
On Dec 2, 2007 1:26 PM, Hans Lombard
wrote: Trying to install the sk98lin driver for a Marvell 88E8001 Gigabit Ethernet controller, I run into an error message saying "Kernel header not found. Please install the linux header files development package."
There are several header files on the Software Management list in Opensuse 10.3 but I cannot identify the appropriate file(s).
Have you tried "linux-kernel-headers"? -- Mark Goldstein
For kernel drivers it should be 'kernel-source' package.
The '#error' lines in file '/usr/include/linux/version.h' are giving
instructions how to compile modules. For readers convenience, here is a copy:
#error "======================================================="
#error "You should not include /usr/include/{linux,asm}/ header"
#error "files directly for the compilation of kernel modules."
#error ""
#error "glibc now uses kernel header files from a well-defined"
#error "working kernel version (as recommended by Linus Torvalds)"
#error "These files are glibc internal and may not match the"
#error "currently running kernel. They should only be"
#error "included via other system header files - user space"
#error "programs should not directly include
Hi,
On Dec 2, 2007 1:26 PM, Hans Lombard
Trying to install the sk98lin driver for a Marvell 88E8001 Gigabit Ethernet controller, I run into an error message saying "Kernel header not found. Please install the linux header files development package."
There are several header files on the Software Management list in Opensuse 10.3 but I cannot identify the appropriate file(s).
Have you tried "linux-kernel-headers"? -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 02 December 2007 07:23:10 am Anders Johansson wrote:
On Sunday 02 December 2007 13:59:42 Carlos E. R. wrote:
The Sunday 2007-12-02 at 05:32 -0600, Rajko M. wrote: .... #error " o Configure kernel sources:" #error " - cd /usr/src/linux" #error " - make mrproper" #error " - make cloneconfig" #error " - make prepare"
You should better follow the instructions in "/usr/src/linux/README.SUSE", which actually is "/usr/share/doc/packages/kernel-source/README.SUSE". There is no reference to "make mrproper" in there: that target can break things sometimes, IMHO.
Such as...?
Broken kernel source tree ;-) Carlos: make mrproper is valid target if you want to remove all traces of previous compilation(s) and start from scratch, if it breaks something it is better to know at that stage than later when kernel doesn't work properly. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2007-12-02 at 05:32 -0600, Rajko M. wrote:
The '#error' lines in file '/usr/include/linux/version.h' are giving instructions how to compile modules. For readers convenience, here is a copy:
...
#error "To build kernel modules please do the following:" #error "" #error " o Have the kernel sources installed" #error "" #error " o Make sure that the symbolic link" #error " /lib/modules/`uname -r`/build exists and points to" #error " the matching kernel source directory" #error "" #error " o Configure kernel sources:" #error " - cd /usr/src/linux" #error " - make mrproper" #error " - make cloneconfig" #error " - make prepare"
You should better follow the instructions in "/usr/src/linux/README.SUSE", which actually is "/usr/share/doc/packages/kernel-source/README.SUSE". There is no reference to "make mrproper" in there: that target can break things sometimes, IMHO. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHUqxBtTMYHG2NR9URAv9YAKCQKcx8VCoHXGLCG5NQqvPwMtZPVgCbBAec 1YRfF57OeRHcgWJjX73QQRM= =jh8J -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 02 December 2007 13:59:42 Carlos E. R. wrote:
The Sunday 2007-12-02 at 05:32 -0600, Rajko M. wrote:
The '#error' lines in file '/usr/include/linux/version.h' are giving instructions how to compile modules. For readers convenience, here is a copy:
...
#error "To build kernel modules please do the following:" #error "" #error " o Have the kernel sources installed" #error "" #error " o Make sure that the symbolic link" #error " /lib/modules/`uname -r`/build exists and points to" #error " the matching kernel source directory" #error "" #error " o Configure kernel sources:" #error " - cd /usr/src/linux" #error " - make mrproper" #error " - make cloneconfig" #error " - make prepare"
You should better follow the instructions in "/usr/src/linux/README.SUSE", which actually is "/usr/share/doc/packages/kernel-source/README.SUSE". There is no reference to "make mrproper" in there: that target can break things sometimes, IMHO.
Such as...? I've always used that sequence, and I've never had any trouble building kernel modules -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 02 December 2007 08:12:05 am Carlos E. R. wrote:
The Sunday 2007-12-02 at 06:52 -0600, Rajko M. wrote:
You should better follow the instructions in "/usr/src/linux/README.SUSE", which actually is "/usr/share/doc/packages/kernel-source/README.SUSE". There is no reference to "make mrproper" in there: that target can break things sometimes, IMHO.
Such as...?
Broken kernel source tree ;-)
Carlos: make mrproper is valid target if you want to remove all traces of previous compilation(s) and start from scratch, if it breaks something it is better to know at
that == compilation
stage than later when kernel doesn't work properly.
It is a valid target when you get the sources elsewhere, add bits and ends, etc.
It is not needed if you just install the source rpm from suse, which comes already cleaned. It can delete customizations, too: the only time I used it deleted my own config files and notes, and some of suse's files. I had to reinstall the sources. It deletes *anything* it thinks doesn't belong on the kernel.
That is the purpose of 'make mrpoper'. If you need config files than you have to move them in safe place before, let 'Mr. Proper' [1] do the job for the rest of the tree and than move them back.
If you need to clean a previous compilation, use "make clean". That's more than enough.
On this one I would need advice of some kernel developer.
I have been making my own kernels for years and I never use mrproper. SuSE does not recomend it in their own instructions. It's not even mentioned.
Don't say that I don't read your posts carefully ;-) If it is not mentioned than we don't know what they think about it. Though, they are developers, so they would know how to remove it if it can damage openSUSE specific settings, or adjust not to delete openSUSE patches that are not yet included in upstream kernel. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2007-12-02 at 06:52 -0600, Rajko M. wrote:
You should better follow the instructions in "/usr/src/linux/README.SUSE", which actually is "/usr/share/doc/packages/kernel-source/README.SUSE". There is no reference to "make mrproper" in there: that target can break things sometimes, IMHO.
Such as...?
Broken kernel source tree ;-)
Carlos: make mrproper is valid target if you want to remove all traces of previous compilation(s) and start from scratch, if it breaks something it is better to know at that stage than later when kernel doesn't work properly.
It is a valid target when you get the sources elsewhere, add bits and ends, etc. It is not needed if you just install the source rpm from suse, which comes already cleaned. It can delete customizations, too: the only time I used it deleted my own config files and notes, and some of suse's files. I had to reinstall the sources. It deletes *anything* it thinks doesn't belong on the kernel. If you need to clean a previous compilation, use "make clean". That's more than enough. I have been making my own kernels for years and I never use mrproper. SuSE does not recomend it in their own instructions. It's not even mentioned. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHUr01tTMYHG2NR9URAt7yAJ9dlgaCexVf8yiKvpIkevUemItO8ACfaqol nkn9W+tCOEPfWN7VDhq50c0= =VJSN -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2007-12-02 at 07:53 -0600, Rajko M. wrote:
I have been making my own kernels for years and I never use mrproper. SuSE does not recomend it in their own instructions. It's not even mentioned.
Don't say that I don't read your posts carefully ;-) If it is not mentioned than we don't know what they think about it.
:-)
Though, they are developers, so they would know how to remove it if it can damage openSUSE specific settings, or adjust not to delete openSUSE patches that are not yet included in upstream kernel.
No need! .-) They wrote instructions on how to make a kernel in suse: we are supposed to follow those to do things "the suse way". Many packages contain a readme.suse where they tell differences between the standard and the suse ways. So, yes, the standard talks about mrproper (and they also explain what for and when), but the suse readme doesn't - so better don't use it. They explain the procedure step by step. In any case, if you just installed the kernel-source rpm from suse, you sure don't need mrproper, not even a "make clean". The sources are ready and clean for your first use :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHUtUotTMYHG2NR9URAoO/AJ9xKqVJvE/8MVmf3+4EufVWC3w3xQCeIhG0 RLMxtfLoEUvEAV+MjuuvLGY= =0xjH -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 02/12/2007, Hans Lombard
Trying to install the sk98lin driver for a Marvell 88E8001 Gigabit Ethernet controller, I run into an error message saying "Kernel header not found. Please install the linux header files development package."
Does this card not work with the "sky2" driver (included) I'm not sure marvell's sk98lin even compiles on new kernels. -- Benjamin Weber -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Benji Weber wrote:
On 02/12/2007, Hans Lombard
wrote: Trying to install the sk98lin driver for a Marvell 88E8001 Gigabit Ethernet controller, I run into an error message saying "Kernel header not found. Please install the linux header files development package."
Does this card not work with the "sky2" driver (included) I'm not sure marvell's sk98lin even compiles on new kernels.
Yes, that struck me as odd too. My machine came with a similar card, a "Marvell 88E8053 PCI-E Gigabit Ethernet Controller", and everything just worked out of the box. It is using the sky2 driver. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Joe Sloan wrote:
Benji Weber wrote:
On 02/12/2007, Hans Lombard
wrote: Trying to install the sk98lin driver for a Marvell 88E8001 Gigabit Ethernet controller, I run into an error message saying "Kernel header not found. Please install the linux header files development package."
Does this card not work with the "sky2" driver (included) I'm not sure marvell's sk98lin even compiles on new kernels.
Yes, that struck me as odd too. My machine came with a similar card, a "Marvell 88E8053 PCI-E Gigabit Ethernet Controller", and everything just worked out of the box. It is using the sky2 driver.
Joe
When I first noticed the problem, a google search found evidence of others having the same problem - for example, see http://kerneltrap.org/node/7135 Subsequently, I found documentation on Marvell's website explaining how to install the sk98lin driver. I have tried 2 different approaches explained in their documentation but have not been successful thus far. Hans -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
The Sunday 2007-12-02 at 06:52 -0600, Rajko M. wrote:
Carlos: make mrproper is valid target if you want to remove all traces of previous compilation(s) and start from scratch, if it breaks something it is better to know at that stage than later when kernel doesn't work properly.
It is a valid target when you get the sources elsewhere, add bits and ends, etc.
No. It's a valid Makefile target for all Linux kernels, including SuSE kernels.
It is not needed if you just install the source rpm from suse, which comes already cleaned. It can delete customizations, too: the only time I used it deleted my own config files and notes, and some of suse's files. I had to reinstall the sources. It deletes *anything* it thinks doesn't belong on the kernel.
No. It deletes everything that can be reproduced, including a .config, a version.h, and utsrelease.h. That's the purpose of this Makefile target. After running a "make mrproper", the source tree is in a clean state. There's no need to reinstall the source, all Linux kernel source is still on disk (however, the kernel source is unconfigured at that point).
If you need to clean a previous compilation, use "make clean". That's more than enough.
No. For instance, configure the kernel source in the source tree. Later on, try to use a build directory. It won't work and the kernel build system will tell you something like this: make -C /kernel/source O=/kernel/build Using /kernel/source as source for kernel /kernel/source is not clean, please run 'make mrproper' in the '/kernel/source' directory.
I have been making my own kernels for years and I never use mrproper. SuSE does not recomend it in their own instructions. It's not even mentioned.
So what? Many things aren't mentioned in the SuSE documentation, but nevertheless those things can be quite useful. I use "make mrproper" a lot. Th. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2007-12-03 at 19:43 -0000, Thomas Hertweck wrote: ...
No. For instance, configure the kernel source in the source tree. Later on, try to use a build directory. It won't work and the kernel build system will tell you something like this:
That's a special case and not a typical use. You are not doing a "make" alone.
I have been making my own kernels for years and I never use mrproper. SuSE does not recomend it in their own instructions. It's not even mentioned.
So what? Many things aren't mentioned in the SuSE documentation, but nevertheless those things can be quite useful. I use "make mrproper" a lot.
And I never use it. No need. I was bitten by it once, no more, thanks. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHVGZNtTMYHG2NR9URAg8IAJ9sTcLq3PqjV2alL1vvbmS7y6EwAQCfc7Pf DzveP1Go/EFMaS/JHdNeEnE= =X9Jc -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
The Monday 2007-12-03 at 19:43 -0000, Thomas Hertweck wrote:
...
No. For instance, configure the kernel source in the source tree. Later on, try to use a build directory. It won't work and the kernel build system will tell you something like this:
That's a special case and not a typical use. You are not doing a "make" alone.
It's nothing special. Just dealing with various kernels - with and without build directory - in different situations on a regular basis.
I have been making my own kernels for years and I never use mrproper. SuSE does not recomend it in their own instructions. It's not even mentioned. So what? Many things aren't mentioned in the SuSE documentation, but nevertheless those things can be quite useful. I use "make mrproper" a lot.
And I never use it. No need. I was bitten by it once, no more, thanks.
Well, it seems as if you had trouble understanding the purpose of "make mrproper" judging from your comments that you were surprised about the disappearance of .config. If you were dealing with build directories and various kernel trees etc., then you would probably see how useful this Makefile target can be, and you would also know that a reinstallation of the source had not been necessary. Please don't recommend not to use this Makefile target solely based on your own bad experience where you were bitten once - this was obviously your own fault, not knowing what "make mrproper" is all about at that time. Th. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2007-12-03 at 22:56 -0000, Thomas Hertweck wrote: ...
Well, it seems as if you had trouble understanding the purpose of "make mrproper" judging from your comments that you were surprised about the disappearance of .config. If you were dealing with build directories and various kernel trees etc., then you would probably see how useful this Makefile target can be, and you would also know that a reinstallation of the source had not been necessary. Please don't recommend not to use this Makefile target solely based on your own bad experience where you were bitten once - this was obviously your own fault, not knowing what "make mrproper" is all about at that time.
And recommending to use everytime "make mrproper" without explaining its implications and uses, is just as bad. If I know what it will really do, I'll decide when and if to use it. The make scenario explained in the suse documentation, doesn't need it at all, and therefore, it is not even mentioned in the whole file: install the rpm, cloneconfig, menuconfig/xconfig/config, then make, etc. Nowhere are multiple build directories, trees, etc. People using those complexities usually know what they need. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHVKlQtTMYHG2NR9URAslXAJ4qFYFkoYlq/pk8uzZoXQ2++xjWaQCfXYZk LmVVr2/XOMFmOo2No1JYPY8= =pg1j -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (8)
-
Anders Johansson
-
Benji Weber
-
Carlos E. R.
-
Hans Lombard
-
Joe Sloan
-
Mark Goldstein
-
Rajko M.
-
Thomas Hertweck