Forum: NGINX Problems compiling nginx-0.7.33, AIX, gcc

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
23a34fe60d7abeaaedb31774b5dbfff4?d=identicon&s=25 LOCSEI, Gabor (Guest)
on 2009-02-04 17:58
(Received via mailing list)
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)
Abbd9d5312c5d54114a96a35dc94fdb1?d=identicon&s=25 Valery Kholodkov (Guest)
on 2009-02-04 19:16
(Received via mailing list)
LOCSEI, Gabor wrote:
> src/os/unix/ngx_process.c: In function 'ngx_process_get_status':
> 2.)
>         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).
23a34fe60d7abeaaedb31774b5dbfff4?d=identicon&s=25 LOCSEI, Gabor (Guest)
on 2009-02-04 20:29
(Received via mailing list)
Hello,

On Wed, Feb 4, 2009 at 6:58 PM, Valery Kholodkov
<valery+nginxen@grid.net.ru> wrote:

> 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).

Wonderful! I was just too blind to read ;-) It worked.

For those who are interested, the previous hints should be well enough
to compile nginx on both AIX 5.3 and 6.1, both 32 and 64 bit, but of
course the configure options must be modified ;-)

I will test more functions later...

thanks
LGee
Abbd9d5312c5d54114a96a35dc94fdb1?d=identicon&s=25 Valery Kholodkov (Guest)
on 2009-02-04 20:45
(Received via mailing list)
LOCSEI, Gabor wrote:
> Hello,
>
> On Wed, Feb 4, 2009 at 6:58 PM, Valery Kholodkov
> <valery+nginxen@grid.net.ru> wrote:
>
>> 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).
>
> Wonderful! I was just too blind to read ;-) It worked.

I hope there is no toungue-in-cheek.
This topic is locked and can not be replied to.