Проблема с компиляцией в Solaris 11 sparc

sebor nginx-forum at nginx.us
Fri Feb 14 14:33:40 UTC 2014


Всем привет.
Не получается скомпилить nginx на solaris 11 с исходниками openssl.
Система следующая: uname -a
SunOS web-srv 5.11 11.1 sun4v sparc sun4v
Делаю так:
./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
Сыплется много предупреждений:
cc: Warning: -xarch=v8plus is deprecated, use -m32 -xarch=sparc instead
Ближе к завершению:
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
И в конце:
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

Если компилить без исходников openssl (т.е. configure убрать
--with-openssl=../openssl-1.0.1f), то компиляция завершается успешно. На
solaris 11 системный OpenSSL 1.0.0j 10 May 2012.

Есть идеи? Может надо в openssl поправить исходники для нормальной
прекомпиляции nginx'ом?
Могу предоставить доп. инфу( в виде файлов obs/Makefile, objs/autoconf.err и
т.п.), если понадобится.

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,247559,247559#msg-247559



Подробная информация о списке рассылки nginx-ru