Re: Building rds-json-nginx-module

44 views
Skip to first unread message

agentzh

unread,
Aug 15, 2012, 6:46:56 PM8/15/12
to Manoj Ganesan, openresty-en
Hello!

On Wed, Aug 15, 2012 at 2:40 PM, Manoj Ganesan wrote:
> Hello,
>
> I'm a first time user of nginx, and am trying to add your module into an
> nginx installation on my mac os, but keep running into this problem.
>

Which version of nginx are you using? Are you using the official
release tarballs of nginx from this site?

http://nginx.org/

Also, which version of ngx_rds_json are you using?

> When I do a ./configure ... --add-module=/path/to/rds-json-nginx-module, I
> get the following error:
>
> adding module in /Users/mganesan/workspace/nginx/rds-json-nginx-module
> : command not foundkspace/nginx/rds-json-nginx-module/config: line 5:
> was configured_json_filter_module
>
> So, I went ahead and removed line 5 (which is an empty line), and the
> configure went through. But the next step (make) broke with the following
> error:
>
> ', needed by `objs/addon/src/ngx_http_rds_json_filter_module.o'.
> Stop.s-json-nginx-module/src/ngx_http_rds_json_handler.h
> make[1]: *** Waiting for unfinished jobs....
> make: *** [build] Error 2
>
> Any idea why this might be? Has this anything to do with trying to run this
> on a mac?
>

I periodically build my Nginx modules with recent Nginx official
releases on my Macbook Air and I've never seen such error messages.
And your error messages look incomplete, maybe due to copy&paste
mistake?

BTW, I'm cc'ing the openresty-en mailing list:
https://groups.google.com/group/openresty-en

Best regards,
-agentzh

Manoj Ganesan

unread,
Aug 16, 2012, 11:38:12 AM8/16/12
to agentzh, openresty-en
Hey! Thanks so much for replying. 

On Wed, Aug 15, 2012 at 5:46 PM, agentzh <age...@gmail.com> wrote:
Hello!

On Wed, Aug 15, 2012 at 2:40 PM, Manoj Ganesan wrote:
> Hello,
>
> I'm a first time user of nginx, and am trying to add your module into an
> nginx installation on my mac os, but keep running into this problem.
>

Which version of nginx are you using? Are you using the official
release tarballs of nginx from this site?

    http://nginx.org/

I'm using nginx-1.2.3
 
Also, which version of ngx_rds_json are you using?

 I just cloned the repo. Not clear which version it refers to though. 

> When I do a ./configure ... --add-module=/path/to/rds-json-nginx-module, I
> get the following error:
>
> adding module in /Users/mganesan/workspace/nginx/rds-json-nginx-module
> : command not foundkspace/nginx/rds-json-nginx-module/config: line 5:
>  was configured_json_filter_module
>
> So, I went ahead and removed line 5 (which is an empty line), and the
> configure went through. But the next step (make) broke with the following
> error:
>
> ', needed by `objs/addon/src/ngx_http_rds_json_filter_module.o'.
> Stop.s-json-nginx-module/src/ngx_http_rds_json_handler.h
> make[1]: *** Waiting for unfinished jobs....
> make: *** [build] Error 2
>
> Any idea why this might be? Has this anything to do with trying to run this
> on a mac?
>

I periodically build my Nginx modules with recent Nginx official
releases on my Macbook Air and I've never seen such error messages.
And your error messages look incomplete, maybe due to copy&paste
mistake?

Did you mean the configure error, or the make error? It felt to me that the previous lines were irrelevant, hence I did not copy paste them. Here's one line before the build error in make. 

...
gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I/usr/local/include -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
                -o objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
                src/http/modules/ngx_http_upstream_keepalive_module.c
', needed by `objs/addon/src/ngx_http_rds_json_filter_module.o'.  Stop.s-json-nginx-module/src/ngx_http_rds_json_handler.h
make: *** [build] Error 2 
 
BTW, I'm cc'ing the openresty-en mailing list:
https://groups.google.com/group/openresty-en

Best regards,
-agentzh

Thanks again! 
Manoj

agentzh

unread,
Aug 16, 2012, 1:42:50 PM8/16/12
to Manoj Ganesan, openresty-en
Hello!

On Thu, Aug 16, 2012 at 8:38 AM, Manoj Ganesan <manoj....@gmail.com> wrote:
> Did you mean the configure error, or the make error?

Both, if any.

> It felt to me that the
> previous lines were irrelevant, hence I did not copy paste them. Here's one
> line before the build error in make.
>
> ...
> gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
> -I/usr/local/include -I src/core -I src/event -I src/event/modules -I
> src/os/unix -I objs -I src/http -I src/http/modules \
> -o
> objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
> src/http/modules/ngx_http_upstream_keepalive_module.c
> ', needed by `objs/addon/src/ngx_http_rds_json_filter_module.o'.
> Stop.s-json-nginx-module/src/ngx_http_rds_json_handler.h
> make: *** [build] Error 2
>

Are you running "make -jN"? Can you just run make without the -j
option? The first line is above is still irrelavent. Your error
message pasted here still seems truncated, that is, I cannot see the
complete gcc error messages, just a half or so of the message.

You are recommended to run "make > /tmp/out.log 2>&1" on your side and
put the original out.log file as attachment or somewhere viewable on
the web.

Also, the version of your Mac OS X system may also helpful.

Best regards,
-agentzh
Reply all
Reply to author
Forward
0 new messages