0.8.0 + fancyindex = error


#1

Hello.

I have problem during make with nginx 0.8.0 and fancyindex module.

Error that I get:

           -o 

objs/addon/nginx_fancyindex/ngx_http_fancyindex_module.o
/usr/src/nginx_fancyindex/ngx_http_fancyindex_module.c
/usr/src/nginx_fancyindex/ngx_http_fancyindex_module.c: In function
make_content_buf,: /usr/src/nginx_fancyindex/ngx_http_fancyindex_module.c:428: error:ngx_http_request_t, has no member named utf8, make[1]: *** [objs/addon/nginx_fancyindex/ngx_http_fancyindex_module.o] Error 1 make[1]: Leaving diectory/usr/src/nginx-0.8.0’
make: *** [build] Error 2

btw. fancyindex module site in wiki is not up to date, links are dead.
I got fancyindex from this site:
http://github.com/damm/nginx-fancyindex/tree/master

I’m not so skillfull to correct this ^^. And maybe small question. Is
it possible to add to nginx fancyindex functionality without compiling
with extra module?

Best Regards
Grzegorz
Sieñko


#2

On Tue, 2 Jun 2009 19:25:15 +0200, Grzegorz wrote:

I have problem during make with nginx 0.8.0 and fancyindex module.

[…]

I have still not updated the module to work with 0.8.0 – in fact I
even had not time to take a look at the new version; but I will :wink:

Error that I get […]
ngx_http_request_t, has no member namedutf8,

Looks like a changed structure member name, should be easy to fix. I
will try to look at it ASAP (now I am at work, sorry)

btw. fancyindex module site in wiki is not up to date, links are dead.
I got fancyindex from this site:
http://github.com/damm/nginx-fancyindex/tree/master

I have updated the URLs, they should be okay now.

I’m not so skillfull to correct this ^^. And maybe small question. Is
it possible to add to nginx fancyindex functionality without compiling
with extra module?

As far as I know, there are no plans to include fancyindex in the
core… but maybe I am wrong and Igor has something to said regarding
that :wink:

I have been happy adding the module when building, as I use mostly
Gentoo and I have some custom ebuilds in an overlay so the package gets
the module included when installing it.

Regards,


#3

On Tue, 2 Jun 2009 19:25:15 +0200, Grzegorz wrote:

make[1]: *** [objs/addon/nginx_fancyindex/ngx_http_fancyindex_module.o] Error 1
make[1]: Leaving diectory `/usr/src/nginx-0.8.0’
make: *** [build] Error 2

Please try with the attached patch.llllllllllll

I’m not so skillfull to correct this ^^. And maybe small question. Is
it possible to add to nginx fancyindex functionality without compiling
with extra module?

As far as I know, building Nginx with the module is the only way to
have such support :-/


#4

2009/6/6 Adrian P. de Castro removed_email_address@domain.invalid:

/usr/src/nginx_fancyindex/ngx_http_fancyindex_module.c:428: error:
ngx_http_request_t, has no member namedutf8,
make[1]: *** [objs/addon/nginx_fancyindex/ngx_http_fancyindex_module.o] Error 1
make[1]: Leaving diectory `/usr/src/nginx-0.8.0’
make: *** [build] Error 2

Please try with the attached patch.llllllllllll

Ok, with this patch it goes without any problems :slight_smile: (I’m using Ubuntu
8.04 LTS)

Thank you very much for it ;]


#5

Hi i’m getting same error with 0.8.4 and fancyindex v0.2 does this patch
work and how do I patch thanks :slight_smile:

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2571,22258#msg-22258


#6

On Wed, 11 Nov 2009 19:27:53 -0500, George wrote:

Hi i’m getting same error with 0.8.4 and fancyindex v0.2 does this patch
work and how do I patch thanks :slight_smile:

Please use Fancyindex 0.2.1 [1] when building Nginx 0.8.x – it is just
the same code as 0.2 with the patches needed for it to build fine with
the
latest releases :slight_smile:

Please let me know if you still have problems building this new version.

Cheers,

[1]
http://connectical.com/attachments/download/21/ngx-fancyindex-0.2.1.tar.bz2


#7

Thanks Adrian i used the patch for 0.2 but will try 0.2.1 next time :slight_smile:

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2571,23054#msg-23054