Problems compiling nginx-0.7.33, AIX, gcc

LOCSEI, Gabor sunfish69 at gmail.com
Wed Feb 4 19:48:23 MSK 2009


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.

best regards
LGee (also on irc.freenode.net)





More information about the nginx mailing list