Public bug reported:

Version 1.6.1914+ds2-3

The aforementioned version of linux introduces this new enum, causing
build failures in openvpn. Here's the new enum from linux:

```
enum ovpn_mode {
 OVPN_MODE_P2P,
 OVPN_MODE_MP,
};
```

Here's ovpn_mode from openvpn:

```
enum ovpn_mode {
 __OVPN_MODE_FIRST = 0,
 OVPN_MODE_P2P = __OVPN_MODE_FIRST,
 OVPN_MODE_MP,

 __OVPN_MODE_AFTER_LAST,
};
```

Here's the log snippet from the autopkgtest logs:
```
...
703s gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include  -I../../include 
-I../../src/compat -Wdate-time -D_FORTIFY_SOURCE=3   -I/usr/include/lzo     
-DPLUGIN_LIBDIR=\"/usr/lib/x86_64-linux-gnu/openvpn/plugins\"  -Wall 
-Wno-stringop-truncation -g -O2 -Werror=implicit-function-declaration 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer 
-ffile-prefix-map=/tmp/autopkgtest.xRmf6I/build.iqV/src=. -flto=auto 
-ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection 
-fdebug-prefix-map=/tmp/autopkgtest.xRmf6I/build.iqV/src=/usr/src/openvpn-2.6.14-1ubuntu1
 -std=c99 -I/usr/include/libnl3   -c -o auth_token.o auth_token.c
703s In file included from /usr/include/linux/rtnetlink.h:7,
703s                  from /usr/include/libnl3/netlink/netlink.h:20,
703s                  from dco_linux.h:32,
703s                  from dco_internal.h:31,
703s                  from dco.h:31,
703s                  from tun.h:43,
703s                  from route.h:32,
703s                  from options.h:35,
703s                  from argv.c:39:
703s /usr/include/linux/if_link.h:1990:6: error: redeclaration of ‘enum 
ovpn_mode’
703s  1990 | enum ovpn_mode {
703s       |      ^~~~~~~~~
703s In file included from dco_linux.h:29:
703s ovpn_dco_linux.h:248:6: note: originally defined here
703s   248 | enum ovpn_mode {
703s       |      ^~~~~~~~~
703s /usr/include/linux/if_link.h:1991:9: error: redeclaration of enumerator 
‘OVPN_MODE_P2P’
703s  1991 |         OVPN_MODE_P2P,
703s       |         ^~~~~~~~~~~~~
703s ovpn_dco_linux.h:250:9: note: previous definition of ‘OVPN_MODE_P2P’ with 
type ‘enum ovpn_mode’
703s   250 |         OVPN_MODE_P2P = __OVPN_MODE_FIRST,
703s       |         ^~~~~~~~~~~~~
703s /usr/include/linux/if_link.h:1992:9: error: redeclaration of enumerator 
‘OVPN_MODE_MP’
703s  1992 |         OVPN_MODE_MP,
703s       |         ^~~~~~~~~~~~
703s ovpn_dco_linux.h:251:9: note: previous definition of ‘OVPN_MODE_MP’ with 
type ‘enum ovpn_mode’
703s   251 |         OVPN_MODE_MP,
703s       |         ^~~~~~~~~~~~
703s /usr/include/linux/if_link.h:1996:9: error: redeclaration of enumerator 
‘IFLA_OVPN_UNSPEC’
703s  1996 |         IFLA_OVPN_UNSPEC,
703s       |         ^~~~~~~~~~~~~~~~
703s ovpn_dco_linux.h:241:9: note: previous definition of ‘IFLA_OVPN_UNSPEC’ 
with type ‘enum ovpn_ifla_attrs’
703s   241 |         IFLA_OVPN_UNSPEC = 0,
703s       |         ^~~~~~~~~~~~~~~~
703s /usr/include/linux/if_link.h:1997:9: error: redeclaration of enumerator 
‘IFLA_OVPN_MODE’
703s  1997 |         IFLA_OVPN_MODE,
703s       |         ^~~~~~~~~~~~~~
703s ovpn_dco_linux.h:242:9: note: previous definition of ‘IFLA_OVPN_MODE’ with 
type ‘enum ovpn_ifla_attrs’
703s   242 |         IFLA_OVPN_MODE,
703s       |         ^~~~~~~~~~~~~~
703s In file included from /usr/include/linux/rtnetlink.h:7,
703s                  from /usr/include/libnl3/netlink/netlink.h:20,
703s                  from dco_linux.h:32,
703s                  from dco_internal.h:31,
703s                  from dco.h:31,
703s                  from tun.h:43,
703s                  from route.h:32,
703s                  from options.h:35,
703s                  from openvpn.h:28,
703s                  from auth_token.c:10:
703s /usr/include/linux/if_link.h:1990:6: error: redeclaration of ‘enum 
ovpn_mode’
703s  1990 | enum ovpn_mode {
703s       |      ^~~~~~~~~
703s In file included from dco_linux.h:29:
703s ovpn_dco_linux.h:248:6: note: originally defined here
703s   248 | enum ovpn_mode {
703s       |      ^~~~~~~~~
703s /usr/include/linux/if_link.h:1991:9: error: redeclaration of enumerator 
‘OVPN_MODE_P2P’
703s  1991 |         OVPN_MODE_P2P,
703s       |         ^~~~~~~~~~~~~
703s ovpn_dco_linux.h:250:9: note: previous definition of ‘OVPN_MODE_P2P’ with 
type ‘enum ovpn_mode’
703s   250 |         OVPN_MODE_P2P = __OVPN_MODE_FIRST,
703s       |         ^~~~~~~~~~~~~
703s /usr/include/linux/if_link.h:1992:9: error: redeclaration of enumerator 
‘OVPN_MODE_MP’
703s  1992 |         OVPN_MODE_MP,
703s       |         ^~~~~~~~~~~~
703s ovpn_dco_linux.h:251:9: note: previous definition of ‘OVPN_MODE_MP’ with 
type ‘enum ovpn_mode’
703s   251 |         OVPN_MODE_MP,
703s       |         ^~~~~~~~~~~~
703s /usr/include/linux/if_link.h:1996:9: error: redeclaration of enumerator 
‘IFLA_OVPN_UNSPEC’
703s  1996 |         IFLA_OVPN_UNSPEC,
703s       |         ^~~~~~~~~~~~~~~~
703s ovpn_dco_linux.h:241:9: note: previous definition of ‘IFLA_OVPN_UNSPEC’ 
with type ‘enum ovpn_ifla_attrs’
703s   241 |         IFLA_OVPN_UNSPEC = 0,
703s       |         ^~~~~~~~~~~~~~~~
703s /usr/include/linux/if_link.h:1997:9: error: redeclaration of enumerator 
‘IFLA_OVPN_MODE’
703s  1997 |         IFLA_OVPN_MODE,
703s       |         ^~~~~~~~~~~~~~
703s ovpn_dco_linux.h:242:9: note: previous definition of ‘IFLA_OVPN_MODE’ with 
type ‘enum ovpn_ifla_attrs’
703s   242 |         IFLA_OVPN_MODE,
703s       |         ^~~~~~~~~~~~~~
703s make[4]: *** [Makefile:786: argv.o] Error 1
...
```

