Summary: | dev-util/strace-4.5.11-r1 fails due to quota issues with glibc snapshot | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexey Maximov <amax> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andres.becerra, carenas, chainsaw, ed, h.mth, halcy0n, malone, moth, sgtphou, slavon, throw_away_2002 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
new fixed ebuild
resource.c r1.13 > r1.15 diff (cvs head) Patch for masked glibcs |
Description
Alexey Maximov
2005-08-11 00:25:04 UTC
Also works as temporary solution CFLAGS="$CFLAGS -D_LINUX_QUOTA_VERSION=1" emerge strace Created attachment 65640 [details]
new fixed ebuild
new ebuild
that doesnt make any sense Q_SETUSE is only utilized if LINUX is defined ... and in that case it includes <sys/quota.h> which directly defines those Q_* macros I use aswell kernel 2.6.12-gentoo-r7 and just had a closer look at /usr/include/sys/quota.h. It sets _LINUX_QUOTA_VERSION to 2 if undefined. Those Q_* macros just get set if _LINUX_QUOTA_VERSION < 2. So that makes sense. Or did I miss something? bla, to complete $ emerge info *** You are not in the portage group. You may experience cache problems *** due to permissions preventing the creation of the on-disk cache. *** Please add this user to the portage group if you wish to use portage. Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5.20050722-r0, 2.6.12-gentoo-r7 i686) ================================================================= System uname: 2.6.12-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.12 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 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=pentium4 -march=pentium4 -pipe -fforce-addr -fforce-mem -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer -frename-registers" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=pentium4 -march=pentium4 -pipe -fforce-addr -fforce-mem -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer -frename-registers -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" LANG="de_DE@euro" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 avi berkdb bitmap-fonts cdr cups dga dts dvd dvdr dvdread fbcon firefox foomaticdb gd gif glx gnome gpm gtk2 hardenedphp imap imlib ipv6 java jpeg mad mmx mmxext mozilla mp3 mpeg mysql nls nptl nptlonly nvidia ogg oggvorbis opengl pam perl png ppds quicktime readline samba sblive sse sse2 ssl truetype truetype-fonts type1-fonts unicode usb userlocales vhosts videos vorbis wmf wxwindows x86 xface xinerama xml2 xprint xv xvid zlib video_cards_nvidia linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS it must be a new glibc thing then because the current glibc-2.3.5 does not have that macro in it $ grep _LINUX_QUOTA_VERSION /usr/include/sys/quota.h | wc 0 0 0 Created attachment 65843 [details, diff] resource.c r1.13 > r1.15 diff (cvs head) you may also have a look here: http://cvs.sourceforge.net/viewcvs.py/strace/strace/resource.c it compiles with that revision bump but it could be better to do a cvs snapshot patchset or to wait for 4.5.13 which fixes this issue. re comment 6: yes, I have unmasked glibc-2.3.5.20050722 (for gcc-4 as I recall) The proposed patch seems to work. Created attachment 66168 [details, diff]
Patch for masked glibcs
You only took half of that commit. You need the changes to configure.ac so the
#ifdef's you are using will actually get defined in the cases that need to be.
autoconf will need to be rerun after this patch.
also need to run autoheader ... anyways, fixed in portage now, thanks all I am seeing this problem with 4.5.11: [snip] then mv -f ".deps/term.Tpo" ".deps/term.Po"; else rm -f ".deps/term.Tpo"; exit 1; fi if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/i386 -I./linux/i386 -Ilinux -I./linux -Wall -Os -march=pentium-m -fomit-frame-pointer -pipe -MT time.o -MD -MP -MF ".deps/time.Tpo" -c -o time.o time.c; \ then mv -f ".deps/time.Tpo" ".deps/time.Po"; else rm -f ".deps/time.Tpo"; exit 1; fi distcc[13114] ERROR: compile /var/tmp/ccache/resource.tmp.lappie.13090.i on 192.168.1.100/1 failed 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) resource.c:544: warning: long unsigned int format, different type arg (arg 2) resource.c:545: warning: long unsigned int format, different type arg (arg 2) make[1]: *** [resource.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/strace-4.5.11/work/strace-4.5.11' make: *** [all] Error 2 Portage 2.1_pre6-r5 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-ifc i686) ================================================================= System uname: 2.6.16-ifc i686 Intel(R) Pentium(R) M processor 1.86GHz Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 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-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/ http://ftp.rhnet.is/pub/gentoo/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 3dnow X a52 alsa apache2 apm avi berkdb bitmap-fonts cdr chroot cli crypt ctype dba dri dv dvd dvdr dvdread eds emboss encode expat fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gpm gstreamer gtk gtk2 hal imlib jpeg kde kdeenablefinal libg++ libwww mad memlimit mikmod mmx motif mp3 mpeg ncurses network nls nptl ogg oggvorbis opengl pam pcre pdflib perl png posix pwdb python qt quicktime readline sdl session simplexml soap sockets spell spl sse ssl theora tiff tokenizer truetype truetype-fonts type1-fonts udev vorbis xml xmms xsl xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux userland_GNU video_cards_ati" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS cheers :) *** Bug 130524 has been marked as a duplicate of this bug. *** *** Bug 132879 has been marked as a duplicate of this bug. *** *** Bug 133392 has been marked as a duplicate of this bug. *** *** Bug 133750 has been marked as a duplicate of this bug. *** My bug got resolved as a duplicate of this one. What have I missed here? I don't see the resolution (fixed), and see two other bug reports (besides mine) in the past ten days. All three of these used glibc 2.3.6-r3, not a snapshot. Also, I can't even find any evidence that an strace 4.5.11-r1 ever existed. I see 4.5.11, 4.5.12, and 4.5.14, with 4.5.11 the latest stable version on amd64, and 4.5.12 the latest stable version on x86. (In reply to comment #16) > My bug got resolved as a duplicate of this one. > > What have I missed here? I don't see the resolution (fixed), and see two other > bug reports (besides mine) in the past ten days. > > All three of these used glibc 2.3.6-r3, not a snapshot. > > Also, I can't even find any evidence that an strace 4.5.11-r1 ever existed. > I see 4.5.11, 4.5.12, and 4.5.14, with 4.5.11 the latest stable version on > amd64, and 4.5.12 the latest stable version on x86. This bug was a while ago, when the versions in question were ~ (or even masked). 4.5.11-r1 is dead in cvs (see gentoo-x86 viewcvs). The problem is that amd64 stable has now caught up with the way things were when this bug was filed. amd64 need to mark 4.5.12 stable or backport the patch to 4.5.11. Affected arches (strace-4.5.11 latest stable, >=glibc-2.3.6 stable): amd64, mips. file a new bug to track stabilization proposals *** Bug 134107 has been marked as a duplicate of this bug. *** another problem here is that search, on typical settings does not find any bugs at all containing Q_SETUSE bugzilla regression that defaults search to not include closed bugs and handled in a different bug *** Bug 134706 has been marked as a duplicate of this bug. *** |