Problems compiling nginx-0.7.33, AIX, gcc
Valery Kholodkov
valery+nginxen at grid.net.ru
Wed Feb 4 20:58:51 MSK 2009
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).
--
Regards,
Valery Kholodkov
More information about the nginx
mailing list