Forum OpenACS Q&A: nsssl, naviserver 4.99.11, make error

Request notifications

Collapse
Posted by Benjamin Brink on

Hi,

on ubuntu server 14.04
after quitting nsd..

cd /usr/local/
mv /usr/local/ns /usr/local/ns-old

I ran gustafn/install-ns.sh script to install a fresh naviserver 4.99.11, then

cd /usr/local/ns/modules
hg clone http://bitbucket.org/naviserver/nsssl.git
mv nsssl.git nsssl
cd nsssl
make

Make returns:

# make
gcc -O2 -fomit-frame-pointer -DNDEBUG -Wall -fPIC  -pipe  -I/usr/local/ns/include -I"/usr/local/ns/include"  -DHAVE_CONFIG_H    -c -o nsssl.o nsssl.c
nsssl.c:78:1: error: unknown type name ‘Ns_DriverClientInitProc’
 static Ns_DriverClientInitProc ClientInit;
 ^
nsssl.c: In function ‘Ns_ModuleInit’:
nsssl.c:148:20: error: ‘NS_DRIVER_VERSION_4’ undeclared (first use in this function)
     init.version = NS_DRIVER_VERSION_4;
                    ^
nsssl.c:148:20: note: each undeclared identifier is reported only once for each function it appears in
nsssl.c:158:9: error: ‘Ns_DriverInitData’ has no member named ‘clientInitProc’
     init.clientInitProc = ClientInit;
         ^
nsssl.c:162:9: error: ‘Ns_DriverInitData’ has no member named ‘protocol’
     init.protocol = "https";
         ^
nsssl.c:163:9: error: ‘Ns_DriverInitData’ has no member named ‘defaultPort’
     init.defaultPort = 443;
         ^
nsssl.c: At top level:
nsssl.c:710:50: error: unknown type name ‘NS_TLS_SSL_CTX’
 ClientInit(Tcl_Interp *interp, Ns_Sock *sockPtr, NS_TLS_SSL_CTX *ctx)
                                                  ^
make: *** [nsssl.o] Error 1

Is there a parameter needed for make, or?

Collapse
Posted by Benjamin Brink on
Hmm.. README.md states:

# SSL driver for NaviServer 4.99.12 #

So, I updated gustafn/install-ns.sh to 4.99.12 for both ns and modules, but naviserver 4.99.12 not found.

I must have caught releases in between synchronization. I'll wait a few hours..

Collapse
Posted by Benjamin Brink on
Heh, nsssl 4.99.12 was issued May 11.

What am I missing?
http://wiki.tcl.tk/nsssl page is blank..

Collapse
Posted by Benjamin Brink on
System is now working using nsssl and naviserver 4.99.11.

I downloaded the modules tar files from sourceforge per the script, and manually installed.

Collapse
Posted by Gustaf Neumann on
You have to take always the matching modules version. This is why the sourceforge archive contains both, a tar file of the main naviserver release and a tar file of the matching modues. install-ns.sh contains always the newest release. NaviServer 4.99.12 is not released yet.

Btw, starting with NaviServer 4.99.12, nsssl will be integrated with NaviServer (no separate module), which allows a tighter integration. For example, ns_http will accept http and https urls, there will be an improved crypto support, etc. The release of NaviServer 4.99.12 should happen during summer.

Collapse
Posted by Benjamin Brink on
Thanks for the clarification and news about nsssl naviserver integration planned for 4.99.12.

I follow naviserver/nsssl development and think I saw a hint about the coming integration. I was so excited that even a few weeks later the memory imprint lead me to misreading the release notes for 4.99.11! LOL.

cheers,
Ben