Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367999 - www-servers/nginx 1.0.2 cache_purge module enabled - work/ngx_cache_purge-1.2/ngx_cache_purge_module.c:681: error: 'ngx_http_file_cache_node_t' has no member named 'length'
Summary: www-servers/nginx 1.0.2 cache_purge module enabled - work/ngx_cache_purge-1.2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 08:24 UTC by Thomas Stein
Modified: 2011-06-01 10:41 UTC (History)
2 users (show)

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


Attachments
the build.log (build.log,30.06 KB, text/plain)
2011-05-23 08:24 UTC, Thomas Stein
Details
diff -u nginx-1.0.2 for to build with slowfs_cache module enabled (ngingx-1.0.2-ngx-slowfs_cache.patch,485 bytes, patch)
2011-06-01 10:41 UTC, Adrian Bassett
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2011-05-19 08:24:53 UTC
Hello.

I get the following error compiling nginx-1.0.2.

/var/tmp/portage/www-servers/nginx-1.0.2/work/ngx_cache_purge-1.2/ngx_cache_purge_module.c: In function 'ngx_http_file_cache_purge':
/var/tmp/portage/www-servers/nginx-1.0.2/work/ngx_cache_purge-1.2/ngx_cache_purge_module.c:681: error: 'ngx_http_file_cache_node_t' has no member named 'length'
make[1]: *** [objs/addon/ngx_cache_purge-1.2/ngx_cache_purge_module.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-servers/nginx-1.0.2/work/nginx-1.0.2'
make: *** [build] Error 2
emake failed
 * ERROR: www-servers/nginx-1.0.2 failed (compile phase):
 *   emake failed

best regards
t.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-19 16:11:23 UTC
1) Please post your `emerge --info' output too.
2) Please post the output of `emerge -vpq www-servers/nginx' too.
3) Please attach the entire build log to this bug report.
Comment 2 Adrian Bassett 2011-05-19 18:06:13 UTC
(In reply to comment #0)
> Hello.
> 
> I get the following error compiling nginx-1.0.2.
> 
> /var/tmp/portage/www-servers/nginx-1.0.2/work/ngx_cache_purge-1.2/ngx_cache_purge_module.c:
> In function 'ngx_http_file_cache_purge':
> /var/tmp/portage/www-servers/nginx-1.0.2/work/ngx_cache_purge-1.2/ngx_cache_purge_module.c:681:
> error: 'ngx_http_file_cache_node_t' has no member named 'length'
> make[1]: *** [objs/addon/ngx_cache_purge-1.2/ngx_cache_purge_module.o] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/www-servers/nginx-1.0.2/work/nginx-1.0.2'
> make: *** [build] Error 2
> emake failed
>  * ERROR: www-servers/nginx-1.0.2 failed (compile phase):
>  *   emake failed
> 

I get a similar problem, but with slowfs_cache rather than cache_purge:

x86_64-pc-linux-gnu-gcc -c -O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -pipe -fomit-frame-pointer -I/usr/include  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /var/tmp/portage/www-servers/nginx-1.0.2/work/nginx_http_push_module-0.692/src -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/modules/perl -I src/mail \
	-o objs/addon/ngx_slowfs_cache-1.5/ngx_http_slowfs_module.o \
	/var/tmp/portage/www-servers/nginx-1.0.2/work/ngx_slowfs_cache-1.5/ngx_http_slowfs_module.c
/var/tmp/portage/www-servers/nginx-1.0.2/work/ngx_slowfs_cache-1.5/ngx_http_slowfs_module.c: In function 'ngx_http_slowfs_cache_purge':
/var/tmp/portage/www-servers/nginx-1.0.2/work/ngx_slowfs_cache-1.5/ngx_http_slowfs_module.c:778:32: error: 'ngx_http_file_cache_node_t' has no member named 'length'
make[1]: *** [objs/addon/ngx_slowfs_cache-1.5/ngx_http_slowfs_module.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-servers/nginx-1.0.2/work/nginx-1.0.2'
make: *** [build] Error 2
emake failed
 * ERROR: www-servers/nginx-1.0.2 failed (compile phase):
 *   emake failed

The following flags are successful:

[ebuild     U ] www-servers/nginx-1.0.2 [0.8.53] USE="aio http http-cache ipv6 pcre ssl vim-syntax -debug -libatomic" NGINX_MODULES_HTTP="access addition auth_basic autoindex browser cache_purge charset dav degradation empty_gif ey_balancer%* fastcgi flv geo geoip gzip gzip_static headers_more image_filter limit_req limit_zone map memcached perl proxy push random_index realip referer rewrite scgi secure_link split_clients ssi stub_status sub upload%* upstream_ip_hash userid uwsgi xslt -passenger* -slowfs_cache%" NGINX_MODULES_MAIL="imap pop3 smtp" RUBY_TARGETS="(-ruby18%*)"
Comment 3 Thomas Stein 2011-05-20 07:09:56 UTC
Hello.

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

/etc/nginx # emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.11.3-r0, 2.6.18-028stab085.2 x86_64)
=================================================================
System uname: Linux-2.6.18-028stab085.2-x86_64-Intel-R-_Xeon-R-_CPU_X5660_@_2.80GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 19 May 2011 03:00:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /sbin/rc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.syseleven.de/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS 

Build.log follows if still needed.

best regards
Thomas
Comment 4 Michael Weber (RETIRED) gentoo-dev 2011-05-23 08:10:14 UTC
(In reply to comment #1)
> 3) Please attach the entire build log to this bug report.

(In reply to comment #3)
> Build.log follows if still needed.

Yes, please.
Comment 5 Thomas Stein 2011-05-23 08:24:30 UTC
Created attachment 274373 [details]
the build.log

Build.log attachement.
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2011-05-24 05:53:02 UTC
please emerge --sync and merge again. this has already been fixed without revbump by using cache_purge 1.3 in nginx 1.0.2
Comment 7 Thomas Stein 2011-05-26 06:34:21 UTC
Hello.

Now i get:

I src/http -I src/http/modules -I src/mail \
		-o objs/addon/ngx_slowfs_cache-1.5/ngx_http_slowfs_module.o \
		/var/tmp/portage/www-servers/nginx-1.0.2/work/ngx_slowfs_cache-1.5/ngx_http_slowfs_module.c
/var/tmp/portage/www-servers/nginx-1.0.2/work/ngx_slowfs_cache-1.5/ngx_http_slowfs_module.c: In function 'ngx_http_slowfs_cache_purge':
/var/tmp/portage/www-servers/nginx-1.0.2/work/ngx_slowfs_cache-1.5/ngx_http_slowfs_module.c:778: error: 'ngx_http_file_cache_node_t' has no member named 'length'
make[1]: *** [objs/addon/ngx_slowfs_cache-1.5/ngx_http_slowfs_module.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-servers/nginx-1.0.2/work/nginx-1.0.2'
make: *** [build] Error 2
emake failed
 * ERROR: www-servers/nginx-1.0.2 failed (compile phase):
 *   emake failed

Seems slowfs_cache has a problem too.

cheers
t.
Comment 8 Adrian Bassett 2011-05-26 08:40:13 UTC
(In reply to comment #7)

> Seems slowfs_cache has a problem too..

I pointed to this issue in comment #2.

Presumably the maintainer is not seeing the problem or the bug shouldn't have been marked as 'RESOLVED FIXED'.
Comment 9 Benedikt Böhm (RETIRED) gentoo-dev 2011-05-26 08:48:56 UTC
(In reply to comment #8)
> (In reply to comment #7)
> 
> > Seems slowfs_cache has a problem too..
> 
> I pointed to this issue in comment #2.
> 
> Presumably the maintainer is not seeing the problem or the bug shouldn't have
> been marked as 'RESOLVED FIXED'.

in fact, i haven't seen comment 2 with the error in slowfs_cache. that may be, because this bug is about cache_purge and you should have opened a seperate bug for slowfs_cache.
Comment 10 Adrian Bassett 2011-06-01 10:40:44 UTC
Bug #369617 reports that a bump of the slowfs_cache module from 1.5 to 1.6 is required for nginx-1.0.2 to build with slowfs_cache in NGINX_MODULES_HTTP.

For me it also fixes the problem, which a number of people now seem to have come across.
Comment 11 Adrian Bassett 2011-06-01 10:41:43 UTC
Created attachment 275453 [details, diff]
diff -u nginx-1.0.2 for to build with slowfs_cache module enabled