Hi Samuli,
Re: viewtopic.php?f=30&t=23663
I attempted to install openvpn-2.4.0 on my Ubuntu 16.10 system and got these errors during the make. Any help you can provide would be greatly appreciated.
Regards,
Jim Breef
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../src/compat -I/usr/local/include -g -O2 -std=c99 -MT crypto.o -MD -MP -MF .deps/crypto.Tpo -c -o crypto.o crypto.c
In file included from crypto.h:131:0,
from crypto.c:36:
crypto.c: In function ‘init_key_ctx’:
crypto.c:843:32: error: invalid application of ‘sizeof’ to incomplete type ‘cipher_ctx_t {aka struct evp_cipher_ctx_st}’
ALLOC_OBJ(ctx->cipher, cipher_ctx_t);
^
buffer.h:1013:61: note: in definition of macro ‘ALLOC_OBJ’
check_malloc_return((dptr) = (type *) malloc(sizeof(type))); \
^~~~
crypto.c:867:30: error: invalid application of ‘sizeof’ to incomplete type ‘hmac_ctx_t {aka struct hmac_ctx_st}’
ALLOC_OBJ(ctx->hmac, hmac_ctx_t);
^
buffer.h:1013:61: note: in definition of macro ‘ALLOC_OBJ’
check_malloc_return((dptr) = (type *) malloc(sizeof(type))); \
^~~~
Makefile:654: recipe for target 'crypto.o' failed
make[3]: *** [crypto.o] Error 1
Can't install OpenVPN on ubuntu 16.10 (yakkety) - no release file
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
-
- OpenVpn Newbie
- Posts: 1
- Joined: Mon Apr 03, 2017 1:47 am
-
- OpenVPN Super User
- Posts: 310
- Joined: Tue Apr 12, 2011 6:22 am
Re: Can't install OpenVPN on ubuntu 16.10 (yakkety) - no release file
hi , first uncomment all the lines with deb or deb-src in /etc/apt/sources.list , it should look something like this https://pastebin.com/U5rKKiBd
then
this will install the openvpn binary in /opt/openvpn/sbin/
then , create an init script and adapt it to use the new installed openvpn binary like i did here https://pastebin.com/KYSZwjHh
put your configs in /opt/openvpn/etc/openvpn
do a reboot , then systemctl enable openvpn24 && systemctl start openvpn24 && systemctl status openvpn24
for convenience you can create symbolic links , keeping in mind that if you install openvpn that comes with the distribution will mess this up.
then
Code: Select all
apt update
apt install build-essential
apt build-dep openvpn
wget https://swupdate.openvpn.org/community/releases/openvpn-2.4.0.tar.gz
tar xvf openvpn-2.4.0.tar.gz
cd openvpn-2.4.0
./configure --prefix=/opt/openvpn --enable-systemd --enable-iproute2
make
make install
then , create an init script and adapt it to use the new installed openvpn binary like i did here https://pastebin.com/KYSZwjHh
put your configs in /opt/openvpn/etc/openvpn
do a reboot , then systemctl enable openvpn24 && systemctl start openvpn24 && systemctl status openvpn24
for convenience you can create symbolic links , keeping in mind that if you install openvpn that comes with the distribution will mess this up.
Code: Select all
ln -s /opt/openvpn/etc/openvpn /etc/openvpn && ln -s /opt/openvpn/sbin/openvpn /usr/local/sbin/openvpn