nginx hp-unix安装问题

阿丹0822 发布于 2015/06/11 08:39
阅读 686
收藏 0

Nginx版本:1.6.3

操作系统:HP-UX B.11.31 U ia64

configure的时候没有报错,但在make的时候总是报错,哪位大侠帮忙看看?

configure:

./configure --prefix=/arraybi/cognos/napp/soft/nginx  --with-http_ssl_module --with-pcre=../pcre-8.34 --with-zlib=../zlib-1.2.8  --with-libatomic=../libatomic_ops-7.2--with-openssl=../openssl-1.0.1j



make报错信息:

Configured for hpux-ia64-cc.
making all in crypto...
        ( echo "#ifndef MK1MF_BUILD"; \
        echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
        echo '  #define CFLAGS "cc -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM"'; \
        echo '  #define PLATFORM "hpux-ia64-cc"'; \
        echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
        echo '#endif' ) >buildinf.h
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c cryptlib.c
"cryptlib.c", line 459: warning #2128-D: loop is not reachable from preceding
          code
        while (dnum--)
        ^

        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c mem.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c mem_dbg.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c cversion.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c ex_data.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c cpt_err.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c ebcdic.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c uid.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c o_time.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c o_str.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c o_dir.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c o_fips.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c o_init.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c fips_ers.c
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -E ia64cpuid.S > ia64cpuid.s
        cc -I. -I.. -I../include  -DDSO_DLFCN -DHAVE_DLFCN_H -D_REENTRANT -Wa,--noexecstack -Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -c -o ia64cpuid.o ia64cpuid.s
error 2006: multiple source files
*** 错误退出代码 1

停止。
*** 错误退出代码 1

停止。
*** 错误退出代码 1

停止。
*** 错误退出代码 1

停止。 



加载中
0
阿丹0822
阿丹0822

去掉ssl之后,错误信息就不一样了

./configure --prefix=/arraybi/cognos/napp/soft/nginx  
--with-pcre=../pcre-8.34 --with-zlib=../zlib-1.2.8  
--with-libatomic=../libatomic_ops-7.2
make之后报的错误
cc -c  -I src/core  -I src/event  -I src/event/modules  -I src/os/unix  
-I ../pcre-8.34  -I ../zlib-1.2.8  -I ../libatomic_ops-7.2/src  -I objs \
                -o objs/src/core/nginx.o \
                src/core/nginx.c
"src/core/ngx_rbtree.h", line 73: warning #4347-D: "inline" is a keyword in
          the C99 C Standard, and its usage as an identifier will cause an
          error in C99 mode
  static ngx_inline ngx_rbtree_node_t *
         ^

"src/core/ngx_rbtree.h", line 73: error #2020: identifier "inline" is undefined
  static ngx_inline ngx_rbtree_node_t *
         ^

"src/core/ngx_rbtree.h", line 73: error #2101: "ngx_rbtree_node_t" has already
          been declared in the current scope
  static ngx_inline ngx_rbtree_node_t *
                    ^

"src/core/ngx_rbtree.h", line 73: error #2065: expected a ";"
  static ngx_inline ngx_rbtree_node_t *
                                      ^

"src/os/unix/ngx_time.h", line 16: warning #2012-D: parsing restarts here
          after previous syntax error
  typedef ngx_rbtree_key_t      ngx_msec_t;
                                          ^

"src/core/ngx_string.h", line 65: warning #4347-D: "inline" is a keyword in
          the C99 C Standard, and its usage as an identifier will cause an
          error in C99 mode
  static ngx_inline u_char *
         ^

"src/core/ngx_string.h", line 65: error #2020: identifier "inline" is undefined
  static ngx_inline u_char *
         ^

"src/core/ngx_string.h", line 65: error #2101: "u_char" has already been
          declared in the current scope
  static ngx_inline u_char *
                    ^

"src/core/ngx_string.h", line 65: error #2065: expected a ";"
  static ngx_inline u_char *
                           ^

"src/core/ngx_string.h", line 147: warning #2012-D: parsing restarts here
          after previous syntax error
  u_char *ngx_cpystrn(u_char *dst, u_char *src, size_t n);
                                                         ^

