Page 1 of 1

Error installing openvpn 2.4.6 - openssl check failed

Posted: Sun Jun 03, 2018 6:24 pm
by javidr
Hi

Im trying to install openvpn 2.4.6 in my MacosX and its failing

The error im having is as follows

checking for SSL_CTX_new... no
configure: error: openssl check failed

I have multiple openssl instances in the computer, so i have used the --with-ssl parameter
./configure --with-ssl=/usr/local/bin/openssl

In config.log i can see this:


Undefined symbols for architecture x86_64:
"_SSL_CTX_new", referenced from:
_main in conftest-f2a9e1.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:16584: $? = 1

...

configure:16584: result: no
configure:16591: error: openssl check failed


I have flags configured as follows:

OPENSSL_CFLAGS='-I/usr/local/include'
OPENSSL_LIBS='-L/usr/local/lib -lcrypto -lssl'


I ran out of ideas on what could be the problem... can anybody help here please?

Thanks

Re: Error installing openvpn 2.4.6 - openssl check failed

Posted: Sun Jun 03, 2018 6:31 pm
by TinCanTech
Are you using a package manager to "install" OpenVPN .. or, are you in fact, trying to build the source ?

Re: Error installing openvpn 2.4.6 - openssl check failed

Posted: Sun Jun 03, 2018 9:03 pm
by javidr
Im building it with ./configure

Re: Error installing openvpn 2.4.6 - openssl check failed

Posted: Sun Jun 03, 2018 9:31 pm
by TinCanTech

Re: Error installing openvpn 2.4.6 - openssl check failed

Posted: Mon Jun 04, 2018 5:01 pm
by javidr
Hi

I am having this error now

clang: error: unsupported option '-static-libgcc'
make[2]: *** [link_shlib.darwin] Error 1
make[1]: *** [libcrypto.dylib] Error 2
make: *** [all] Error 2
FATAL: make openssl


Apparently its a problem with gcc in MacOSX

https://stackoverflow.com/questions/196 ... -mavericks

Is there any build configuration specific for MacOSX i can use?

Thanks

Re: Error installing openvpn 2.4.6 - openssl check failed

Posted: Wed Jun 06, 2018 12:59 pm
by TinCanTech
From the developers I am told:
  • install all prerequisite from homebrew
    build openvpn as normal and point for dependencies to the homebrew locations
    it is not really special
Another way is to use the build-system from the link above and customise the sources in build.vars

Try those methods first and see how you get on.

(Also, you can use a paste server to copy your complete output if you want to, we understand it will expire)