ocserv from source CentOS 6.4 x64

Nikos Mavrogiannopoulos nmav at gnutls.org
Fri Nov 15 11:17:10 EST 2013


On Fri, Nov 15, 2013 at 4:57 PM, Martin Lambev <fsh3mve at gmail.com> wrote:

Hello Martin,
 Some comments inline.

> $ autoreconf -fvi
> autoreconf: Entering directory `.'
> autoreconf: configure.ac: not using Gettext
> autoreconf: running: aclocal --force -I gl/m4 -I libopts/m4
> configure.ac:14: warning: macro `AM_PROG_AR' not found in library

You need a newer automake, or just remove the AM_PROG_AR line and you're fine.

> The GnuTLS bundled with CentOS 6.4 is GnuTLS ver.2.8.5

Hell no! (that's 2009 :)

> So I'm grabbing one from GnuTLS website stable release  gnutls-3.1.16.tar.xz, Nettle crypto back-end lib (nettle-2.7.1.tar.gz), GMP arithmetic library (gmp-5.1.3.tar.xz) are also required, as an option I'm also compile zlib v.1.2.8.

It is better to use the 3.2.x branch. It's not less stable than the
other and is much faster in packet processing.

> Step 3: nettle** There was an error with nettle make:
> hogweed-benchmark.c:576: error: ‘struct openssl_ctx’ has no member named ‘digest’
> make[1]: *** [hogweed-benchmark.o] Error 1
> make[1]: Leaving directory `/home/mve/Downloads/ocserv/nettle/nettle-2.7.1/examples'
> make: *** [all] Error 1

No idea. Note that in nettle it is better not to compile with -j.
In any case report this to nettle's list.

> and also to tune PKG_CONFIG_PATH but did not work quite well…
> still dies on "make" and/or after "make install" ocserv complains that cant find missing libs

You may need to do something like:
echo "/usr/local/lib" >/etc/ld.so.conf.d/local.conf
echo "/usr/local/lib64" >>/etc/ld.so.conf.d/local.conf
ldconfig

This will solve finding the correct library on runtime.

What errors did you have on "make"?

regards,
Nikos



More information about the openconnect-devel mailing list