Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469500 - net-misc/openvswitch-1.9.0 should check active kernel version - .../work/openvswitch-1.9.0/datapath/linux/datapath.c:65:2: error: #error Kernels before 2.6.18 or after 3.8 are not supported by this version of Open vSwitch.
Summary: net-misc/openvswitch-1.9.0 should check active kernel version - .../work/open...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Tiziano Müller (RETIRED)
URL: http://openvswitch.org/releases/NEWS-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-11 21:12 UTC by Kobboi
Modified: 2013-09-12 06:41 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2013-05-11 21:12:41 UTC
Running 3.9.0-gentoo, the compilation fails after a while with:

/var/tmp/portage/net-misc/openvswitch-1.9.0/work/openvswitch-1.9.0/datapath/linux/datapath.c:65:2: error: #error Kernels before 2.6.18 or after 3.8 are not supported by this version of Open vSwitch.

This should be intercepted by the ebuild

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.9.0-gentoo/build
 * Found sources for kernel version:
 *     3.9.0-gentoo
(-> but the ebuild simply continues)

Reproducible: Always
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-08-20 15:19:43 UTC
the url linked has some info on it, specifically this section.

    - Datapath:
      - Support for ipv6 set action.
      - SKB mark matching and setting.
      - support for Linux kernels up to 3.8

http://openvswitch.org/releases/NEWS-1.9.0
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-08-20 15:22:09 UTC
It appears (through the irc channel) that support for >=3.9 only occurs in >=ovs-2.0
Comment 3 Jacques Landru 2013-08-22 14:45:07 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #2)
> It appears (through the irc channel) that support for >=3.9 only occurs in
> >=ovs-2.0

from the FAQ on the git.openvswitch.org (http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=FAQ;hb=HEAD) it seems that up to 3.10  will be supported in ovs 1.12.x

Q: What Linux kernel versions does each Open vSwitch release work with?

A: The following table lists the Linux kernel versions against which the
   given versions of the Open vSwitch kernel module will successfully
   build.  The Linux kernel versions are upstream kernel versions, so
   Linux kernels modified from the upstream sources may not build in
   some cases even if they are based on a supported version.  This is
   most notably true of Red Hat Enterprise Linux (RHEL) kernels, which
   are extensively modified from upstream.

   Open vSwitch   Linux kernel
   ------------   -------------
       1.4.x      2.6.18 to 3.2
       1.5.x      2.6.18 to 3.2
       1.6.x      2.6.18 to 3.2
       1.7.x      2.6.18 to 3.3
       1.8.x      2.6.18 to 3.4
       1.9.x      2.6.18 to 3.8
       1.10.x     2.6.18 to 3.8
       1.11.x     2.6.18 to 3.8
       1.12.x     2.6.18 to 3.10

   Open vSwitch userspace should also work with the Linux kernel module
   built into Linux 3.3 and later.

   Open vSwitch userspace is not sensitive to the Linux kernel version.
   It should build against almost any kernel, certainly against 2.6.18
   and later.
Comment 4 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-09-12 06:41:39 UTC
fixed in 1.9.0-r1 and 1.11.0