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

Vladimir N. Indik vladimir.indik at gmail.com
Mon Apr 6 15:24:48 MSD 2009


6 апреля 2009 г. 15:13 пользователь Igor Sysoev <is at rambler-co.ru> написал:
> On Mon, Apr 06, 2009 at 03:12:42PM +0400, Vladimir N. Indik wrote:
>
>> Добрый день!
>>
>> При сборке любой версии, начиная с  0.7.44, появляются ошибки.
>>
>> bash-3.00$ ./configure --with-cc=/opt/csw/gcc3/bin/gcc
>> --with-pcre=../pcre-7.8/ --with-openssl=../openssl-0.9.8k/
>> --with-cc-opt="-I /export/home/indik/distrib/openssl-0.9.8k/include/";
>> make
>> ...
>> Undefined                       first referenced
>>  symbol                             in file
>> MD5_Update                          objs/src/http/ngx_http_file_cache.o
>> MD5_Init                            objs/src/http/ngx_http_file_cache.o
>> MD5_Final                           objs/src/http/ngx_http_file_cache.o
>> ld: fatal: Symbol referencing errors. No output written to objs/nginx
>> collect2: ld returned 1 exit status
>> *** Error code 1
>> make: Fatal error: Command failed for target `objs/nginx'
>> Current working directory /export/home/indik/distrib/nginx-0.7.48
>> *** Error code 1
>> make: Fatal error: Command failed for target `build'
>>
>> Подскажите, пожалуйста, что я делаю не так.
>
> Вот это не нужно:
>  --with-cc-opt="-I /export/home/indik/distrib/openssl-0.9.8k/include/";
>
> Что показывает configure ?
>
>
> --
> Игорь Сысоев
> http://sysoev.ru
>
>

bash-3.00$ ./configure --with-cc=/opt/csw/gcc3/bin/gcc
--with-pcre=../pcre-7.8/ --with-openssl=../openssl-0.9.8k
checking for OS
 + SunOS 5.10 sun4u
checking for C compiler ... found
 + using GNU C compiler
 + gcc version: 3.4.5
checking for gcc -pipe switch ... found
checking for gcc variadic macros ... found
checking for C99 variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for SunOS specific features
checking for sendfilev() ... found
checking for event ports ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... found
checking for kqueue ... not found
checking for crypt() ... found
checking for O_DIRECT ... not found
checking for F_NOCACHE ... not found
checking for directio() ... found
checking for statfs() ... not found
checking for statvfs() ... found
checking for zlib library ... found
checking for int size ... 4 bytes
checking for long size ... 4 bytes
checking for long long size ... 8 bytes
checking for void * size ... 4 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system endianess ... big endianess
checking for size_t size ... 4 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 4 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for strerror_r() ... found
checking for gnu style strerror_r() ... found but is not working
checking for localtime_r() ... found
checking for posix_memalign() ... not found
checking for memalign() ... found
checking for sched_yield() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for struct msghdr.msg_control ... not found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... not found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... not found

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

  nginx path prefix: "/usr/local/nginx"
  nginx binary file: "/usr/local/nginx/sbin/nginx"
  nginx configuration prefix: "/usr/local/nginx/conf"
  nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  nginx pid file: "/usr/local/nginx/logs/nginx.pid"
  nginx error log file: "/usr/local/nginx/logs/error.log"
  nginx http access log file: "/usr/local/nginx/logs/access.log"
  nginx http client request body temporary files:
"/usr/local/nginx/client_body_temp"
  nginx http proxy temporary files: "/usr/local/nginx/proxy_temp"
  nginx http fastcgi temporary files: "/usr/local/nginx/fastcgi_temp"



Без
>  --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:
src/core/ngx_md5.h:22: error: syntax error before "ngx_md5_t"
src/core/ngx_md5.h:22: warning: type defaults to `int' in declaration
of `ngx_md5_t'
src/core/ngx_md5.h:22: warning: data definition has no type or storage class
src/http/ngx_http_file_cache.c: In function `ngx_http_file_cache_create_key':
src/http/ngx_http_file_cache.c:135: error: syntax error before "md5"
src/http/ngx_http_file_cache.c:143: warning: implicit declaration of
function `MD5_Init'
src/http/ngx_http_file_cache.c:143: error: `md5' undeclared (first use
in this function)
src/http/ngx_http_file_cache.c:143: error: (Each undeclared identifier
is reported only once
src/http/ngx_http_file_cache.c:143: error: for each function it appears in.)
src/http/ngx_http_file_cache.c:153: warning: implicit declaration of
function `MD5_Update'
src/http/ngx_http_file_cache.c:160: warning: implicit declaration of
function `MD5_Final'
*** Error code 1
make: Fatal error: Command failed for target
`objs/src/http/ngx_http_file_cache.o'
Current working directory /export/home/indik/distrib/nginx-0.7.48
*** Error code 1
make: Fatal error: Command failed for target `build'

-- 
С уважением,
Индик Владимир
e-mail: vladimir.indik at gmail.com





More information about the nginx-ru mailing list