Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134107 - strace requires Q_SETUSE but doesn't get it
Summary: strace requires Q_SETUSE but doesn't get it
Status: RESOLVED DUPLICATE of bug 102080
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-23 06:41 UTC by moth
Modified: 2006-05-23 06:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description moth 2006-05-23 06:41:33 UTC
emerge strace dies on resource.c in a recent emerge -eav world

Superficially, the problem seems to be that strace unconditionally expects Q_SETUSE to exist for linux, but /usr/include/gentoo-multilib/amd64/sys/quota.h only provides it when _LINUX_QUOTA_VERSION < 2, and _LINUX_QUOTA_VERSION does not seem to be defined.

Here's what seems to be the pertinent spewage from emerge:

if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/x86_64 -I./linux/x86_64 -Ilinux -I./linux   -Wall -O2 -g -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
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/x86_64 -I./linux/x86_64 -Ilinux -I./linux   -Wall -O2 -g -MT signal.o -MD -MP -MF ".deps/signal.Tpo" -c -o signal.o signal.c; \
then mv -f ".deps/signal.Tpo" ".deps/signal.Po"; else rm -f ".deps/signal.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/x86_64 -I./linux/x86_64 -Ilinux -I./linux   -Wall -O2 -g -MT sock.o -MD -MP -MF ".deps/sock.Tpo" -c -o sock.o sock.c; \
then mv -f ".deps/sock.Tpo" ".deps/sock.Po"; else rm -f ".deps/sock.Tpo"; exit 1; fi
resource.c:478: error: `Q_SETUSE' undeclared here (not in a function)
resource.c:478: error: initializer element is not constant
resource.c:478: error: (near initialization for `quotacmds[4].val')
resource.c:478: error: initializer element is not constant
resource.c:478: error: (near initialization for `quotacmds[4]')
resource.c:479: error: initializer element is not constant
resource.c:479: error: (near initialization for `quotacmds[5]')
resource.c:480: error: `Q_SETQLIM' undeclared here (not in a function)
resource.c:480: error: initializer element is not constant
resource.c:480: error: (near initialization for `quotacmds[6].val')
resource.c:480: error: initializer element is not constant
resource.c:480: error: (near initialization for `quotacmds[6]')
resource.c:481: error: `Q_GETSTATS' undeclared here (not in a function)
resource.c:481: error: initializer element is not constant
resource.c:481: error: (near initialization for `quotacmds[7].val')
resource.c:481: error: initializer element is not constant
resource.c:481: error: (near initialization for `quotacmds[7]')
resource.c:482: error: `Q_RSQUASH' undeclared here (not in a function)
resource.c:482: error: initializer element is not constant
resource.c:482: error: (near initialization for `quotacmds[8].val')
resource.c:482: error: initializer element is not constant
resource.c:482: error: (near initialization for `quotacmds[8]')
resource.c:483: error: initializer element is not constant
resource.c:483: error: (near initialization for `quotacmds[9]')
resource.c:484: error: initializer element is not constant
resource.c:484: error: (near initialization for `quotacmds[10]')
resource.c:485: error: initializer element is not constant
resource.c:485: error: (near initialization for `quotacmds[11]')
resource.c:486: error: initializer element is not constant
resource.c:486: error: (near initialization for `quotacmds[12]')
resource.c:487: error: initializer element is not constant
resource.c:487: error: (near initialization for `quotacmds[13]')
resource.c:488: error: initializer element is not constant
resource.c:488: error: (near initialization for `quotacmds[14]')
resource.c:489: error: initializer element is not constant
resource.c:489: error: (near initialization for `quotacmds[15]')
resource.c:490: error: initializer element is not constant
resource.c:490: error: (near initialization for `quotacmds[16]')
resource.c:491: error: initializer element is not constant
resource.c:491: error: (near initialization for `quotacmds[17]')
resource.c:492: error: initializer element is not constant
resource.c:492: error: (near initialization for `quotacmds[18]')
resource.c:493: error: initializer element is not constant
resource.c:493: error: (near initialization for `quotacmds[19]')
resource.c:494: error: initializer element is not constant
resource.c:494: error: (near initialization for `quotacmds[20]')
resource.c:495: error: initializer element is not constant
resource.c:495: error: (near initialization for `quotacmds[21]')
resource.c:496: error: initializer element is not constant
resource.c:496: error: (near initialization for `quotacmds[22]')
resource.c:497: error: initializer element is not constant
resource.c:497: error: (near initialization for `quotacmds[23]')
resource.c: In function `sys_quotactl':
resource.c:538: warning: unsigned int format, different type arg (arg 2)
resource.c:539: warning: unsigned int format, different type arg (arg 2)
resource.c:540: error: structure has no member named `dqb_curblocks'
resource.c:541: warning: unsigned int format, different type arg (arg 2)
resource.c:542: warning: unsigned int format, different type arg (arg 2)
resource.c:543: warning: unsigned int format, different type arg (arg 2)
make[1]: *** [resource.o] Error 1
make[1]: *** Waiting for unfinished jobs....
signal.c:1431:2: warning: #warning No sys_sigreturn() for this architecture
signal.c:1432:2: warning: #warning (no problem, just a reminder :-)
make[1]: Leaving directory `/usr/local/tmp/portage/strace-4.5.11/work/strace-4.5.11'


$ emerge --info
Portage 2.0.54-r2 (default-linux/amd64/2005.0, gcc-3.3.4, glibc-2.3.6-r3, 2.6.15-gentoo-r7halloween x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7halloween x86_64 AMD Opteron(tm) Processor 240
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks noclean nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org rsync://mirror.mcs.anl.gov/pub/gentoo/ http://rsync.gentoo.com"
LDFLAGS="-ggdb"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage.local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib aim alsa arts audiofile avi berkdb bitmap-fonts bzip2 cli crypt cscope cups curl debug dga doc dri dv dvd dvdr eds emboss encode esd exif expat fbcon flac foomaticdb fortran gd gdbm gif glut gpm gstreamer gtk hardened idn imagemagick imap imlib ipv6 isdnlog jack java jikes jpeg kde lcms lua lzw lzw-tiff mad maildir matroska matrox mcal mikmod mng motif mp3 mpeg ncurses nls nocd offensive ogg openal opengl pam pcre pda pdflib perl png pppd python qt quicktime readline recode reflection ruby sdl session slang speex spell spl ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb use videos vorbis xml2 xmms xorg xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-23 06:42:54 UTC

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