OpenVPN / openvpn3-linux

OpenVPN 3 Linux client
GNU Affero General Public License v3.0
554 stars 148 forks source link

Build doesn't work without selinux #16

Closed MFAshby closed 4 years ago

MFAshby commented 4 years ago

Steps to reproduce:

Expected behaviour

Actual behaviour

Error message during configure, which I receive regardless of the --disable-selinux-build flag:

configure: Using ASIO source directory: ./vendor/asio
configure: Using OpenVPN 3 Core Library directory: ./openvpn3-core
checking OpenVPN 3 Core Library version... 3.git:HEAD:bf9f309f
./configure: line 7436: syntax error near unexpected token `${datarootdir}/selinux/devel,'
./configure: line 7436: `        AX_RECURSIVE_EVAL(${datarootdir}/selinux/devel, selinux_devel_path)'

I worked around this by simply editing and manually deleting the section about selinux from the configure script. Ideally the script would correctly detect selinux availability and exclude generating the policy files if it's not present on the system.

dsommers commented 4 years ago

Can you please verify you have autoconf-archive package installed? The AX_* macros in ./configure is from the autoconf-archive. The upstream autoconf-archive project can be found here, for details: https://www.gnu.org/software/autoconf-archive/

MFAshby commented 4 years ago

Ah I didn't!

This is already included in the docs for fedora, ubuntu etc, https://github.com/OpenVPN/openvpn3-linux#fedora, I just missed it. Installed, and it builds no problem.

Thanks, and sorry for the bother.