INEWUP'S BLOG

aix6.1安装nginx遭遇aixbug

inewup-nginx

之前在aix 5.306上成功安装nginx做反向代理。

今天准备在一台6.1的环境上搭建下看看情况,configure顺利过去,在make 的阶段报如下错误。

ld: 0711-596 SEVERE ERROR: Object objs/src/core/ngx_times.o An RLD for section 2 (.data) refers to symbol 1502, but the storage class of the symbol is not C_EXT or C_HIDEXT. ld: 0711-596 SEVERE ERROR: Object objs/src/core/ngx_cycle.o An RLD for section 2 (.data) refers to symbol 1698, but the storage class of the symbol is not C_EXT or C_HIDEXT. ld: 0711-596 SEVERE ERROR: Object objs/src/event/ngx_event.o An RLD for section 2 (.data) refers to symbol 1725, but the storage class of the symbol is not C_EXT or C_HIDEXT. ld: 0711-596 SEVERE ERROR: Object objs/src/event/ngx_event_timer.o An RLD for section 2 (.data) refers to symbol 1410, but the storage class of the symbol is not C_EXT or C_HIDEXT. ld: 0711-596 SEVERE ERROR: Object objs/src/os/unix/ngx_posix_init.o An RLD for section 2 (.data) refers to symbol 1407, but the storage class of the symbol is not C_EXT or C_HIDEXT. ld: 0711-596 SEVERE ERROR: Object objs/src/os/unix/ngx_process_cycle.o An RLD for section 2 (.data) refers to symbol 1827, but the storage class of the symbol is not C_EXT or C_HIDEXT. ld: 0711-596 SEVERE ERROR: Object objs/src/http/ngx_http.o An RLD for section 2 (.data) refers to symbol 2146, but the storage class of the symbol is not C_EXT or C_HIDEXT. collect2: error: ld returned 12 exit status make: 1254-004 The error code from the last command is 1.

Stop. make: 1254-004 The error code from the last command is 2.

Stop.

经查询ibm支持,查到如下bug

IZ98134: ASSEMBLER GENERATES INVALID OBJECT FILE WITH GCC-PRODUCED FILES APPLIES TO AIX 5300-12

ibm提供了补丁程序

Fix pack information for: Assembler generates invalid object file with gcc-pro

不过最低的aix版本要求6100 TL4 SP11

目前使用的还是6100-01,目前还不能升级,所以在这台机器上安装nginx是泡汤了。