Прблема со сборкой nginx 0.7.48 под solaris 10

Igor Sysoev is at rambler-co.ru
Mon Apr 6 17:19:14 MSD 2009


On Mon, Apr 06, 2009 at 05:07:24PM +0400, Vladimir N. Indik wrote:

> 6 апреля 2009 г. 16:09 пользователь Igor Sysoev <is at rambler-co.ru> написал:
> > On Mon, Apr 06, 2009 at 03:46:36PM +0400, Vladimir N. Indik wrote:
> >
> >> 6 апреля 2009 г. 15:36 пользователь Igor Sysoev <is at rambler-co.ru> написал:
> >> > On Mon, Apr 06, 2009 at 03:24:48PM +0400, Vladimir N. Indik wrote:
> >> >
> >> >> Configuration summary
> >> >>   + using PCRE library: ../pcre-7.8/
> >> >>   + using OpenSSL library: ../openssl-0.9.8k
> >> >>   + md5: using OpenSSL library
> >> >>   + sha1 library is not used
> >> >>   + using system zlib library
> >> >
> >> >> Без
> >> >> >  --with-cc-opt="-I /export/home/indik/distrib/openssl-0.9.8k/include/";
> >> >> говорит
> >> >> ...
> >> >> In file included from src/http/ngx_http_file_cache.c:10:
> >> >> src/core/ngx_md5.h:16:25: openssl/md5.h: No such file or directory
> >> >> In file included from src/http/ngx_http_file_cache.c:10:
> >> >
> >> > А как выглядит строка эта строка с gcc ?
> >> >
> >> >
> >> > --
> >> > Игорь Сысоев
> >> > http://sysoev.ru
> >> >
> >> >
> >>
> >> ...
> >> /opt/csw/gcc3/bin/gcc -c -mcpu=v9 -O -pipe  -O -W -Wall
> >> -Wpointer-arith -Wno-unused-parameter -Wno-unused-function
> >> -Wunused-variable -Wunused-value -Werror -g -I src/core  -I src/event
> >> -I src/event/modules  -I src/os/unix  -I ../pcre-7.8/  -I objs -I
> >> src/http  -I src/http/modules \
> >>         -o objs/src/http/ngx_http_file_cache.o \
> >>         src/http/ngx_http_file_cache.c
> >> In file included from src/http/ngx_http_file_cache.c:10:
> >> ...
> >
> > Странно, у меня на Солярисе это выглядит как
> >       -I ../pcre-7.8/ -I ../openssl-0.9.8k/include -I objs
> >
> >
> > --
> > Игорь Сысоев
> > http://sysoev.ru
> >
> >
> 
> При указании в ./configure опции --with-http_ssl_module "-I
> ../openssl-0.9.8k/include" появляется и сборка проходит это место.

Теперь понял, в чём проблема - я собирал --with-http_ssl_module.

> Далее вываливается с другой ошибкой:
> ...
> making all in crypto/des...
> cc -I.. -I../.. -I../../include -DDSO_DLFCN -DHAVE_DLFCN_H
> -xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN
> -DBN_DIV2W  -c  des_lib.c
> "des_locl.h", line 80: cannot find include file: <math.h>
> cc: acomp failed for des_lib.c
> *** Error code 2
> make: Fatal error: Command failed for target `des_lib.o'
> Current working directory /export/home/indik/distrib/openssl-0.9.8k/crypto/des
> *** Error code 1
> The following command caused the error:
> target=all; [ -n "objects  md2 md4 md5 sha hmac ripemd  des aes rc2
> rc4 idea bf cast  bn ec rsa dsa ecdsa dh ecdh dso engine  buffer bio
> stack lhash rand err  evp asn1 pem x509 x509v3 conf txt_db pkcs7
> pkcs12 comp ocsp ui krb5  store pqueue" ] && for i in objects  md2 md4
> md5 sha hmac ripemd  des aes rc2 rc4 idea bf cast  bn ec rsa dsa ecdsa
> dh ecdh dso engine  buffer bio stack lhash rand err  evp asn1 pem x509
> x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5  store pqueue ; do
> (cd $i && echo "making $target in crypto/$i..." &&  make -e TOP=../..
> DIR=$i INCLUDES='-I.. -I../.. -I../../include' $target ) || exit 1;
> done;
> make: Fatal error: Command failed for target `subdirs'
> Current working directory /export/home/indik/distrib/openssl-0.9.8k/crypto
> *** Error code 1
> make: Fatal error: Command failed for target `build_crypto'
> Current working directory /export/home/indik/distrib/openssl-0.9.8k
> *** Error code 1
> make: Fatal error: Command failed for target `../openssl-0.9.8k/libssl.a'
> Current working directory /export/home/indik/distrib/nginx-0.7.48
> *** Error code 1
> make: Fatal error: Command failed for target `build'

По этому поводу сказать ничего не могу: это собрка собственно OpenSSL.
Скорее всего, нужно добавить

--with-openssl-opt=

специфичные для Соляриса.


-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list