Failing to install openvpn3 due to lz4 package not found

Im trying to install openvpn but it fails because of lz4 package not found. I tried installing both openvpn3 and openvpn3-git and both has the same error. Here’s the log from the failed installation

Preparing...
Cloning openvpn3-git build files...
Checking openvpn3-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building openvpn3-git...
==> Making package: openvpn3-git 11_beta.r3.g1888b97-1 (Tuesday, 24 November, 2020 10:29:52 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating openvpn3-linux git repo...
Fetching origin
==> Validating source files with sha256sums...
    openvpn3-linux ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of openvpn3-linux git repo...
Cloning into 'openvpn3-linux'...
done.
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
** Initializing git submodules ...
Submodule 'openvpn3-core' (git://github.com/OpenVPN/openvpn3) registered for path 'openvpn3-core'
Submodule 'ovpn-dco' (https://gitlab.com/openvpn/ovpn-dco.git) registered for path 'ovpn-dco'
Submodule 'asio' (git://github.com/chriskohlhoff/asio) registered for path 'vendor/asio'
Submodule 'googletest' (git://github.com/google/googletest.git) registered for path 'vendor/googletest'
Cloning into '/var/tmp/pamac-build-franz/openvpn3-git/src/openvpn3-linux/openvpn3-core'...
Cloning into '/var/tmp/pamac-build-franz/openvpn3-git/src/openvpn3-linux/ovpn-dco'...
Cloning into '/var/tmp/pamac-build-franz/openvpn3-git/src/openvpn3-linux/vendor/asio'...
Cloning into '/var/tmp/pamac-build-franz/openvpn3-git/src/openvpn3-linux/vendor/googletest'...
Submodule path 'openvpn3-core': checked out '23d2203ff252f427fd4782093d13f982e9937daf'
Submodule path 'ovpn-dco': checked out 'ed1ca44410336bee1e81c6985c54f01520256ec5'
Submodule path 'vendor/asio': checked out 'efff0de89920eb66afead00dfd8bb8cf588ccee4'
Submodule path 'vendor/googletest': checked out '703bd9caab50b139428cea1aaff9974ebee5742e'

** Updating version.m4 ...
Version: master_1888b9711ecd9888

** Running autoreconf ...
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/linuxbrew/.linuxbrew/Cellar/autoconf/2.69_1/bin/autoconf
autoreconf: running: /home/linuxbrew/.linuxbrew/Cellar/autoconf/2.69_1/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:27: installing './compile'
configure.ac:24: installing './install-sh'
configure.ac:24: installing './missing'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
src/python/Makefile.am:35: installing './py-compile'
autoreconf: Leaving directory `.'

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for pkg-config... /home/linuxbrew/.linuxbrew/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking whether make sets $(MAKE)... (cached) yes
checking whether g++ supports C++11 features by default... yes
checking whether g++ supports C++14 features by default... yes
checking for a Python interpreter with version >= 3.5... python
checking for python... /usr/bin/python
checking for python version... 3.8
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.8/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.8/site-packages
checking for LIBLZ4... no
configure: error: lz4 package not found. Is the development package installed?
==> ERROR: A failure occurred in build().
    Aborting...

If find this one strange. Which AUR helper are you using. Did you try to build it in a clean root environment?

Also very odd.

It builds successfully for me on a up to date Manjaro XFCE system.

Btw. why not the good, old, very stable OpenVPN 2.X?

@xabbu Thanks for checking it out!

If find this one strange. Which AUR helper are you using.

How do I find out the AUR helper? I am using Add/Remove Software UI

Did you try to build it in a clean root environment?

I have not. How do I do that though? Do I need a 2nd machine for that?

Btw. why not the good, old, very stable OpenVPN 2.X?

I have been using OpenVPN 2.x for awhile now for work. But all of the sudden, it’s no longer working for me. I keep getting AUTH: Received control message: AUTH_FAILED. Our DevOps arent sure what the issue as well but recommended that I upgrade to OpenVPN 3.x because they had a similar issue with one of our colleagues and upgrading to 3.x seem to have fixed the issue. (Note: I also have OpenVPN client installed in my phone and that one works. The version of my OpenVPN of my phone is 3.2.2)

This would be pamac.

First, you should check why you are using for example these binaries.

/home/linuxbrew/.linuxbrew/bin/pkg-config

or

/home/linuxbrew/.linuxbrew/Cellar/autoconf/2.69_1/bin/autoconf
/home/linuxbrew/.linuxbrew/Cellar/autoconf/2.69_1/bin/autoheader

This is not the default. You are using some sort of special environment. Fix it.

If you don’t want to. Create a new user on your system with the defaults. And try again to build it. Maybe with the Arch default.

git clone https://aur.archlinux.org/openvpn3 
cd openvpn3
makepkg -s

Since your new user is probably not is the wheel group (can’t use sudo), use your normal user to install it.

sudo pacman -U /path/to/*.pkg.tar.*

You don’t need a second system. Use the Manjaro-tools. Some stuff to read.

Manjaro-tools - Manjaro
Buildiso with AUR packages: Using buildpkg - Manjaro
Projects · Tools / development-tools / manjaro-tools · GitLab

I just uninstalled rbenv and autoconf, and tried installing openvpn3 and that worked! :slight_smile: thanks!

(not sure why i had those in the first place but at least i now have openvpn3 :smiley: thanks! )