Skip to contentSkip to conversation

Compiling OpenVPN 3 Linux Client on arm

Openvpn-devel David Sommerseth 1 participant 1 message May 29, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]...

#1 lore raw
Quoted 14 lines · Lorenz

Hi,

has anyone already succeeded to compile the OpenVPN 3 Linux Client on an arm architecture?

I am trying to compile the project on a Raspberry Pi 3 Model B+ running Raspbian (basically Debian Stretch). But make always fails (see attached log). To check if there is a problem with Raspbian I also tried compiling inside a LXC container running Ubuntu 18.04 however the same error occurred.

GCC version:
gcc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516 gcc (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04) 7.4.0

Quoted 8 lines

uname:
Linux test 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l GNU/Linux

make finishes without problems on my amd64 machine (tested Debian Stretch and Ubuntu 18.04).

Do you have any ideas why the error only occurs on the Raspberry Pi?

Hi,

Thanks for testing openvpn3-linux! :)

Yes, 32 bit is a known issue. It's related to some type deduction challenge C++ provides which is not an issue on 64 bit platforms. So far I've just been ignorant to 32 bit platforms (sorry!), as I didn't think it was that used that much any more - and especially not on ARM. But I also didn't think if RasperryPi ... so this needs to be fixed!

If anyone is willing to dive into this issue and try to come up with a patch, I will happily review and merge it. Otherwise I'll have a look at it once I get a chance. It's probably not a big challenge, just need to fully grasp the C++ template complaint and find a fix which also doesn't break 64 bit.

Btw ... (and I'm NOT pointing fingers) .. but these kind of questions are usually better suited for openvpn-devel mailing list (on Cc).

Signature · 4 lines
kind regards,

David Sommerseth
OpenVPN Inc