You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2013/11/13 09:37:11 UTC

[Bug 55690] Linux kernel version check broken

https://issues.apache.org/bugzilla/show_bug.cgi?id=55690

--- Comment #8 from Arfrever Frehtes Taifersar Arahesis <Ar...@GMail.Com> ---
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #7)

And something like this now occurs:

...
configure: Check for compiler flags...
checking whether the compiler provides atomic builtins... yes
checking whether to enable -D_LARGEFILE64_SOURCE... no
./configure: line 19058: test: 3.11.7-gentoo: integer expression expected
configure: Configured for Linux 3.3.11.7-gentoo
configure: 
configure: Checking for libraries...
checking for library containing gethostbyname... none required
checking for library containing gethostname... none required
...


Sufficient patch:

--- configure.in
+++ configure.in
@@ -681,7 +681,7 @@
         ;;
     *linux*)
         os_major=[`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`]
-        os_minor=[`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]+\)\..*/\1/'`]
+        os_minor=[`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]\+\)\..*/\1/'`]
         if test $os_major -lt 2 -o \( $os_major -eq 2 -a $os_minor -lt 4 \);
then
             AC_MSG_WARN([Configured for pre-2.4 Linux $os_major.$os_minor])
             os_pre24linux=1
[

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org