The issue #53 is not fully fixed. It mentions also the deprecated include of . And this still breaks the build with gcc 15.
I use: g++ (GCC) 15.1.1 20250425
The I tried to build without the unit tests like mentioned.
meson setup -Dunit_tests=disabled -Dtest_programs=disabled -Dselinux=disabled -Dselinux_policy=disabled build
...
User defined options
selinux : disabled
selinux_policy: disabled
test_programs : disabled
unit_tests : disabled
$ meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/cspiel/src/openvpn3-linux/build
ninja: Entering directory `/home/cspiel/src/openvpn3-linux/build'
[9/110] Compiling C++ object libnetcfgmgr.a.p/src_netcfg_proxy-netcfg-device.cpp.o
FAILED: libnetcfgmgr.a.p/src_netcfg_proxy-netcfg-device.cpp.o
c++ -Ilibnetcfgmgr.a.p -I. -I.. -I../openvpn3-core -I../vendor/asio/asio/include -Isrc -I../src -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libnl3 -I/usr/include/uuid -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O0 -g -Wno-non-virtual-dtor -DOVPN_TINYXML2_HAS_ERROR_NAME -DOVPN_TINYXML2_HAS_ERROR_STR -fPIC -DPROTOBUF_USE_DLLS -DNOMINMAX -pthread -MD -MQ libnetcfgmgr.a.p/src_netcfg_proxy-netcfg-device.cpp.o -MF libnetcfgmgr.a.p/src_netcfg_proxy-netcfg-device.cpp.o.d -o libnetcfgmgr.a.p/src_netcfg_proxy-netcfg-device.cpp.o -c ../src/netcfg/proxy-netcfg-device.cpp
In file included from /usr/include/absl/hash/internal/hash.h:33,
from /usr/include/absl/hash/hash.h:89,
from /usr/include/absl/container/internal/hash_function_defaults.h:56,
from /usr/include/absl/container/hash_container_defaults.h:19,
from /usr/include/absl/container/flat_hash_map.h:43,
from /usr/include/google/protobuf/descriptor.h:47,
from /usr/include/google/protobuf/generated_message_reflection.h:26,
from src/dco/dco-keyconfig.pb.h:26,
from ../src/netcfg/proxy-netcfg-device.cpp:37:
/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
| ^~~~~~~
cc1plus: all warnings being treated as errors
[16/110] Compiling C++ object src/ovpn3cli/libcommandscollection.a.p/commands_session_session-start.cpp.o
ninja: build stopped: subcommand failed.
The issue https://codeberg.org/OpenVPN/openvpn3-linux/issues/53 is not fully fixed. It mentions also the deprecated include of <ciso646>. And this still breaks the build with gcc 15.
I use: `g++ (GCC) 15.1.1 20250425`
The I tried to build without the unit tests like mentioned.
```
meson setup -Dunit_tests=disabled -Dtest_programs=disabled -Dselinux=disabled -Dselinux_policy=disabled build
...
User defined options
selinux : disabled
selinux_policy: disabled
test_programs : disabled
unit_tests : disabled
```
```
$ meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/cspiel/src/openvpn3-linux/build
ninja: Entering directory `/home/cspiel/src/openvpn3-linux/build'
[9/110] Compiling C++ object libnetcfgmgr.a.p/src_netcfg_proxy-netcfg-device.cpp.o
FAILED: libnetcfgmgr.a.p/src_netcfg_proxy-netcfg-device.cpp.o
c++ -Ilibnetcfgmgr.a.p -I. -I.. -I../openvpn3-core -I../vendor/asio/asio/include -Isrc -I../src -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libnl3 -I/usr/include/uuid -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O0 -g -Wno-non-virtual-dtor -DOVPN_TINYXML2_HAS_ERROR_NAME -DOVPN_TINYXML2_HAS_ERROR_STR -fPIC -DPROTOBUF_USE_DLLS -DNOMINMAX -pthread -MD -MQ libnetcfgmgr.a.p/src_netcfg_proxy-netcfg-device.cpp.o -MF libnetcfgmgr.a.p/src_netcfg_proxy-netcfg-device.cpp.o.d -o libnetcfgmgr.a.p/src_netcfg_proxy-netcfg-device.cpp.o -c ../src/netcfg/proxy-netcfg-device.cpp
In file included from /usr/include/absl/hash/internal/hash.h:33,
from /usr/include/absl/hash/hash.h:89,
from /usr/include/absl/container/internal/hash_function_defaults.h:56,
from /usr/include/absl/container/hash_container_defaults.h:19,
from /usr/include/absl/container/flat_hash_map.h:43,
from /usr/include/google/protobuf/descriptor.h:47,
from /usr/include/google/protobuf/generated_message_reflection.h:26,
from src/dco/dco-keyconfig.pb.h:26,
from ../src/netcfg/proxy-netcfg-device.cpp:37:
/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
| ^~~~~~~
cc1plus: all warnings being treated as errors
[16/110] Compiling C++ object src/ovpn3cli/libcommandscollection.a.p/commands_session_session-start.cpp.o
ninja: build stopped: subcommand failed.
```