On Thursday 26 July 2012 07:52:20 DenisTRUFFAUT wrote:
Hi,
SPDY compilation fails for me, due to some warnings.
The compilation script which fails could be seen here, syntaxically
colored : Nginx SPDY Compilation Fail - Pastebin.com
cc1: warnings being treated as errors
src/http/ngx_http_request.c: In function
‘ngx_http_ssl_handshake_handler’:
src/http/ngx_http_request.c:635: error: implicit declaration of function
‘SSL_get0_next_proto_negotiated’
make[1]: *** [objs/src/http/ngx_http_request.o] Erreur 1
make[1]: quittant le répertoire « /usr/local/src/nginx-1.3.2 »
make: *** [build] Erreur 2
On Thursday 26 July 2012 17:13:27 DenisTRUFFAUT wrote:
cc1: warnings being treated as errors
src/http/ngx_http_request.c: In function
‘ngx_http_ssl_handshake_handler’:
src/http/ngx_http_request.c:635: error: implicit declaration of function
‘SSL_get0_next_proto_negotiated’
make[1]: *** [objs/src/http/ngx_http_request.o] Erreur 1
make[1]: quittant le répertoire « /usr/local/src/nginx-1.3.2 »
make: *** [build] Erreur 2
The version of the OpenSSL library must be 1.0.1 or above. Older
versions do
not support the Next Protocol Negations extension which is required for
SPDY.
objs/src/http/ngx_http_request.o: In function ngx_http_ssl_handshake_handler': /usr/local/src/nginx-1.3.4/src/http/ngx_http_request.c:643: undefined reference to SSL_get0_next_proto_negotiated’
objs/src/http/modules/ngx_http_ssl_module.o: In function ngx_http_ssl_merge_srv_conf': /usr/local/src/nginx-1.3.4/src/http/modules/ngx_http_ssl_module.c:469: undefined reference to SSL_CTX_set_next_protos_advertised_cb’
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/usr/local/src/nginx-1.3.4’
make: *** [build] Error 2
This time, I have installed open ssl 1.0.1.
Is there something else required to compile ?
(It is another machine)
11:41:41|root@SkeetMeet-1> openssl version
OpenSSL 1.0.1c 10 May 2012
do you have installed the libraries too? On ubuntu (for example) you
need to install the package libssl-dev too. The binaries are not enough
in this case.
1] apt-get remove open-ssl, then compile the 1.0.1c ?
2] specify the the lib path in the configure ?
3] ?
–
I succeed to compile it, but it was another machine, another NginX
version
and another SPDY patch, and I don’t really know what are the differences
that could produce these errors. I just know OpenSSL version was the
same :
1.0.1c. And it was installed in the same way, on a 0.9xx-something :
OPENSSL_VERSION=‘1.0.1c’
cd /usr/local/src
sudo rm -fr openssl-$OPENSSL_VERSION
sudo wget -O openssl-$OPENSSL_VERSION.tar.gz
“http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz”
sudo tar -xvzf openssl-$OPENSSL_VERSION.tar.gz
sudo rm -fr openssl-$OPENSSL_VERSION.tar.gz
cd openssl-$OPENSSL_VERSION
sudo ./config threads
zlib
–prefix=/usr
&& sudo make && sudo make install && cd
/usr/local/src
sudo rm -fr openssl-$OPENSSL_VERSION
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.