"src/core/ngx_string.h", line 148: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_pstrdup(ngx_pool_t *pool, ngx_str_t *src);
  ^

"src/core/ngx_string.h", line 149: error #2757: variable "u_char" is not a
          type name
  u_char * ngx_cdecl ngx_sprintf(u_char *buf, const char *fmt, ...);
  ^

"src/core/ngx_string.h", line 149: error #2757: variable "u_char" is not a
          type name
  u_char * ngx_cdecl ngx_sprintf(u_char *buf, const char *fmt, ...);
                                 ^

"src/core/ngx_string.h", line 150: error #2757: variable "u_char" is not a
          type name
  u_char * ngx_cdecl ngx_snprintf(u_char *buf, size_t max, const char *fmt, ...);
  ^

"src/core/ngx_string.h", line 150: error #2757: variable "u_char" is not a
          type name
  u_char * ngx_cdecl ngx_snprintf(u_char *buf, size_t max, const char *fmt, ...);
                                  ^

"src/core/ngx_string.h", line 151: error #2757: variable "u_char" is not a
          type name
  u_char * ngx_cdecl ngx_slprintf(u_char *buf, u_char *last, const char *fmt,
  ^

"src/core/ngx_string.h", line 151: error #2757: variable "u_char" is not a
          type name
  u_char * ngx_cdecl ngx_slprintf(u_char *buf, u_char *last, const char *fmt,
                                  ^

"src/core/ngx_string.h", line 151: error #2757: variable "u_char" is not a
          type name
  u_char * ngx_cdecl ngx_slprintf(u_char *buf, u_char *last, const char *fmt,
                                               ^

"src/core/ngx_string.h", line 153: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_vslprintf(u_char *buf, u_char *last, const char *fmt, va_list args);
  ^

"src/core/ngx_string.h", line 153: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_vslprintf(u_char *buf, u_char *last, const char *fmt, va_list args);
                        ^

"src/core/ngx_string.h", line 153: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_vslprintf(u_char *buf, u_char *last, const char *fmt, va_list args);
                                     ^

"src/core/ngx_string.h", line 157: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_strcasecmp(u_char *s1, u_char *s2);
                           ^

"src/core/ngx_string.h", line 157: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_strcasecmp(u_char *s1, u_char *s2);
                                       ^

"src/core/ngx_string.h", line 158: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_strncasecmp(u_char *s1, u_char *s2, size_t n);
                            ^

"src/core/ngx_string.h", line 158: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_strncasecmp(u_char *s1, u_char *s2, size_t n);
                                        ^

"src/core/ngx_string.h", line 160: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_strnstr(u_char *s1, char *s2, size_t n);
  ^

"src/core/ngx_string.h", line 160: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_strnstr(u_char *s1, char *s2, size_t n);
                      ^

"src/core/ngx_string.h", line 162: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_strstrn(u_char *s1, char *s2, size_t n);
  ^

"src/core/ngx_string.h", line 162: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_strstrn(u_char *s1, char *s2, size_t n);
                      ^

"src/core/ngx_string.h", line 163: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_strcasestrn(u_char *s1, char *s2, size_t n);
  ^

"src/core/ngx_string.h", line 163: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_strcasestrn(u_char *s1, char *s2, size_t n);
                          ^

"src/core/ngx_string.h", line 164: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n);
  ^

"src/core/ngx_string.h", line 164: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n);
                           ^

"src/core/ngx_string.h", line 164: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n);
                                       ^

"src/core/ngx_string.h", line 164: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n);
                                                     ^

"src/core/ngx_string.h", line 166: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_rstrncmp(u_char *s1, u_char *s2, size_t n);
                         ^

"src/core/ngx_string.h", line 166: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_rstrncmp(u_char *s1, u_char *s2, size_t n);
                                     ^

"src/core/ngx_string.h", line 167: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_rstrncasecmp(u_char *s1, u_char *s2, size_t n);
                             ^

"src/core/ngx_string.h", line 167: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_rstrncasecmp(u_char *s1, u_char *s2, size_t n);
                                         ^