This has been fixed upstream:
https://github.com/OpenVPN/openvpn/blob/master/src/openvpn/ovpn_dco_linux.h

Debian and Ubuntu have the latest release - we're waiting on upstream to
make a new release, and this will resolve itself.

** Affects: openvpn (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Version 1.6.1914+ds2-3
  
  The aforementioned version of linux introduces this new enum, causing
  build failures in openvpn. Here's the new enum from linux:
  
  ```
  enum ovpn_mode {
-       OVPN_MODE_P2P,
-       OVPN_MODE_MP,
+  OVPN_MODE_P2P,
+  OVPN_MODE_MP,
  };
  ```
  
  Here's ovpn_mode from openvpn:
  
  ```
  enum ovpn_mode {
-       __OVPN_MODE_FIRST = 0,
-       OVPN_MODE_P2P = __OVPN_MODE_FIRST,
-       OVPN_MODE_MP,
+  __OVPN_MODE_FIRST = 0,
+  OVPN_MODE_P2P = __OVPN_MODE_FIRST,
+  OVPN_MODE_MP,
  
-       __OVPN_MODE_AFTER_LAST,
+  __OVPN_MODE_AFTER_LAST,
  };
  ```
  
  Here's the log snippet from the autopkgtest logs:
  ```
  ...
  703s gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include  -I../../include 
-I../../src/compat -Wdate-time -D_FORTIFY_SOURCE=3   -I/usr/include/lzo     
-DPLUGIN_LIBDIR=\"/usr/lib/x86_64-linux-gnu/openvpn/plugins\"  -Wall 
-Wno-stringop-truncation -g -O2 -Werror=implicit-function-declaration 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer 
-ffile-prefix-map=/tmp/autopkgtest.xRmf6I/build.iqV/src=. -flto=auto 
-ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection 
-fdebug-prefix-map=/tmp/autopkgtest.xRmf6I/build.iqV/src=/usr/src/openvpn-2.6.14-1ubuntu1
 -std=c99 -I/usr/include/libnl3   -c -o auth_token.o auth_token.c
  703s In file included from /usr/include/linux/rtnetlink.h:7,
  703s                  from /usr/include/libnl3/netlink/netlink.h:20,
  703s                  from dco_linux.h:32,
  703s                  from dco_internal.h:31,
  703s                  from dco.h:31,
  703s                  from tun.h:43,
  703s                  from route.h:32,
  703s                  from options.h:35,
  703s                  from argv.c:39:
  703s /usr/include/linux/if_link.h:1990:6: error: redeclaration of ‘enum 
ovpn_mode’
  703s  1990 | enum ovpn_mode {
  703s       |      ^~~~~~~~~
  703s In file included from dco_linux.h:29:
  703s ovpn_dco_linux.h:248:6: note: originally defined here
  703s   248 | enum ovpn_mode {
  703s       |      ^~~~~~~~~
  703s /usr/include/linux/if_link.h:1991:9: error: redeclaration of enumerator 
‘OVPN_MODE_P2P’
  703s  1991 |         OVPN_MODE_P2P,
  703s       |         ^~~~~~~~~~~~~
  703s ovpn_dco_linux.h:250:9: note: previous definition of ‘OVPN_MODE_P2P’ 
with type ‘enum ovpn_mode’
  703s   250 |         OVPN_MODE_P2P = __OVPN_MODE_FIRST,
  703s       |         ^~~~~~~~~~~~~
  703s /usr/include/linux/if_link.h:1992:9: error: redeclaration of enumerator 
‘OVPN_MODE_MP’
  703s  1992 |         OVPN_MODE_MP,
  703s       |         ^~~~~~~~~~~~
  703s ovpn_dco_linux.h:251:9: note: previous definition of ‘OVPN_MODE_MP’ with 
type ‘enum ovpn_mode’
  703s   251 |         OVPN_MODE_MP,
  703s       |         ^~~~~~~~~~~~
  703s /usr/include/linux/if_link.h:1996:9: error: redeclaration of enumerator 
‘IFLA_OVPN_UNSPEC’
  703s  1996 |         IFLA_OVPN_UNSPEC,
  703s       |         ^~~~~~~~~~~~~~~~
  703s ovpn_dco_linux.h:241:9: note: previous definition of ‘IFLA_OVPN_UNSPEC’ 
with type ‘enum ovpn_ifla_attrs’
  703s   241 |         IFLA_OVPN_UNSPEC = 0,
  703s       |         ^~~~~~~~~~~~~~~~
  703s /usr/include/linux/if_link.h:1997:9: error: redeclaration of enumerator 
‘IFLA_OVPN_MODE’
  703s  1997 |         IFLA_OVPN_MODE,
  703s       |         ^~~~~~~~~~~~~~
  703s ovpn_dco_linux.h:242:9: note: previous definition of ‘IFLA_OVPN_MODE’ 
with type ‘enum ovpn_ifla_attrs’
  703s   242 |         IFLA_OVPN_MODE,
  703s       |         ^~~~~~~~~~~~~~
  703s In file included from /usr/include/linux/rtnetlink.h:7,
  703s                  from /usr/include/libnl3/netlink/netlink.h:20,
  703s                  from dco_linux.h:32,
  703s                  from dco_internal.h:31,
  703s                  from dco.h:31,
  703s                  from tun.h:43,
  703s                  from route.h:32,
  703s                  from options.h:35,
  703s                  from openvpn.h:28,
  703s                  from auth_token.c:10:
  703s /usr/include/linux/if_link.h:1990:6: error: redeclaration of ‘enum 
ovpn_mode’
  703s  1990 | enum ovpn_mode {
  703s       |      ^~~~~~~~~
  703s In file included from dco_linux.h:29:
  703s ovpn_dco_linux.h:248:6: note: originally defined here
  703s   248 | enum ovpn_mode {
  703s       |      ^~~~~~~~~
  703s /usr/include/linux/if_link.h:1991:9: error: redeclaration of enumerator 
‘OVPN_MODE_P2P’
  703s  1991 |         OVPN_MODE_P2P,
  703s       |         ^~~~~~~~~~~~~
  703s ovpn_dco_linux.h:250:9: note: previous definition of ‘OVPN_MODE_P2P’ 
with type ‘enum ovpn_mode’
  703s   250 |         OVPN_MODE_P2P = __OVPN_MODE_FIRST,
  703s       |         ^~~~~~~~~~~~~
  703s /usr/include/linux/if_link.h:1992:9: error: redeclaration of enumerator 
‘OVPN_MODE_MP’
  703s  1992 |         OVPN_MODE_MP,
  703s       |         ^~~~~~~~~~~~
  703s ovpn_dco_linux.h:251:9: note: previous definition of ‘OVPN_MODE_MP’ with 
type ‘enum ovpn_mode’
  703s   251 |         OVPN_MODE_MP,
  703s       |         ^~~~~~~~~~~~
  703s /usr/include/linux/if_link.h:1996:9: error: redeclaration of enumerator 
‘IFLA_OVPN_UNSPEC’
  703s  1996 |         IFLA_OVPN_UNSPEC,
  703s       |         ^~~~~~~~~~~~~~~~
  703s ovpn_dco_linux.h:241:9: note: previous definition of ‘IFLA_OVPN_UNSPEC’ 
with type ‘enum ovpn_ifla_attrs’
  703s   241 |         IFLA_OVPN_UNSPEC = 0,
  703s       |         ^~~~~~~~~~~~~~~~
  703s /usr/include/linux/if_link.h:1997:9: error: redeclaration of enumerator 
‘IFLA_OVPN_MODE’
  703s  1997 |         IFLA_OVPN_MODE,
  703s       |         ^~~~~~~~~~~~~~
  703s ovpn_dco_linux.h:242:9: note: previous definition of ‘IFLA_OVPN_MODE’ 
with type ‘enum ovpn_ifla_attrs’
  703s   242 |         IFLA_OVPN_MODE,
  703s       |         ^~~~~~~~~~~~~~
  703s make[4]: *** [Makefile:786: argv.o] Error 1
  ...
  ```
+ 
+ This has been fixed upstream:
+ https://github.com/OpenVPN/openvpn/blob/master/src/openvpn/ovpn_dco_linux.h
+ 
+ Debian and Ubuntu have the latest release - we're waiting on upstream to
+ make a new release, and this will resolve itself.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2120871

Title:
  linux 6.16.0-13.13 redefines `enum ovpn_mode` causing test failures
  and FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/2120871/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to