Ubuntu 16.04.2 LTS --enable-systemd ./configure error
Hi
This is just a heads up !
I cannot build openvpn on ubuntu 16.04.2 LTS (fresh install) because ./configure --enable-systemd fails to build with the following error:
autoconf -ifv [done]
./configure --enable-system log
<q>
checking for RSA_meth_set0_app_data... no
checking for lzo1x_1_15_compress in -llzo2... yes
checking lzo/lzoutil.h usability... yes
checking lzo/lzoutil.h presence... yes
checking for lzo/lzoutil.h... yes
checking lzo/lzo1x.h usability... yes
checking lzo/lzo1x.h presence... yes
checking for lzo/lzo1x.h... yes
configure: checking for LZ4 Library and Header files...
checking for LZ4_compress in -llz4... yes
checking lz4.h usability... yes
checking lz4.h presence... yes
checking for lz4.h... yes
checking for libsystemd... no
checking for libsystemd... no
configure: error: in `/home/dik/openvpn/master':
configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config.
Alternatively, you may set the environment variables libsystemd_CFLAGS and libsystemd_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details
</q>
Not only but also ..
$ systemctl version Unknown operation version.
$ uname -a Linux ub64-tst 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC
./configure without --enable-systemd is fine
apt-get install libsystemd-dev is done
Quoted 7 lines · On 28/05/17 22:47, debbie10t wrote:
Hi
This is just a heads up !
I cannot build openvpn on ubuntu 16.04.2 LTS (fresh install) because ./configure --enable-systemd fails to build with the following error:
[...snip...]
Quoted 8 lines
checking for libsystemd... no
checking for libsystemd... no
configure: error: in `/home/dik/openvpn/master':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set thePKG_CONFIGenvironment variable to the full path to pkg-config.
[...snip...]
Quoted 3 lines
$ systemctl version Unknown operation version.
Can you try --version instead of just 'version'?
Quoted 1 line
apt-get install libsystemd-dev is done
Can you locate libsystemd.pc or systemd.pc on your system? Are there other systemd related -dev packages available?
Signature · 4 lines
kind regards, David Sommerseth OpenVPN Technologies, Inc
Quoted 17 lines · David Sommerseth
Quoted 7 lines · On 28/05/17 22:47, debbie10t wrote:
Hi
This is just a heads up !
I cannot build openvpn on ubuntu 16.04.2 LTS (fresh install) because ./configure --enable-systemd fails to build with the following error:
[...snip...]
Quoted 8 lines
checking for libsystemd... no
checking for libsystemd... no
configure: error: in `/home/dik/openvpn/master':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set thePKG_CONFIGenvironment variable to the full path to pkg-config.
Quoted 6 lines
[...snip...]
Quoted 3 lines
$ systemctl version Unknown operation version.Can you try --version instead of just 'version'?
oops ..
$ systemctl --version systemd 229 +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN
sorry about that blunder
Quoted 7 lines
Quoted 2 lines
apt-get install libsystemd-dev is done
Can you locate libsystemd.pc or systemd.pc on your system? Are there other systemd related -dev packages available?
still looking ..
TYVM
Quoted 42 lines · On 29/05/2017 00:36, debbie10t wrote:
Quoted 17 lines · David Sommerseth
Quoted 7 lines · On 28/05/17 22:47, debbie10t wrote:
Hi
This is just a heads up !
I cannot build openvpn on ubuntu 16.04.2 LTS (fresh install) because ./configure --enable-systemd fails to build with the following error:
[...snip...]
Quoted 8 lines
checking for libsystemd... no
checking for libsystemd... no
configure: error: in `/home/dik/openvpn/master':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set thePKG_CONFIGenvironment variable to the full path to pkg-config.Quoted 6 lines
[...snip...]
Quoted 3 lines
$ systemctl version Unknown operation version.Can you try --version instead of just 'version'?
oops ..
$ systemctl --version systemd 229(quoted diff) +3
-0+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDNsorry about that blunder
Quoted 3 lines
Quoted 2 lines
apt-get install libsystemd-dev is done
Quoted 9 lines
Quoted 4 lines
Can you locate libsystemd.pc or systemd.pc on your system? Are there other systemd related -dev packages available?
still looking ..
TYVM
Try this (I ran this on Debian 8):
$ sudo -s $ find / -name "libsystemd.pc" /usr/lib/x86_64-linux-gnu/pkgconfig/libsystemd.pc $ find / -name "systemd.pc" /usr/share/pkgconfig/systemd.pc
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
Quoted 1 line · Samuli Seppänen
On 29/05/2017 00:36, debbie10t wrote:
[...snip...]
Quoted 6 lines
Review
Quoted 6 lines
$ systemctl --version systemd 229(quoted diff) +3
-0+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN
This looks reasonable.
Quoted 12 lines
Quoted 11 lines
Quoted 6 lines
Quoted 1 line
apt-get install libsystemd-dev is done
Can you locate libsystemd.pc or systemd.pc on your system? Are there other systemd related -dev packages available?
still looking ..
TYVM
Quoted 7 lines
Try this (I ran this on Debian 8):
$ sudo -s $ find / -name "libsystemd.pc" /usr/lib/x86_64-linux-gnu/pkgconfig/libsystemd.pc $ find / -name "systemd.pc" /usr/share/pkgconfig/systemd.pc
Samuli: Which systemd related -dev packages do you have installed?
debbie10t: can you also try to run:
$ pkg-config --libs --cflags --modversion libsystemd
and
$ pkg-config --libs --cflags --modversion systemd
The latter one might not return much more than just "229".
Signature · 4 lines
kind regards, David Sommerseth OpenVPN Technologies, Inc
Hi,
Quoted 26 lines · David Sommerseth
Quoted 1 line · Samuli Seppänen
On 29/05/2017 00:36, debbie10t wrote:
[...snip...]
Quoted 6 lines
Review
Quoted 6 lines
$ systemctl --version systemd 229(quoted diff) +3
-0+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDNThis looks reasonable.
Quoted 14 lines
Quoted 11 lines
Quoted 6 lines
Quoted 1 line
apt-get install libsystemd-dev is done
Can you locate libsystemd.pc or systemd.pc on your system? Are there other systemd related -dev packages available?
still looking ..
TYVM
Try this (I ran this on Debian 8):
Quoted 7 lines
Quoted 5 lines
$ sudo -s $ find / -name "libsystemd.pc" /usr/lib/x86_64-linux-gnu/pkgconfig/libsystemd.pc $ find / -name "systemd.pc" /usr/share/pkgconfig/systemd.pcSamuli: Which systemd related -dev packages do you have installed?
libsystemd-daemon-dev
libsystemd-dev
Quoted 12 lines
debbie10t: can you also try to run:
$ pkg-config --libs --cflags --modversion libsystemdand
$ pkg-config --libs --cflags --modversion systemdThe latter one might not return much more than just "229".
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
It turns out pkg-config is not installed
After installing all worked as expected.
Thanks :)
Quoted 3 lines · On 29/05/17 14:26, debbie10t wrote:
It turns out pkg-config is not installed
After installing all worked as expected.
Great!
I was too lazy to check ... but do we have some documentation on build requirements anywhere? Should probably be checked into the main openvpn git repository. And we should ensure pkg-config is listed there, at least for Linux builds. Not sure if we depend on that on the various *BSD distros.
Signature · 4 lines
kind regards, David Sommerseth OpenVPN Technologies, Inc
Quoted 5 lines · David Sommerseth
Quoted 3 lines · On 29/05/17 14:26, debbie10t wrote:
It turns out pkg-config is not installed
After installing all worked as expected.
Quoted 8 lines
Great!
I was too lazy to check ... but do we have some documentation on build requirements anywhere? Should probably be checked into the main openvpn git repository. And we should ensure pkg-config is listed there, at least for Linux builds. Not sure if we depend on that on the various *BSD distros.
There is some documentation here:
<https://community.openvpn.net/openvpn/wiki/TesterDocumentation>
The documentation in README and INSTALL seems rather outdated, even though mostly correct. Those files should definitely be revised.
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
Quoted 5 lines · David Sommerseth
Quoted 3 lines · On 29/05/17 14:26, debbie10t wrote:
It turns out pkg-config is not installed
After installing all worked as expected.
Quoted 8 lines
Great!
I was too lazy to check ... but do we have some documentation on build requirements anywhere? Should probably be checked into the main openvpn git repository. And we should ensure pkg-config is listed there, at least for Linux builds. Not sure if we depend on that on the various *BSD distros.
FYI:
pkg-config was only required for --enable-systemd Running './configure' only did not need pkg-config. I don't know if it is required for any other options.
Thanks
Hi,
Quoted 4 lines · On Mon, May 29, 2017 at 02:01:14PM +0100, debbie10t wrote:
FYI:
pkg-config was only required for --enable-systemd Running './configure' only did not need pkg-config. I don't know if it is required for any other options.
pkg-config is used for OpenSSL checking, but if it's not there, we fall back to "just see if it works" - because the BSDs do not (all) have pkg-config files for openssl.
As systemd is linux specific (today), and linux has pkg-config, it needs to be there...
Maybe our configure should point this out more clearly, that is, if "--enable-systemd" is given and pkg-config cannot be found, complain about lack of *pkg-config*...
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Quoted 12 lines · Gert Doering
Hi,
Quoted 4 lines · On Mon, May 29, 2017 at 02:01:14PM +0100, debbie10t wrote:
FYI:
pkg-config was only required for --enable-systemd Running './configure' only did not need pkg-config. I don't know if it is required for any other options.pkg-config is used for OpenSSL checking, but if it's not there, we fall back to "just see if it works" - because the BSDs do not (all) have pkg-config files for openssl.
Quoted 6 lines
As systemd is linux specific (today), and linux has pkg-config, it needs to be there...
Maybe our configure should point this out more clearly, that is, if "--enable-systemd" is given and pkg-config cannot be found, complain about lack of *pkg-config*...
Actually, pkcs11-helper and p11-kit checks also depends on pkg-config ... the systemd pkg-config calls just happens to be run first to bail out if it can't figure out the systemd details. It seems pkg-config first called on pkcs11-helper, then openssl - both which considers "failure" as non-critical.
If it is only the openssl.pc missing on some *BSD distros, then I think we can have pkg-config being a requirement which is checked for as early as possible. Otherwise, we'll need to check for pkg-config if pkcs11-helper, p11-kit or systemd is enabled. And for each new dependency with pkg-config support.
Btw ... I also see we could utilize pkg-config for lz4 too (at least with lz4-1.7.3)
Signature · 4 lines
kind regards, David Sommerseth OpenVPN Technologies, Inc
Hi,
Quoted 10 lines · David Sommerseth
Quoted 3 lines
Maybe our configure should point this out more clearly, that is, if "--enable-systemd" is given and pkg-config cannot be found, complain about lack of *pkg-config*...
Actually, pkcs11-helper and p11-kit checks also depends on pkg-config ... the systemd pkg-config calls just happens to be run first to bail out if it can't figure out the systemd details. It seems pkg-config first called on pkcs11-helper, then openssl - both which considers "failure" as non-critical.
Quoted 5 lines
If it is only the openssl.pc missing on some *BSD distros, then I think we can have pkg-config being a requirement which is checked for as early as possible. Otherwise, we'll need to check for pkg-config if pkcs11-helper, p11-kit or systemd is enabled. And for each new dependency with pkg-config support.
On the BSDs (and Solaris) we can't assume pkg-config support. So everything that is not linux specific has to fall back to "just try and see if linking works".
Quoted 2 lines
Btw ... I also see we could utilize pkg-config for lz4 too (at least with lz4-1.7.3)
This happens to have a pkg-config entry on FreeBSD, but it's called "liblz4.pc"... go figure :-)
(And I did not check the other ones)
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...