Compiling OpenVPN 2.5.x fails on QNX

Instructions and tips on how to roll your own client installer.
Post Reply
smujushi
Posts: 0
Joined: Sat Sep 24, 2022 10:49 pm

Compiling OpenVPN 2.5.x fails on QNX

Post by smujushi » Sun Sep 25, 2022 2:23 am

Having some issues compiling this for QNX 7. Was able to cross-compile the OpenVPN 2.3.11 client using the QNX 7 qcc/gcc but OpenVPN 2.4.x and OpenVPN 2.5.x fails. Any one had any success?

Read through the FAQ and HOWTO and didn't find much on this.

During the make it balks at the "->" in "for (curele = addrlist; curele; curele = curele->ai_next)":

Error:
../../../src/openvpn/socket.h:723:52: error: dereferencing pointer to incomplete type 'const struct addrinfo'
for (curele = addrlist; curele; curele = curele->ai_next)
^
../../../src/openvpn/argv.c: At top level:
cc1: warning: unrecognized command line option '-Wno-stringop-truncation'

(Can't turn on BBCode for some reason.)

Any help would be appreciated.

User avatar
ordex
OpenVPN Inc.
Posts: 417
Joined: Wed Dec 28, 2016 2:32 am
Location: IRC #openvpn-devel @ libera.chat

Re: Compiling OpenVPN 2.5.x fails on QNX

Post by ordex » Sun Sep 25, 2022 6:47 pm

Maybe your toolchain is missing /usr/include/netdb.h ? (that's where struct addrinfo is defined)

TinCanTech
OpenVPN Protagonist
Posts: 11142
Joined: Fri Jun 03, 2016 1:17 pm

Re: Compiling OpenVPN 2.5.x fails on QNX

Post by TinCanTech » Sun Sep 25, 2022 10:10 pm

QNX is not FOSS.

Post Reply