"src/core/ngx_string.h", line 168: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_memn2cmp(u_char *s1, u_char *s2, size_t n1, size_t n2);
                         ^

"src/core/ngx_string.h", line 168: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_memn2cmp(u_char *s1, u_char *s2, size_t n1, size_t n2);
                                     ^

"src/core/ngx_string.h", line 169: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_dns_strcmp(u_char *s1, u_char *s2);
                           ^

"src/core/ngx_string.h", line 169: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_dns_strcmp(u_char *s1, u_char *s2);
                                       ^

"src/core/ngx_string.h", line 170: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_filename_cmp(u_char *s1, u_char *s2, size_t n);
                             ^

"src/core/ngx_string.h", line 170: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_filename_cmp(u_char *s1, u_char *s2, size_t n);
                                         ^

"src/core/ngx_string.h", line 172: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_atoi(u_char *line, size_t n);
                     ^

"src/core/ngx_string.h", line 173: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_atofp(u_char *line, size_t n, size_t point);
                      ^

"src/core/ngx_string.h", line 174: error #2757: variable "u_char" is not a
          type name
  ssize_t ngx_atosz(u_char *line, size_t n);
                    ^

"src/core/ngx_string.h", line 175: error #2757: variable "u_char" is not a
          type name
  off_t ngx_atoof(u_char *line, size_t n);
                  ^

"src/core/ngx_string.h", line 176: error #2757: variable "u_char" is not a
          type name
  time_t ngx_atotm(u_char *line, size_t n);
                   ^

"src/core/ngx_string.h", line 177: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_hextoi(u_char *line, size_t n);
                       ^

"src/core/ngx_string.h", line 179: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_hex_dump(u_char *dst, u_char *src, size_t len);
  ^

"src/core/ngx_string.h", line 179: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_hex_dump(u_char *dst, u_char *src, size_t len);
                       ^

"src/core/ngx_string.h", line 179: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_hex_dump(u_char *dst, u_char *src, size_t len);
                                    ^

"src/core/ngx_string.h", line 190: error #2757: variable "u_char" is not a
          type name
  uint32_t ngx_utf8_decode(u_char **p, size_t n);
                           ^

"src/core/ngx_string.h", line 191: error #2757: variable "u_char" is not a
          type name
  size_t ngx_utf8_length(u_char *p, size_t n);
                         ^

"src/core/ngx_string.h", line 192: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_utf8_cpystrn(u_char *dst, u_char *src, size_t n, size_t len);
  ^

"src/core/ngx_string.h", line 192: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_utf8_cpystrn(u_char *dst, u_char *src, size_t n, size_t len);
                           ^

"src/core/ngx_string.h", line 192: error #2757: variable "u_char" is not a
          type name
  u_char *ngx_utf8_cpystrn(u_char *dst, u_char *src, size_t n, size_t len);
                                        ^

"src/core/ngx_string.h", line 206: error #2757: variable "u_char" is not a
          type name
  uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size,
                           ^

"src/core/ngx_string.h", line 206: error #2757: variable "u_char" is not a
          type name
  uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size,
                                        ^

"src/core/ngx_string.h", line 208: error #2757: variable "u_char" is not a
          type name
  void ngx_unescape_uri(u_char **dst, u_char **src, size_t size, ngx_uint_t type);
                        ^

"src/core/ngx_string.h", line 208: error #2757: variable "u_char" is not a
          type name
  void ngx_unescape_uri(u_char **dst, u_char **src, size_t size, ngx_uint_t type);
                                      ^

"src/core/ngx_string.h", line 209: error #2757: variable "u_char" is not a
          type name
  uintptr_t ngx_escape_html(u_char *dst, u_char *src, size_t size);
                            ^

"src/core/ngx_string.h", line 209: error #2757: variable "u_char" is not a
          type name
  uintptr_t ngx_escape_html(u_char *dst, u_char *src, size_t size);
                                         ^

"src/core/ngx_string.h", line 213: error #2757: variable "ngx_rbtree_node_t"
          is not a type name
      ngx_rbtree_node_t         node;
      ^

