Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322105 - www-servers/nginx-0.8.38 fails to compile
Summary: www-servers/nginx-0.8.38 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-30 16:14 UTC by Adrian Bassett
Modified: 2010-06-04 06:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nginx-0.3.38.ebuild diff -u (nginx.ebuild.patch,373 bytes, patch)
2010-05-30 16:15 UTC, Adrian Bassett
Details | Diff
nginx-0.8.38 StaticContentHandler.c patch (StaticContentHandler.c.patch,414 bytes, patch)
2010-05-30 16:16 UTC, Adrian Bassett
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Bassett 2010-05-30 16:14:33 UTC
Compile failed when upgrading nginx to 0.8.38 with all HTTP and MAIL modules enabled.

# emerge -pv nginx
[ebuild   U   ] www-servers/nginx-0.8.38  USE="aio http http-cache ipv6 pcre ssl vim-syntax -debug -libatomic" NGINX_MODULES_HTTP="access addition auth_basic autoindex browser charset dav degradation empty_gif fastcgi flv geo geoip gzip gzip_static headers_more image_filter limit_req limit_zone map memcached passenger perl proxy push random_index realip referer rewrite secure_link split_clients ssi stub_status sub upstream_ip_hash userid uwsgi xslt" NGINX_MODULES_MAIL="imap pop3 smtp" RUBY_TARGETS="ruby18"

/tmp_portage/portage/www-servers/nginx-0.8.38/work/passenger-2.2.11/ext/nginx/StaticContentHandler.c: In function 'passenger_static_content_handler':
/tmp_portage/portage/www-servers/nginx-0.8.38/work/passenger-2.2.11/ext/nginx/StaticContentHandler.c:69: error: 'ngx_http_request_t' has no member named 'zero_in_uri'
make[1]: *** [objs/addon/nginx/StaticContentHandler.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [build] Error 2
 * ERROR: www-servers/nginx-0.8.38 failed:

Following the lead at http://h264.code-shop.com/trac/discussion/1/133 I have produced a small patch and a modified ebuild as attachments (to follow).



Reproducible: Always
Comment 1 Adrian Bassett 2010-05-30 16:15:29 UTC
Created attachment 233527 [details, diff]
nginx-0.3.38.ebuild diff -u
Comment 2 Adrian Bassett 2010-05-30 16:16:33 UTC
Created attachment 233529 [details, diff]
nginx-0.8.38 StaticContentHandler.c patch
Comment 3 Jeremy Wohl 2010-06-02 01:22:25 UTC
Also patched in Passenger 2.2.13:

http://github.com/FooBarWidget/passenger/commit/745938abf5b8788891a9bd7fb590c4a2dff22d61
Comment 4 Benedikt Böhm (RETIRED) gentoo-dev 2010-06-02 12:34:24 UTC
FYI: if 2.2.13 will be released in the next few days, i'll wait for that, otherwise i'll backport the patch
Comment 5 Jeremy Wohl 2010-06-03 23:03:44 UTC
My mistake, it's actually fixed in the released 2.2.12.
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2010-06-04 06:26:37 UTC
(In reply to comment #5)
> My mistake, it's actually fixed in the released 2.2.12.
 ah, thanks for noticing! :) 0.8.38 now ships with 2.2.12