Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134706 - strace-4.5.11 won't compile because of newer linux quota version
Summary: strace-4.5.11 won't compile because of newer linux quota version
Status: RESOLVED DUPLICATE of bug 102080
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-28 17:39 UTC by Carlo Marcelo Arenas Belon
Modified: 2006-05-29 01:49 UTC (History)
0 users

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


Attachments
conditionally compiles for !(linux quota version < 2) (strace-4.5.11-quota.patch,1.07 KB, patch)
2006-05-28 18:14 UTC, Carlo Marcelo Arenas Belon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlo Marcelo Arenas Belon 2006-05-28 17:39:23 UTC
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.
Comment 1 Carlo Marcelo Arenas Belon 2006-05-28 18:12:50 UTC
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.
Comment 2 Carlo Marcelo Arenas Belon 2006-05-28 18:14:43 UTC
Created attachment 87771 [details, diff]
conditionally compiles for !(linux quota version < 2)
Comment 3 Carlo Marcelo Arenas Belon 2006-05-28 20:23:22 UTC
a better fix was already done upstream and is available in the ~amd64 package (strace 4.5.14)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-29 01:49:24 UTC

*** This bug has been marked as a duplicate of 102080 ***