"src/core/ngx_string.h", line 218: error #2757: variable "ngx_rbtree_node_t"
          is not a type name
  void ngx_str_rbtree_insert_value(ngx_rbtree_node_t *temp,
                                   ^

"src/core/ngx_string.h", line 219: error #2757: variable "ngx_rbtree_node_t"
          is not a type name
      ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);
      ^

"src/core/ngx_string.h", line 219: error #2757: variable "ngx_rbtree_node_t"
          is not a type name
      ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);
                               ^

"src/os/unix/ngx_files.h", line 22: error #2757: variable "u_char" is not a
          type name
      u_char                      *name;
      ^

"src/os/unix/ngx_files.h", line 43: error #2757: variable "u_char" is not a
          type name
      u_char                      *pattern;
      ^

"src/os/unix/ngx_files.h", line 117: error #2757: variable "u_char" is not a
          type name
  ngx_fd_t ngx_open_tempfile(u_char *name, ngx_uint_t persistent,
                             ^

"src/os/unix/ngx_files.h", line 122: error #2757: variable "u_char" is not a
          type name
  ssize_t ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset);
                                          ^

"src/os/unix/ngx_files.h", line 129: error #2757: variable "u_char" is not a
          type name
  ssize_t ngx_write_file(ngx_file_t *file, u_char *buf, size_t size,
                                           ^

"src/os/unix/ngx_files.h", line 144: warning #4347-D: "inline" is a keyword in
          the C99 C Standard, and its usage as an identifier will cause an
          error in C99 mode
  static ngx_inline ssize_t
         ^

"src/os/unix/ngx_files.h", line 144: error #2020: identifier "inline" is
          undefined
  static ngx_inline ssize_t
         ^

"src/os/unix/ngx_files.h", line 144: error #2101: "ssize_t" has already been
          declared in the current scope
  static ngx_inline ssize_t
                    ^

"src/os/unix/ngx_files.h", line 145: error #2065: expected a ";"
  ngx_write_fd(ngx_fd_t fd, void *buf, size_t n)
  ^

"src/os/unix/ngx_files.h", line 169: warning #2012-D: parsing restarts here
          after previous syntax error
  ngx_int_t ngx_set_file_time(u_char *name, ngx_fd_t fd, time_t s);
                                                                  ^

"src/os/unix/ngx_files.h", line 249: warning #4347-D: "inline" is a keyword in
          the C99 C Standard, and its usage as an identifier will cause an
          error in C99 mode
  static ngx_inline ngx_int_t
         ^

"src/os/unix/ngx_files.h", line 249: error #2020: identifier "inline" is
          undefined
  static ngx_inline ngx_int_t
         ^

"src/os/unix/ngx_files.h", line 249: error #2101: "ngx_int_t" has already been
          declared in the current scope
  static ngx_inline ngx_int_t
                    ^

"src/os/unix/ngx_files.h", line 250: error #2065: expected a ";"
  ngx_de_info(u_char *name, ngx_dir_t *dir)
  ^

"src/os/unix/ngx_files.h", line 289: warning #2012-D: parsing restarts here
          after previous syntax error
  ngx_int_t ngx_open_glob(ngx_glob_t *gl);
                                         ^

"src/os/unix/ngx_files.h", line 291: error #2757: variable "ngx_int_t" is not
          a type name
  ngx_int_t ngx_read_glob(ngx_glob_t *gl, ngx_str_t *name);
  ^

"src/os/unix/ngx_files.h", line 315: error #2757: variable "ngx_int_t" is not
          a type name
  ngx_int_t ngx_read_ahead(ngx_fd_t fd, size_t n);
  ^

"src/os/unix/ngx_files.h", line 328: error #2757: variable "ngx_int_t" is not
          a type name
  ngx_int_t ngx_directio_on(ngx_fd_t fd);
  ^

"src/os/unix/ngx_files.h", line 331: error #2757: variable "ngx_int_t" is not
          a type name
  ngx_int_t ngx_directio_off(ngx_fd_t fd);
  ^

"src/os/unix/ngx_files.h", line 351: error #2757: variable "u_char" is not a
          type name
  size_t ngx_fs_bsize(u_char *name);
                      ^

"src/os/unix/ngx_shmem.h", line 17: error #2757: variable "u_char" is not a
          type name
      u_char      *addr;
      ^

"src/os/unix/ngx_shmem.h", line 25: error #2757: variable "ngx_int_t" is not a
          type name
  ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
  ^

"src/os/unix/ngx_process.h", line 64: error #2757: variable "ngx_int_t" is not
          a type name
      ngx_spawn_proc_pt proc, void *data, char *name, ngx_int_t respawn);
                                                      ^

