Welcome! Log In Create A New Profile

Advanced

Getting errors trying to compile nginx on AIX 6.1

Posted by krg_user 
Getting errors trying to compile nginx on AIX 6.1
September 22, 2014 10:13AM
I am trying to compile nginx on AIX 6.1.

./configure --without-http_rewrite_module --with-http_ssl_module --prefix=/opt/soa/nginx/nginx-1.6.2 --with-http_stub_status_module --with-http_gzip_static_module --with-zlib=/usr/local/src/zlib-1.2.8

runs fine

checking for OS
+ AIX 1 00C56A204C00
checking for C compiler ... found
checking for gcc builtin atomic operations ... not found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... not found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for AIX specific features
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... not found
checking for statvfs() ... found
checking for dlopen() ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... not found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... not found
checking for TCP_INFO ... not found
checking for accept4() ... not 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 byte ordering ... big endian
checking for size_t size ... 4 bytes
checking for off_t size ... 4 bytes
checking for time_t size ... 4 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... not 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 POSIX semaphores ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... not found
checking for struct dirent.d_namlen ... found
checking for struct dirent.d_type ... not found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... not found
checking for getaddrinfo() ... found
checking for OpenSSL library ... found
creating objs/Makefile

Configuration summary
+ PCRE library is not used
+ using system OpenSSL library
+ md5: using OpenSSL library
+ sha1: using OpenSSL library
+ using zlib library: /usr/local/src/zlib-1.2.8

nginx path prefix: "/opt/soa/nginx/nginx-1.6.2"
nginx binary file: "/opt/soa/nginx/nginx-1.6.2/sbin/nginx"
nginx configuration prefix: "/opt/soa/nginx/nginx-1.6.2/conf"
nginx configuration file: "/opt/soa/nginx/nginx-1.6.2/conf/nginx.conf"
nginx pid file: "/opt/soa/nginx/nginx-1.6.2/logs/nginx.pid"
nginx error log file: "/opt/soa/nginx/nginx-1.6.2/logs/error.log"
nginx http access log file: "/opt/soa/nginx/nginx-1.6.2/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"

But when I run make I get errors

make -f objs/Makefile
cc -c -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/zlib-1.2.8 -I objs -o objs/src/core/nginx.o src/core/nginx.c
"src/os/unix/ngx_gcc_atomic_ppc.h", line 94.1: 1506-277 (S) Syntax error: possible missing ';' or ','?
"src/os/unix/ngx_gcc_atomic_ppc.h", line 91.8: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline.
"src/os/unix/ngx_gcc_atomic_ppc.h", line 138.12: 1506-045 (S) Undeclared identifier value.
"src/core/ngx_rbtree.h", line 75.1: 1506-277 (S) Syntax error: possible missing ';' or ','?
"src/core/ngx_rbtree.h", line 73.8: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline.
"src/core/ngx_string.h", line 19.3: 1506-273 (E) Missing type in declaration of ngx_str_t.
"src/core/ngx_string.h", line 23.5: 1506-046 (S) Syntax error.
"src/core/ngx_string.h", line 67.1: 1506-277 (S) Syntax error: possible missing ';' or ','?
"src/core/ngx_string.h", line 65.8: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline.
"src/core/ngx_string.h", line 215.3: 1506-273 (E) Missing type in declaration of ngx_str_node_t.
"src/core/ngx_string.h", line 220.1: 1506-166 (S) Definition of function ngx_str_node_t requires parentheses.
"src/core/ngx_string.h", line 220.16: 1506-276 (S) Syntax error: possible missing '{'?
"src/os/unix/ngx_files.h", line 25.34: 1506-275 (S) Unexpected text fd encountered.
"src/os/unix/ngx_files.h", line 25.5: 1506-045 (S) Undeclared identifier ngx_fd_t.
"src/os/unix/ngx_files.h", line 27.3: 1506-273 (E) Missing type in declaration of ngx_file_mapping_t.
"src/os/unix/ngx_files.h", line 117.1: 1506-166 (S) Definition of function ngx_fd_t requires parentheses.
"src/os/unix/ngx_files.h", line 117.10: 1506-276 (S) Syntax error: possible missing '{'?
"src/os/unix/ngx_files.h", line 147.18: 1506-045 (S) Undeclared identifier fd.
"src/os/unix/ngx_files.h", line 147.22: 1506-045 (S) Undeclared identifier buf.
"src/os/unix/ngx_files.h", line 147.27: 1506-045 (S) Undeclared identifier n.
"src/os/unix/ngx_files.h", line 169.43: 1506-046 (S) Syntax error.
"src/os/unix/ngx_files.h", line 193.54: 1506-277 (S) Syntax error: possible missing ')' or ','?
"src/os/unix/ngx_files.h", line 193.11: 1506-282 (S) The type of the parameters must be specified in a prototype.
"src/os/unix/ngx_files.h", line 194.48: 1506-277 (S) Syntax error: possible missing ')' or ','?
"src/os/unix/ngx_files.h", line 194.6: 1506-282 (S) The type of the parameters must be specified in a prototype.
"src/os/unix/ngx_files.h", line 219.34: 1506-277 (S) Syntax error: possible missing ')' or ','?
"src/os/unix/ngx_files.h", line 219.11: 1506-282 (S) The type of the parameters must be specified in a prototype.
"src/os/unix/ngx_files.h", line 251.1: 1506-277 (S) Syntax error: possible missing ';' or ','?
"src/os/unix/ngx_files.h", line 249.8: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline.
"src/os/unix/ngx_shmem.h", line 19.18: 1506-275 (S) Unexpected text name encountered.
"src/os/unix/ngx_shmem.h", line 22.3: 1506-273 (E) Missing type in declaration of ngx_shm_t.
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.
Re: Getting errors trying to compile nginx on AIX 6.1
September 30, 2014 10:24AM
Has anybody else run into this issue with AIX 6.1?
Re: Getting errors trying to compile nginx on AIX 6.1
September 30, 2014 01:04PM
Are you sure you got the complete correct sources? looks to me you have mixed sources.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Getting errors trying to compile nginx on AIX 6.1
October 24, 2014 09:04AM
I download the nginx-1.6.2.tar.gz from http://nginx.org/en/download.html. I can compile it fine on linux but unable to compile it on AIX 6.1
Re: Getting errors trying to compile nginx on AIX 6.1
October 24, 2014 09:14AM
Maybe this one:
+ PCRE library is not used

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Getting errors trying to compile nginx on AIX 6.1
October 24, 2014 09:17AM
I have specified --without-http_rewrite_module so that I do not have to use the PCRE libraries
Re: Getting errors trying to compile nginx on AIX 6.1
October 24, 2014 10:44AM
For debugging purposes it is better to stick to a default, when that compiles you can strip/add stuff.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Getting errors trying to compile nginx on AIX 6.1
December 03, 2015 04:11AM
I came across the same problem...

It seems the 'inline' keyword is not recognised by AIX. I changed the definition of ngx_inline in ngx_config.h to make it compile.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 323
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready