Paul Wouters
2006-Oct-06 16:43 UTC
[Fedora-xen] kernel name confusion and no config.h in 2.6.18-1.2741 ?
# ls -l /usr/src/kernels/ total 4 drwxr-xr-x 19 root root 4096 Oct 6 12:06 2.6.18-1.2741.fc6-xen-i686 lrwxrwxrwx 1 root root 26 Oct 6 12:06 2.6.18-1.2741.fc6xen-i686 -> 2.6.18-1.2741.fc6-xen-i686 # uname -a Linux dnssigner.xelerance.com 2.6.18-1.2741.fc6xen #1 SMP Wed Oct 4 21:01:55 EDT 2006 i686 i686 i386 GNU/Linux # rpm -ql kernel-headers |grep config.h And trying to compile a module against this tree fails: # export KERNELSRC=/lib/modules/2.6.18-1.2741fc6xen/build [root@dnssigner openswan-2.4.7dr1]# make module [...] /usr/src/openswan-2.4.7dr1/modobj26/ipsec_init.c:23:26: error: linux/config.h: No such file or directory This worked with kernel 2.6.18-1.2726 (2.6.18-1.2726.fc6xen) Though of course, yum deleted the old kernel (I would REALLY like it to keep the older kernel) and it is no longer at the development/ repos. Paul
Itamar Reis Peixoto
2006-Oct-06 20:03 UTC
Re: [Fedora-xen] kernel name confusion and no config.h in 2.6.18-1.2741?
the same problem when compiling vmware on 2741 non-xen kernel. -------------------- Itamar Reis Peixoto e-mail: itamar@ispbrasil.com.br msn: itamarjp@starmedia.com skype: itamarjp icq: 81053601 +55 34 3238 3845 +55 11 4063 5033> > # ls -l /usr/src/kernels/ > total 4 > drwxr-xr-x 19 root root 4096 Oct 6 12:06 2.6.18-1.2741.fc6-xen-i686 > lrwxrwxrwx 1 root root 26 Oct 6 12:06 2.6.18-1.2741.fc6xen-i686 -> > 2.6.18-1.2741.fc6-xen-i686 > > # uname -a > Linux dnssigner.xelerance.com 2.6.18-1.2741.fc6xen #1 SMP Wed Oct 4 > 21:01:55 EDT 2006 i686 i686 i386 GNU/Linux > > # rpm -ql kernel-headers |grep config.h > > And trying to compile a module against this tree fails: > > # export KERNELSRC=/lib/modules/2.6.18-1.2741fc6xen/build > > [root@dnssigner openswan-2.4.7dr1]# make module > > [...] > > /usr/src/openswan-2.4.7dr1/modobj26/ipsec_init.c:23:26: error: > linux/config.h: No such file or directory > > This worked with kernel 2.6.18-1.2726 (2.6.18-1.2726.fc6xen) > > Though of course, yum deleted the old kernel (I would REALLY like it to > keep the older kernel) and > it is no longer at the development/ repos. > > Paul > >
Chris Lalancette
2006-Oct-06 20:18 UTC
Re: [Fedora-xen] kernel name confusion and no config.h in 2.6.18-1.2741 ?
Paul Wouters wrote:> # ls -l /usr/src/kernels/ > total 4 > drwxr-xr-x 19 root root 4096 Oct 6 12:06 2.6.18-1.2741.fc6-xen-i686 > lrwxrwxrwx 1 root root 26 Oct 6 12:06 2.6.18-1.2741.fc6xen-i686 -> 2.6.18-1.2741.fc6-xen-i686 > > # uname -a > Linux dnssigner.xelerance.com 2.6.18-1.2741.fc6xen #1 SMP Wed Oct 4 21:01:55 EDT 2006 i686 i686 i386 GNU/Linux > > # rpm -ql kernel-headers |grep config.h > > And trying to compile a module against this tree fails: > > # export KERNELSRC=/lib/modules/2.6.18-1.2741fc6xen/build > > [root@dnssigner openswan-2.4.7dr1]# make module > > [...] > > /usr/src/openswan-2.4.7dr1/modobj26/ipsec_init.c:23:26: error: linux/config.h: No such file or directory > > This worked with kernel 2.6.18-1.2726 (2.6.18-1.2726.fc6xen) > > Though of course, yum deleted the old kernel (I would REALLY like it to keep the older kernel) and > it is no longer at the development/ repos. > > Paul > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xenTwo things: 1) I believe include''ing linux/config.h was deprecated in 2.6.18, so the out-of-tree packages are going to have to catch up. That''s just the danger of being out of tree. My guess is that it would be a relatively simple fix, but I can''t say for certain. 2) If you want yum to keep your old kernels, edit /etc/yum/pluginconf.d/installonlyn.conf and either set "enabled" to 0 (which means it never deletes old packages), or set "tokeep" to a larger number. I usually set tokeep to around 9 or so, which ensures that I have plenty of time to go back to an older packages. Chris Lalancette
Paul Wouters
2006-Oct-06 21:03 UTC
Re: [Fedora-xen] kernel name confusion and no config.h in 2.6.18-1.2741 ?
On Fri, 6 Oct 2006, Chris Lalancette wrote:> Two things: > > 1) I believe include''ing linux/config.h was deprecated in 2.6.18, so the out-of-tree packages are going to have to catch up. That''s just the danger of being out of tree. My guess is that it would be a relatively simple fix, but I can''t say for certain.Ok. a quick replae of linux/config.h for linux/autoconf.h worked and fixed the problem. Now, to do this properly without adding ugly large #ifdef''s to a bunch of files....... Why didn''t they put the logic in config.h itself :(> 2) If you want yum to keep your old kernels, edit /etc/yum/pluginconf.d/installonlyn.conf and either set "enabled" to 0 (which means it never deletes old packages), or set "tokeep" to a larger number. I usually set tokeep to around 9 or so, which ensures that I have plenty of time to go back to an older packages.It used to install kernels, not update them. So you had a fallback. I think that is pretty important, so sysadmins can fall back on their older kernel if the new one does not boot. It should be the default. I''ll do another xenguest install and then an upgrade and confirm this is really what happened before opening a bugzilla on this. Paul -- Building and integrating Virtual Private Networks with Openswan: http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155
Paul Wouters
2006-Oct-06 21:14 UTC
Re: [Fedora-xen] kernel name confusion and no config.h in 2.6.18-1.2741 ?
On Fri, 6 Oct 2006, Paul Wouters wrote:> Ok. a quick replae of linux/config.h for linux/autoconf.h worked and fixed the problem. > Now, to do this properly without adding ugly large #ifdef''s to a bunch of files....... > Why didn''t they put the logic in config.h itself :(Oh. autconf.h gets included via macro''s. so the logic that needs to be added isn''t too bad: #ifndef AUTOCONF_INCLUDED #include <linux/config.h> #endif And you don''t need to manually include autoconf.h Paul
Dave Jones
2006-Oct-06 23:16 UTC
Re: [Fedora-xen] kernel name confusion and no config.h in 2.6.18-1.2741 ?
On Fri, Oct 06, 2006 at 11:14:53PM +0200, Paul Wouters wrote: > On Fri, 6 Oct 2006, Paul Wouters wrote: > > > Ok. a quick replae of linux/config.h for linux/autoconf.h worked and fixed the problem. > > Now, to do this properly without adding ugly large #ifdef''s to a bunch of files....... > > Why didn''t they put the logic in config.h itself :( > > Oh. autconf.h gets included via macro''s. so the logic that needs to be added isn''t too bad: > > #ifndef AUTOCONF_INCLUDED > #include <linux/config.h> > #endif > > And you don''t need to manually include autoconf.h You don''t need to do those three lines at all if you''re using kernels from at least the last year and half or so. Dave -- http://www.codemonkey.org.uk
Paul Wouters
2006-Oct-07 06:24 UTC
Re: [Fedora-xen] kernel name confusion and no config.h in 2.6.18-1.2741 ?
On Fri, 6 Oct 2006, Dave Jones wrote:> > Oh. autconf.h gets included via macro''s. so the logic that needs to be added isn''t too bad: > > > > #ifndef AUTOCONF_INCLUDED > > #include <linux/config.h> > > #endif > > > > And you don''t need to manually include autoconf.h > > You don''t need to do those three lines at all if you''re using kernels > from at least the last year and half or so.We need to support 2.4 and 2.6 kernels. Paul