Nginx + mod_scgi compile help under FreeBSD

Hi!
I would like to use mod_scgi under FreeBSD. I’ve modified distfile,
Makefile
for using tip.tar.gz as module and using the correct size, md5 and
sha256
checksum values. On compile I got the following error (extract):

“cc -c -pipe -g -DNGX_DEBUG_MALLOC -g -I /usr/local/include -I src/core
-I
src/event -I src/event/modules -I src/os/unix -I
/usr/local/include/libxml2 -I /usr/local/include -I objs -I src/http
-I
src/http/modules -I src/http/modules/perl -I src/mail -o
objs/addon/src/ngx_http_scgi_module.o
/root/src/nginx/nginx/work/mod_scgi-b466baa5fcdb/src/ngx_http_scgi_module.c
/root/src/nginx/nginx/work/mod_scgi-b466baa5fcdb/src/ngx_http_scgi_module.c:201:
error: ‘ngx_garbage_collector_temp_handler’ undeclared here (not in a
function)
/root/src/nginx/nginx/work/mod_scgi-b466baa5fcdb/src/ngx_http_scgi_module.c:
In function ‘ngx_http_scgi_process_header’:
/root/src/nginx/nginx/work/mod_scgi-b466baa5fcdb/src/ngx_http_scgi_module.c:878:
error: too few arguments to function ‘ngx_http_parse_header_line’”

I’ve tried with the following shell script but got the same error:

“cd /usr/ports/www/nginx
make clean
make extract patch
ln -s /root/src/nginx/mod_scgi-b466baa5fcdb /usr/ports/www/nginx/work/
make
CONFIGURE_ARGS=–add-module=/usr/ports/www/nginx/work/mod_scgi-b466baa5fcdb”

Any idea what errors mean or anyone might have a working ports folder
for
nginx+mod_scgi?

Thanks!

Bye,
a

Any idea what errors mean or anyone might have a working ports folder for
nginx+mod_scgi?

As stated here:
http://wiki.nginx.org/NginxNgxSCGIModule
mod_scgi doesn’t build against newer nginx versions.

I fixed it for my “proxy vs fastcgi vs scgi vs wsgi” tests, and I should
have working version laying around somewhere, but I would highly
discourage
you from using module, which isn’t maintained by its author, or anyone
else
for that matter… But if you really want to give it a try, just mail
me.

Best regards,
Piotr S. < [email protected] >

Artifex Maximus ha scritto:

Hi!

I would like to use mod_scgi under FreeBSD. I’ve modified distfile,
Makefile for using tip.tar.gz as module and using the correct size, md5
and sha256 checksum values. On compile I got the following error (extract):

mod_scgi does not compile on recent Nginx versions.
I wrote this module some time ago, just to learn some Nginx internals.

I do not use it, and so I do not maintain it, sorry.

But the module is not complex, so it should not hard for some other
developer to adopt it; I hope some day Igor will include SCGI support in
Nginx core.

Regards Manlio

On Thu, Sep 3, 2009 at 1:35 PM, Piotr S.
[email protected]wrote:

Any idea what errors mean or anyone might have a working ports folder for

nginx+mod_scgi?

As stated here:
http://wiki.nginx.org/NginxNgxSCGIModule
mod_scgi doesn’t build against newer nginx versions.

My mistake, thanks.

I fixed it for my “proxy vs fastcgi vs scgi vs wsgi” tests, and I should
have working version laying around somewhere, but I would highly discourage
you from using module, which isn’t maintained by its author, or anyone else
for that matter… But if you really want to give it a try, just mail me.

Please send your fixed version because my other app is using scgi only
so I
have no other choice unfortunately. But if you known any working scgi
implementation for nginx please let me known.

Bye,
a

On Thu, Sep 3, 2009 at 1:49 PM, Manlio P.
[email protected]wrote:

I wrote this module some time ago, just to learn some Nginx internals.

Thank you and Piotr for pointing me out this sticky RTFM situation. :slight_smile:
I
haven’t read indeed.

But the module is not complex, so it should not hard for some other

developer to adopt it; I hope some day Igor will include SCGI support in

Nginx core.

I hope so as well.

Bye,
a

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs