Skip to contentSkip to conversation

LD Errors / vpn_connect or vpn_init

Openvpn-devel John A 2 participants 2 messages Sep 16, 2020

lore
Share & tools
lore

John A

author
#0 lore raw

Hey y'all,

I am new to this list and have been on listservs/majordomos since the mid-90s. I visit here today to ask and hopefully receive an answer.

I have errors of undefined references such as:

/tmp/ccDkPqm5.ltrans7.ltrans.o: In function `vpn_init()':
<artificial>:(.text+0x1051): undefined reference to `openvpn::ClientAPI::OpenVPNClient::OpenVPNClient()'

Is there documentation somewhere that I can look over or an quick quip answer here of what obvious thing or stuff I am missing?

This in on CentOS 7 machine, x86_64, what more could I provide? Is there a slack group?

Best regards,
John

Aronetics.com
We Speak ITR
+1-216/307-5760

#1 lore raw
Quoted 7 lines · John A

Hey y’all,

I am new to this list and have been on listservs/majordomos since themid-90s. I visit here today to ask and hopefullyreceivean answer.

I haveerrors of undefinedreferences such as:

Quoted 7 lines

/tmp/ccDkPqm5.ltrans7.ltrans.o: In function `vpn_init()':

<artificial>:(.text+0x1051): undefined reference to `openvpn::ClientAPI::OpenVPNClient::OpenVPNClient()'

Isthere documentation somewhere that I can look over or an quick quip answer here of what obvious thing or stuff I am missing?

I would recommend you to have a look at the reference client implementation, under test/ovpncli/cli.cpp.

But beware that the OpenVPN 3 Core library is designed to be a single compilation unit (don't ask). So you might need to do be careful how/where you do the #include of the Core library, as well as being careful about how you design your own compilation units. In OpenVPN 3 linux, I do use multiple compilation units, but needed to do some careful design around it.

Quoted 2 lines

This in on CentOS 7 machine, x86_64, what more could I provide? Is there a slack group?

I've built both the cli reference client without any issues on CentOS 7, as well as developing openvpn3-linux on RHEL-7 as the main development environment.

We're mostly on IRC, FreeNode in the #openvpn-devel room.

Signature · 4 lines
kind regards,

David Sommerseth
OpenVPN Inc