do an upgrade first
sudo pacman -Syu
Then I can build successfully
Git Clone URL: | https://aur.archlinux.org/openvpn3.git (read-only, click to copy) |
---|---|
Package Base: | openvpn3 |
Description: | OpenVPN 3 Linux client |
Upstream URL: | https://codeberg.org/OpenVPN/openvpn3-linux |
Keywords: | openvpn vpn |
Licenses: | AGPL3 |
Submitter: | bhyoo |
Maintainer: | bhyoo |
Last Packager: | bhyoo |
Votes: | 20 |
Popularity: | 0.86 |
First Submitted: | 2020-07-04 06:51 (UTC) |
Last Updated: | 2024-12-23 12:57 (UTC) |
do an upgrade first
sudo pacman -Syu
Then I can build successfully
fyi, my tests failed with
Found ninja-1.12.1 at /usr/bin/ninja
Cleaning... 0 files.
[77/78] Linking target src/tests/ovpncli-netcfg
ninja: Entering directory `/home/foo/.cache/paru/clone/openvpn3/src/_builddir'
ninja: no work to do.
1/7 openvpn3-linux:standalone / logevent-selftest OK 0.02s
2/7 openvpn3-linux:standalone / netcfg-changeevent-selftest OK 0.01s
3/7 openvpn3-linux:standalone / netcfg-dns-direct-file-selftest OK 0.01s
4/7 openvpn3-linux:dbus / request-queue-test OK 1.81s
5/7 openvpn3-linux:dbus / platforminfo FAIL 9.14s killed by signal 6 SIGABRT
>>> MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MESON_TEST_ITERATION=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MALLOC_PERTURB_=103 /home/foo/.cache/paru/clone/openvpn3/src/_builddir/src/tests/platforminfo
6/7 openvpn3-linux:unit / unit-tests FAIL 9.19s exit status 1
>>> MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MALLOC_PERTURB_=254 MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /home/foo/.cache/paru/clone/openvpn3/src/_builddir/src/tests/unit/unit-tests
7/7 openvpn3-linux:post-install / config-override-selftest SKIP 19.21s exit status 77
Ok: 4
Expected Fail: 0
Fail: 2
Unexpected Pass: 0
Skipped: 1
Timeout: 0
Full log written to /home/foo/.cache/paru/clone/openvpn3/src/_builddir/meson-logs/testlog.txt
==> ERROR: A failure occurred in check().
Aborting...
error: failed to build 'openvpn3-24-2':
error: packages failed to build: openvpn3-24-2
turns out, that my systemd-hostnamed service was masked so the dbus interface for org.freedesktop.hostname1 did not work.
I was not able to build it with yay (ran yay -Scc
and yay -Sc
before).
It failed with:
ninja: Entering directory `/home/user/.cache/yay/openvpn3/src/_builddir'
[149/171] Generating src/shell/bash-completion/bash-completion-openvpn2 with a custom command (wrapped by meson to capture output)
FAILED: src/shell/bash-completion/openvpn2
/usr/bin/meson --internal exe --capture src/shell/bash-completion/openvpn2 -- /home/user/.cache/yay/openvpn3/src/openvpn3-linux-23/src/shell/bash-completion/gen-openvpn2-completion.py --python-source-dir /home/user/.cache/yay/openvpn3/src/openvpn3-linux-23/src/python/openvpn3
--- stderr ---
Traceback (most recent call last):
File "/home/user/.cache/yay/openvpn3/src/openvpn3-linux-23/src/shell/bash-completion/gen-openvpn2-completion.py", line 96, in <module>
constants = importlib.import_module('openvpn3.constants',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'openvpn3.constants'
[163/171] Linking target src/ovpn3cli/openvpn3
ninja: build stopped: subcommand failed.
When trying to search for the problem, I first tried it without yay (checkout aur git and makepkg -si
) which also failed - however, running it a second time successfully built...
yay -Sc
and yay -Scc
didn't work for me, still got the same error:
==> Missing dependencies:
-> gdbuspp>=2
I had to remove openvpn3 and gdbuspp using yay -R openvpn3 gdbuspp-git
and then I could install openvpn3 with yay -S openvpn3
To fix failure of the 'openvpn3-linux:post-install / config-override-selftest' test, I've done things from the pinned comments but it didn't solve the problem. I had to remove openvpn3 (including gdbuspp) and install openvpn3 to fix it.
Cannot build the most recent version of openvpn3:
In file included from src/dco/dco-keyconfig.pb.cc:4:
src/dco/dco-keyconfig.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
12 | #error This file was generated by a newer version of protoc which is
| ^~~~~
src/dco/dco-keyconfig.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
13 | #error incompatible with your Protocol Buffer headers. Please update
| ^~~~~
src/dco/dco-keyconfig.pb.h:14:2: error: #error your headers.
14 | #error your headers.
| ^~~~~
src/dco/dco-keyconfig.pb.h:36:1: error: 'PROTOBUF_NAMESPACE_OPEN' does not name a type
36 | PROTOBUF_NAMESPACE_OPEN
| ^~~~~~~~~~~~~~~~~~~~~~~
src/dco/dco-keyconfig.pb.h:40:1: error: 'PROTOBUF_NAMESPACE_CLOSE' does not name a type
40 | PROTOBUF_NAMESPACE_CLOSE
| ^~~~~~~~~~~~~~~~~~~~~~~~
tj_88, I had the same problem - it is solved by instruction in pinned comment.
Build is failing with v23-1
[77/78] Linking target src/tests/ovpncli-netcfg
ninja: Entering directory `/home/tina/.cache/yay/openvpn3/src/_builddir'
ninja: no work to do.
1/7 openvpn3-linux:standalone / logevent-selftest OK 0.01s
2/7 openvpn3-linux:standalone / netcfg-changeevent-selftest OK 0.01s
3/7 openvpn3-linux:standalone / netcfg-dns-direct-file-selftest OK 0.01s
4/7 openvpn3-linux:dbus / platforminfo OK 0.09s
5/7 openvpn3-linux:unit / unit-tests OK 0.12s
6/7 openvpn3-linux:post-install / config-override-selftest FAIL 0.24s killed by signal 6 SIGABRT
>>> MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MESON_TEST_ITERATION=1 MALLOC_PERTURB_=215 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /home/tina/.cache/yay/openvpn3/src/_builddir/src/tests/config-override-selftest
7/7 openvpn3-linux:dbus / request-queue-test OK 1.44s
Ok: 6
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 0
Timeout: 0
autoconf-archive
should probably be listed as a make dependecy.
depends on old protobuf 28.0 where the new one is 28.1
Pinned Comments
bhyoo commented on 2024-07-08 11:46 (UTC) (edited on 2024-07-08 11:47 (UTC) by bhyoo)
If you have trouble with building it, please run
yay -Scc
oryay -Sc
.FYI. I replaced
gdbuspp-git
withgdbuspp
in the PKGBUILD dependency, and it seems that the build fails because the locally cached PKGBUILD is not updated.