4 messages in ru.sysoev.nginxRe: Problems compiling nginx-0.7.33, ...
FromSent OnAttachments
LOCSEI, GaborFeb 4, 2009 8:48 am 
Valery KholodkovFeb 4, 2009 9:58 am 
LOCSEI, GaborFeb 4, 2009 11:21 am 
Valery KholodkovFeb 4, 2009 11:38 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Problems compiling nginx-0.7.33, AIX, gccActions...
From:Valery Kholodkov (vale@grid.net.ru)
Date:Feb 4, 2009 9:58:28 am
List:ru.sysoev.nginx

LOCSEI, Gabor wrote:

Hello,

I would like to report my efforts to compile nginx in the following environment: AIX 6.1, gcc 4.2.4

./configure --prefix=/usr/local --user=nginx --group=nginx --without-http_rewrite_module --with-openssl=/usr/lib/ --with-zlib=/usr/lib/

1.) src/os/unix/ngx_process.c: In function 'ngx_process_get_status': src/os/unix/ngx_process.c:497: warning: implicit declaration of function 'WCOREDUMP'

I had to add the following to "./src/os/unix/ngx_process.c" because AIX is probably unaware of WCOREDUMP:

#ifndef WCOREDUMP #define WCOREDUMP #endif

2.) src/http/modules/ngx_http_gzip_filter_module.c:11:18: error: zlib.h: No such file or directory ...

I had to install the zlib-devel package from the IBM Linux toolbox (GPL software package collection)

3.) But now I'm really stuck with this:

cd /usr/lib/ && make clean && CFLAGS="-O2 -fomit-frame-pointer -pipe " CC="gcc" ./configure && make libz.a make: Cannot find a rule to create target clean from dependencies. Stop. make: The error code from the last command is 2.

Any ideas why it would want to make clean in /usr/lib ? ;-)

Please let me know which file(s) do you need to debug this. Obviously the Makefiles are generated wrong. Unfortunately I don't really know C, and I cannot debug this myself.

I think options --with-openssl=/usr/lib/ and --with-zlib=/usr/lib/ are not needed, since they specify path to _sources_ of respective libraries and you have already the _headers_ of zlib (I'm not sure about openssl).