From: Gustaf N. <ne...@wu...> - 2018-09-23 10:43:01
|
Dear Thorpe, The function 'SSL_is_init_finished' (not found in your installation) is available in OpenSSL at least since 1.0.2, so it looks to me as if you compiled against recent .h files of OpenSSL, but you tried to link against an old version of OpenSSL, which does not have these functions. The see various versions of OpenSSL libraries on your system, and these containing the function "OPENSSL_init_ssl", use a command like the following for l in `locate libssl.a` ; do echo $l; nm $l | fgrep OPENSSL_init_ssl; done Assuming, you have installed OpenSSL-1.1.1 under /usr/local, then configure naviserver with ./configure ... -with-openssl=/usr/local/ This should add the proper "-L..." option to the linking command. Alternatively, you can install OpenSSL into /usr/local/ns. The mentioned script does similar with Tcl and tcllib. This keeps the the libraries used by NaviSever more independent of the packaged updates on your system. all the best -gn On 22.09.18 18:19, THORPE MAYES via naviserver-devel wrote: > Hi, > > I am trying to install Naviserver using this script: > > install-ns.sh > > I have installed Openssl-1.1.1. > > I am getting this error: > > gcc -L../nsthread -L../nsd -L../nsdb -o nsd main.o libnsd.so -lz > -lcrypt -lnsthread -L/usr/local/ns/lib -ltcl8.6 -lgcc_s -lieee -lm > -Wl,--export-dynamic -L/usr/local/ns/lib -lssl -lcrypto > -Wl,-rpath,:/usr/local/ns/lib > libnsd.so: undefined reference to `EVP_MD_CTX_new' > libnsd.so: undefined reference to `HMAC_CTX_free' > libnsd.so: undefined reference to `SSL_is_init_finished' > libnsd.so: undefined reference to `OPENSSL_init_ssl' > libnsd.so: undefined reference to `OpenSSL_version' > libnsd.so: undefined reference to `OPENSSL_init_crypto' > libnsd.so: undefined reference to `TLS_client_method' > libnsd.so: undefined reference to `EVP_MD_CTX_free' > libnsd.so: undefined reference to `HMAC_CTX_new' > libnsd.so: undefined reference to `TLS_server_method' > collect2: error: ld returned 1 exit status > make[1]: *** [nsd] Error 1 > make[1]: Leaving directory `/usr/local/package/naviserver-4.99.16/nsd' > make: *** [all] Error 1 > > I am not sure where to go from here. Any help will be appreciated. > > Thank you, > > Thorpe > |