if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/x86_64 -I./linux/x86_64 -Ilinux -I./linux -Wall -march=athlon64 -pipe -O2 -MT resource.o -MD -MP -MF ".deps/resource.Tpo" -c -o resource.o resource.c; \ then mv -f ".deps/resource.Tpo" ".deps/resource.Po"; else rm -f ".deps/resource.Tpo"; exit 1; fi resource.c:478: error: 'Q_SETUSE' undeclared here (not in a function) resource.c:480: error: 'Q_SETQLIM' undeclared here (not in a function) resource.c:481: error: 'Q_GETSTATS' undeclared here (not in a function) resource.c:482: error: 'Q_RSQUASH' undeclared here (not in a function) resource.c: In function 'sys_quotactl': resource.c:538: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'u_int64_t' resource.c:539: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'u_int64_t' resource.c:540: error: 'struct dqblk' has no member named 'dqb_curblocks' resource.c:540: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'const struct xlat *' resource.c:541: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'u_int64_t' resource.c:542: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'u_int64_t' resource.c:543: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'u_int64_t' make[1]: *** [resource.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/strace-4.5.11/work/strace-4.5.11' make: *** [all] Error 2 !!! ERROR: dev-util/strace-4.5.11 failed. Call stack: ebuild.sh, line 1531: Called dyn_compile ebuild.sh, line 931: Called src_compile ebuild.sh, line 601: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant.
the undefined values Q_* are not being set in sys/quota.h, because (_LINUX_QUOTA_VERSION < 2) is false, and not because of gcc, attached patch "fixes" those definitions.
Created attachment 87771 [details, diff] conditionally compiles for !(linux quota version < 2)
a better fix was already done upstream and is available in the ~amd64 package (strace 4.5.14)
*** This bug has been marked as a duplicate of 102080 ***