# Trouble compiling nginx on AIX 5.3

**URL:** <https://www.ruby-forum.com/t/trouble-compiling-nginx-on-aix-5-3/225149>\
**Category:** NGINX\
**Created:** [December 18, 2012, 4:14am UTC](https://www.ruby-forum.com/t/trouble-compiling-nginx-on-aix-5-3/225149 "2012-12-18T04:14:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 18, 2012, 4:14am UTC](https://www.ruby-forum.com/t/trouble-compiling-nginx-on-aix-5-3/225149/1 "2012-12-18T04:14:16Z")

</div>

I am having issues getting nginx v1.2.6 compiled on AIX 5.3. This is  
the first time I have tried on AIX. I am using the configure line:

./configure --without-http\_rewrite\_module --without-http\_gzip\_module  
–with-http\_ssl\_module --with-zlib=/usr/lib/

It gets so far in compiling then stops at this error:

```
    gcc -c -pipe -O -W -Wall -Wpointer-arith

```

-Wno-unused-parameter -Werror -g -I src/core -I src/event -I  
src/event/modules -I src/os/unix -I objs -o  
objs/src/os/unix/ngx\_process.o src/os/unix/ngx\_process.c  
src/os/unix/ngx\_process.c: In function `ngx\_process\_get\_status’:  
src/os/unix/ngx\_process.c:510: warning: signed and unsigned type in  
conditional expression  
src/os/unix/ngx\_process.c:517: warning: signed and unsigned type in  
conditional expression  
src/os/unix/ngx\_process.c:523: warning: signed and unsigned type in  
conditional expression  
src/os/unix/ngx\_process.c:528: warning: signed and unsigned type in  
conditional expression  
src/os/unix/ngx\_process.c:529: warning: signed and unsigned type in  
conditional expression  
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.

I also tried V1.2.4 and got the same results but a slightly different  
line number. Any help?

---

<div class="post-metadata">

**Author:** ![Earle\_Ake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/4af34b/32.png) [@Earle\_Ake](https://www.ruby-forum.com/u/Earle_Ake)\
**Post date:** [December 18, 2012, 7:54am UTC](https://www.ruby-forum.com/t/trouble-compiling-nginx-on-aix-5-3/225149/2 "2012-12-18T07:54:31Z")

</div>

Hello,

On 12/18/12 7:13 AM, Earle Ake wrote:

> I am having issues getting nginx v1.2.6 compiled on AIX 5.3. This is  
> the first time I have tried on AIX. I am using the configure line:
> 
> ./configure --without-http\_rewrite\_module --without-http\_gzip\_module  
> –with-http\_ssl\_module --with-zlib=/usr/lib/
> 
> It gets so far in compiling then stops at this error:

[…]

We don’t have an access to the system with AIX 5.3. The build works OK  
on 7.1 with gcc 4.6.0 though.

–  
Maxim K.  
+7 (910) 4293178

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.

---

<div class="post-metadata">

**Author:** ![Earle\_Ake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/4af34b/32.png) [@Earle\_Ake](https://www.ruby-forum.com/u/Earle_Ake)\
**Post date:** [December 18, 2012, 1:53pm UTC](https://www.ruby-forum.com/t/trouble-compiling-nginx-on-aix-5-3/225149/3 "2012-12-18T13:53:47Z")

</div>

Hello!

On Mon, Dec 17, 2012 at 10:13:29PM -0500, Earle Ake wrote:

> src/event/modules -I src/os/unix -I objs -o  
> src/os/unix/ngx\_process.c:529: warning: signed and unsigned type in
> 
> I also tried V1.2.4 and got the same results but a slightly different  
> line number. Any help?

Line numbers suggests there is a problem with system headers and  
your compiler - it complains about macros like WTERMSIG(). If you  
are brave enough to assume these warnings are harmless, you may  
tro using

./configure --with-cc-opt=“-Wno-error”

to compile nginx despite of the warnings.

–  
Maxim D.

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.

---

<div class="post-metadata">

**Author:** ![Earle\_Ake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/4af34b/32.png) [@Earle\_Ake](https://www.ruby-forum.com/u/Earle_Ake)\
**Post date:** [December 18, 2012, 3:40pm UTC](https://www.ruby-forum.com/t/trouble-compiling-nginx-on-aix-5-3/225149/4 "2012-12-18T15:40:40Z")

</div>

It now compiles. Can’t help the OS as that is what we are given. Will  
see  
if it ow runs. Thanks!

-Earle
