Error Installing Passenger with nginx

I’ve been trying to set up my ROR app on AIX 5.3 with Passenger. Tried
all the different options. Till last night, I was getting below:

Commands:
cd /path to my app
passenger start

src/os/unix/ngx_errno.c: In function ‘ngx_strerror’:
src/os/unix/ngx_errno.c:36:43: error: expected expression before ‘)’
token
src/os/unix/ngx_errno.c: In function ‘ngx_strerror_init’:
src/os/unix/ngx_errno.c:57:24: error: invalid type argument of unary
‘*’ (have
long unsigned int’)
src/os/unix/ngx_errno.c:64:37: error: expected expression before ‘;’
token
gmake[1]: *** [objs/src/os/unix/ngx_errno.o] Error 1
gmake[1]: Leaving directory `/tmp/abaziz-passenger-standalone-860288/
nginx-1.0.

I went in and manually changed file called ngx_auto_config.h, line 107
to:

#ifndef NGX_SYS_NERR
#define NGX_SYS_NERR
to
#ifndef NGX_SYS_NERR
#define NGX_SYS_NERR 1

This seem to have fixed the error. I want to confirm if this is a known
an issue with nginx code?

Moving on - I’m now hitting different problems when I do the command:
passenger-install-nginx-module.


config.status: executing depfiles commands
rm -f ext/libev//libev.la
cd ext/libev/ && make libev.la
/bin/sh ./libtool --tag=CC --mode=compile gcc -
DHAVE_CONFIG_H -I.
-g -O2 -O3 -c -o ev.lo ev.c
gcc -DHAVE_CONFIG_H -I. -g -O2 -O3 -c ev.c -o ev.o
ev.c: In function ‘ev_invoke_pending’:
ev.c:1997:9: error: ‘ANPENDING’ has no member named ‘reqevents’
ev.c: In function ‘ev_clear_pending’:
ev.c:2465:15: error: ‘ANPENDING’ has no member named ‘reqevents’
ev.c: In function ‘ev_io_start’:
ev.c:2506:3: error: ‘ev_io’ has no member named ‘reqevents’
ev.c:2514:25: error: ‘ev_io’ has no member named ‘reqevents’
ev.c:2515:4: error: ‘ev_io’ has no member named ‘reqevents’
ev.c: In function ‘ev_embed_start’:
ev.c:3387:5: error: ‘ev_io’ has no member named ‘reqevents’
ev.c: In function ‘ev_once’:
ev.c:3567:7: error: ‘ev_io’ has no member named ‘reqevents’
make: 1254-004 The error code from the last command is 1.

Any help would be welcome.

Thanks,
Aziz

On Thu, Aug 18, 2011 at 09:50:07AM +0200, Abdul A. wrote:

src/os/unix/ngx_errno.c: In function ‘ngx_strerror_init’:
I went in and manually changed file called ngx_auto_config.h, line 107
an issue with nginx code?
-g -O2 -O3 -c -o ev.lo ev.c
ev.c:3387:5: error: ‘ev_io’ has no member named ‘reqevents’
ev.c: In function ‘ev_once’:
ev.c:3567:7: error: ‘ev_io’ has no member named ‘reqevents’
make: 1254-004 The error code from the last command is 1.

You should try to build libev separately.

Download original source from
http://dist.schmorp.de/libev/Attic/libev-3.9.tar.gz, build
and install libev. Then try to rebuild nginx with installed
libev.


Sergey A. Osokin
[email protected]
[email protected]

Sergey A. Osokin wrote in post #1017276:

On Thu, Aug 18, 2011 at 09:50:07AM +0200, Abdul A. wrote:

src/os/unix/ngx_errno.c: In function ‘ngx_strerror_init’:
I went in and manually changed file called ngx_auto_config.h, line 107
an issue with nginx code?
-g -O2 -O3 -c -o ev.lo ev.c
ev.c:3387:5: error: ‘ev_io’ has no member named ‘reqevents’
ev.c: In function ‘ev_once’:
ev.c:3567:7: error: ‘ev_io’ has no member named ‘reqevents’
make: 1254-004 The error code from the last command is 1.

You should try to build libev separately.

Download original source from
http://dist.schmorp.de/libev/Attic/libev-3.9.tar.gz, build
and install libev. Then try to rebuild nginx with installed
libev.


Sergey A. Osokin
[email protected]
[email protected]

Thanks for the pointer.

I’ve been successfull in building libev separately. How to configure
nginx (its actually passenger I believe) to use the installed copy?

Many Thanks,
Aziz

On Thu, Aug 18, 2011 at 03:16:43PM +0200, Abdul A. wrote:

nginx (its actually passenger I believe) to use the installed copy?
Patch for passenger-3.0.8 included.

Also, I changed default prefix to libev library from “/usr” to
“/usr/local”.
You should change these prefixes to right path.