<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: Re: Unsupported kernel version error
From: Ganesh Sittampalam <ganesh,AT,earth,DOT,li>
Date: Fri, 18 May 2001 18:27:46 +0200
In-reply-to: <vxk1ypm64am.fsf@cinnamon.vanillaknot.com>

On 18 May 2001, Karl Kleinpaste wrote:

> Timothy Wood <timothy,AT,hallcomp,DOT,com> writes:
> > configure: error: Unsupported kernel version
> > I didn't see anything that said 2.4.3 is not supported, but is it?
> 
> The short, hackish solution around this problem is to edit configure
> itself, and at line 1096, add a line "KVERS=2.4.3".
> 
> The source of the problem is RH's weird additional hackery to the
> kernel, which buries the actual version information a couple layers
> deeper than CIPE (and everything else) expects.

Actually, it's that they appear to be shipping a version of gcc/cpp that
inserts an additional space at the start of a line when expanding macros,
which confuses configure into not being able to detect a kernel
version. I've already posted the attached patch to this list once, but
here it is again (works against 1.5.1 and 1.5.2, at least).

Cheers,

Ganesh


diff -urN cipe-1.5.1/conf/aclocal.m4 cipe-1.5.1-configfix/conf/aclocal.m4
--- cipe-1.5.1/conf/aclocal.m4  Sat Dec 16 17:49:08 2000
+++ cipe-1.5.1-configfix/conf/aclocal.m4        Tue May  1 04:21:51 2001
@@ -29,7 +29,7 @@
 [$1]
 EOF
 (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |\
- sed -n -e 's/^"\(.*\)".*$/\1/p' >conftest
+ sed -n -e 's/^ *"\(.*\)".*$/\1/p' >conftest
 changequote(, )dnl
 set "X" "`cat conftest`"
 changequote([, ])dnl
diff -urN cipe-1.5.1/configure cipe-1.5.1-configfix/configure
--- cipe-1.5.1/configure        Sun Feb 11 21:42:49 2001
+++ cipe-1.5.1-configfix/configure      Tue May  1 04:22:03 2001
@@ -1088,7 +1088,7 @@
 UTS_RELEASE
 EOF
 (eval "$ac_cpp conftest.$ac_ext") 2>&5 |\
- sed -n -e 's/^"\(.*\)".*$/\1/p' >conftest
+ sed -n -e 's/^ *"\(.*\)".*$/\1/p' >conftest
 set "X" "`cat conftest`"
 ax_result=$2
 rm -f conftest*
@@ -1108,7 +1108,7 @@
 LINUX_COMPILER
 EOF
 (eval "$ac_cpp conftest.$ac_ext") 2>&5 |\
- sed -n -e 's/^"\(.*\)".*$/\1/p' >conftest
+ sed -n -e 's/^ *"\(.*\)".*$/\1/p' >conftest
 set "X" "`cat conftest`"
 ax_result=$2
 rm -f conftest*




<< | Thread Index | >> ]    [ << | Date Index | >> ]