Compile NGINX with Openssl statically

Maxim Dounin mdounin at mdounin.ru
Mon Nov 25 14:02:57 UTC 2013


Hello!

On Fri, Nov 22, 2013 at 12:24:44PM -0200, Fabiano Furtado Pessoa Coelho wrote:

[...]

> ...
> making all in tools...
> make[3]: Entering directory '/tmp/compile/openssl-1.0.1e/tools'
> make[3]: Nothing to be done for 'all'.
> make[3]: Leaving directory '/tmp/compile/openssl-1.0.1e/tools'
> installing man1/asn1parse.1
> installing man1/CA.pl.1
> installing man1/ca.1
> installing man1/ciphers.1
> installing man1/cms.1
> cms.pod around line 457: Expected text after =item, not a number
> cms.pod around line 461: Expected text after =item, not a number
> cms.pod around line 465: Expected text after =item, not a number
> cms.pod around line 470: Expected text after =item, not a number
> cms.pod around line 474: Expected text after =item, not a number
> POD document had syntax errors at /usr/bin/core_perl/pod2man line 71.
> Makefile:639: recipe for target 'install_docs' failed
> make[2]: *** [install_docs] Error 1
> make[2]: Leaving directory '/tmp/compile/openssl-1.0.1e'
> objs/Makefile:1395: recipe for target
> '/tmp/compile/openssl-1.0.1e/.openssl/include/openssl/ssl.h' failed
> make[1]: *** [/tmp/compile/openssl-1.0.1e/.openssl/include/openssl/ssl.h]
> Error 2
> make[1]: Leaving directory '/tmp/compile/nginx-1.4.4'
> Makefile:8: recipe for target 'build' failed
> make: *** [build] Error 2
> 
> 
> What I am doing wrong?

Errors suggest compilation of the OpenSSL library fails as pod2man 
on your system (perl 5.18?) doesn't like one of OpenSSL's pod 
files.  Try looking, e.g., here:

https://bugs.archlinux.org/task/35868

There seems to be a patch for OpenSSL there.  Alternatively, 
do something like

cd /tmp/compile/openssl-1.0.1e && make install_sw

and then continue building nginx.  It should bypass OpenSSL's 
documentation processing this way, and nginx should be built 
without problems (not tested though).

-- 
Maxim Dounin
http://nginx.org/en/donation.html



More information about the nginx mailing list