Compile error with OpenSSL source on Solaris 11 sparc
sebor
nginx-forum at nginx.us
Fri Feb 14 14:47:48 UTC 2014
Hi.
My system: uname -a:
SunOS web-srv 5.11 11.1 sun4v sparc sun4v
My configure line:
/configure --prefix=/opt/nginx --group=webservd --user=webservd
--with-cc-opt='-I ../pcre-8.34' --with-cpu-opt=sparc64
--with-pcre=../pcre-8.34 --with-zlib=../zlib-1.2.8 --with-http_sub_module
--with-http_gzip_static_module --with-http_ssl_module
--with-http_gzip_static_module --with-http_stub_status_module
--with-openssl=../openssl-1.0.1f --with-http_dav_module
--with-http_flv_module --with-cc=/opt/solarisstudio12.3/bin/cc
--with-cc-opt=-m64 --with-ld-opt=-m64
Pours a lot of warnings:
cc: Warning: -xarch=v8plus is deprecated, use -m32 -xarch=sparc instead
Closer to the end:
ld: warning: file ../openssl-1.0.1f/.openssl/lib/libssl.a(s23_meth.o): wrong
ELF class: ELFCLASS32
ld: warning: file ../openssl-1.0.1f/.openssl/lib/libcrypto.a(cryptlib.o):
wrong ELF class: ELFCLASS32
And finally:
ld: fatal: symbol referencing errors. No output written to objs/nginx
*** Error code 2
make: Fatal error: Command failed for target `objs/nginx'
Current working directory /export/home/user/nginx-1.5.10
*** Error code 1
make: Fatal error: Command failed for target `build
If I compile without openssl source (ie remove configure - with-openssl =
../openssl-1.0.1f), then the compilation succeeds. On solaris 11 system
OpenSSL 1.0.0j May 10, 2012.
Any ideas? May need to fix openssl source for normal precompile by nginx?
I can provide additional information(in the form of files obs / Makefile,
objs / autoconf.err etc.), if necessary.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247561,247561#msg-247561
More information about the nginx
mailing list