Page 1 of 1

Compiling OpenVPN 2.5.x fails on QNX

Posted: Sun Sep 25, 2022 2:23 am
by smujushi
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.

Re: Compiling OpenVPN 2.5.x fails on QNX

Posted: Sun Sep 25, 2022 6:47 pm
by ordex
Maybe your toolchain is missing /usr/include/netdb.h ? (that's where struct addrinfo is defined)

Re: Compiling OpenVPN 2.5.x fails on QNX

Posted: Sun Sep 25, 2022 10:10 pm
by TinCanTech
QNX is not FOSS.