"src/os/unix/ngx_process.h", line 66: error #2757: variable "ngx_int_t" is not
          a type name
  ngx_int_t ngx_init_signals(ngx_log_t *log);
  ^

"src/os/unix/ngx_process.h", line 83: error #2757: variable "ngx_int_t" is not
          a type name
  extern ngx_int_t      ngx_process_slot;
         ^

"src/os/unix/ngx_process.h", line 84: error #2757: variable "ngx_int_t" is not
          a type name
  extern ngx_int_t      ngx_last_process;
         ^

"src/os/unix/ngx_user.h", line 20: error #2757: variable "ngx_int_t" is not a
          type name
  ngx_int_t ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt,
  ^

"src/os/unix/ngx_user.h", line 20: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt,
                                             ^

"src/os/unix/ngx_user.h", line 20: error #2757: variable "u_char" is not a
          type name
  ngx_int_t ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt,
                                                          ^

"src/os/unix/ngx_user.h", line 21: error #2757: variable "u_char" is not a
          type name
      u_char **encrypted);
      ^

"src/core/ngx_parse.h", line 16: error #2757: variable "ssize_t" is not a type
          name
  ssize_t ngx_parse_size(ngx_str_t *line);
  ^

"src/core/ngx_parse.h", line 18: error #2757: variable "ngx_int_t" is not a
          type name
  ngx_int_t ngx_parse_time(ngx_str_t *line, ngx_uint_t is_sec);
  ^

"src/core/ngx_log.h", line 45: error #2757: variable "u_char" is not a type
          name
  typedef u_char *(*ngx_log_handler_pt) (ngx_log_t *log, u_char *buf, size_t len);
          ^

"src/core/ngx_log.h", line 45: error #2757: variable "u_char" is not a type
          name
  typedef u_char *(*ngx_log_handler_pt) (ngx_log_t *log, u_char *buf, size_t len);
                                                         ^

"src/core/ngx_log.h", line 224: error #2757: variable "u_char" is not a type
          name
  ngx_log_t *ngx_log_init(u_char *prefix);
                          ^

"src/core/ngx_log.h", line 227: error #2757: variable "u_char" is not a type
          name
  u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err);
  ^

"src/core/ngx_log.h", line 227: error #2757: variable "u_char" is not a type
          name
  u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err);
                        ^

"src/core/ngx_log.h", line 227: error #2757: variable "u_char" is not a type
          name
  u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err);
                                     ^

"src/core/ngx_log.h", line 228: error #2757: variable "ngx_int_t" is not a
          type name
  ngx_int_t ngx_log_open_default(ngx_cycle_t *cycle);
  ^

Error limit reached.
100 errors detected in the compilation of "src/core/nginx.c".
Compilation terminated.
*** 错误退出代码 4

停止。
*** 错误退出代码 1

停止。



0
mickelfeng
mickelfeng

你搜下,我感觉是不是 nginx最新版本还没兼容在 HP-UX系统上面。你换成稍低的版本试试呢。

100 errors detectedinthe compilation of"src/core/nginx.c".
Compilation terminated.

阿丹0822
阿丹0822
我试了1.4.7,同样的错,感觉是cc,gcc编译器的问题
阿丹0822
阿丹0822
嗯,有道理,我试试1.4的
0
阿丹0822
阿丹0822
上面问题解决了,是cc编译器的问题,默认使用Hp自带的cc编译器,增加参数--with-cc=/usr/local/bin/gcc
,将cc路径指向gcc就可以了
mickelfeng
mickelfeng
great
返回顶部
顶部