Forum OpenACS Development: Re: Fatal Signal 11 with nsssl Naviserver

Collapse
Posted by Gustaf Neumann on
Dear Dave, you have not mentioned the version of nsssl, but i assume it is 0.5, included in the *modules* tar file from sourceforge (via default setting from install-ns.sh). Is this correct?

OpenSSL 1.0.2 was released 5 days ago. It is not unlikely, that there is a problem with that. Can you link for against the version provided with you Linux distro?

Collapse
Posted by Gustaf Neumann on
Dear Dave,

i've downloaded, compiled and installed OpenSSL 1.0.2 and built it with the released versions of NaviServer and nsssl.
The error log says:

[28/Jan/2015:20:58:11][681.7ff035690700][-main-] Notice: modload: loading module nsssl from file nsssl.so
[28/Jan/2015:20:58:11][681.7ff035690700][-main-] Notice: nsssl: enable 0 spooler thread(s) 
[28/Jan/2015:20:58:11][681.7ff035690700][-main-] Notice: nsssl: enable 0 writer thread(s) 
[28/Jan/2015:20:58:11][681.7ff035690700][-main-] Notice: nsssl: disabling SSLv2
[28/Jan/2015:20:58:11][681.7ff035690700][-main-] Notice: nsssl: version 0.5 loaded, based on OpenSSL 1.0.2 22 Jan 2015
[28/Jan/2015:20:58:11][681.7ff035690700][-main-] Notice: XOTcl 2.0.0 loaded
so, loading the nsopenssl module is fine here (Ubuntu 12.04). However, furing build, i got the following message:
/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s23_srvr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
After adding -fPIC to the Makefile (generated from config), and rebuilding everything, linking was ok.
Can it be, that there was a similar problem at your site?

-g

Collapse
Posted by Dave Bauer on
Thanks Gustaf again!

I am working with a system administrator on this and I sent him your recommendations. Once we figure it out I'll let you know. This is a Fedora based distribution so its not exactly the same as yours but I'll let you know.