if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/i386 -I./linux/i386 -Ilinux -I./linux -Wall -march=i686 -pipe -fomit-frame-pointer -O2 -ftracer -ffast-math -fweb -frename-registers -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: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]: Leaving directory `/var/tmp/portage/strace-4.5.11-r1/work/strace-4.5.11' make: *** [all] Error 2 !!! ERROR: dev-util/strace-4.5.11-r1 failed. !!! Function src_compile, Line 556, Exitcode 2 localhost ~ # emerge info 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 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.4-r1, 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.91.0.2 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=" -march=i686 -pipe -fomit-frame-pointer -O2 -ftracer -ffast-math -fweb -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/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS=" -march=i686 -pipe -fomit-frame-pointer -O2 -ftracer -ffast-math -fweb -frename-registers -fvisibility-inlines-hidden" DISTDIR="/media/hda8/gentoo/distfiles" FEATURES="autoconfig buildpkg ccache distlocks prelink sandbox sfperms strict strip" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="ru_RU.UTF-8" LDFLAGS=" -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags " LINGUAS="ru" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl acpi alsa apache2 bash-completion bzip2 crypt cups curl dbus dvdr exif firefox gif gnome gpm gsm gtk2 hal javascript jpeg logrotate mad mailwrapper mmx moznocompose moznoirc moznomail mp3 ncurses nls nptl oggvorbis opengl oss pic png readline samba slang socks5 sse ssl svg tiff truetype unicode xprint xv zlib linguas_ru userland_GNU kernel_linux elibc_glibc"Unset: ASFLAGS, CTARGET, LC_ALL localhost ~ # gcc -v Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/specs Configured with: /var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8) localhost ~ # localhost ~ # binutils-config -l [1] i686-pc-linux-gnu-2.16.91.0.2 * localhost ~ # Calculating dependencies ...done! [ebuild R ] sys-libs/glibc-2.3.5.20050722 -build -erandom -glibc-compat20 +glibc-omitfp -hardened -linuxthreads-tls (-multilib) +nls +nptl +nptlonly +pic -profile (-selinux) -userlocales 0 kB Total size of downloads: 0 kB localhost ~ # localhost ~ # emerge -pv gentoo-sources These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-kernel/gentoo-sources-2.6.12-r7 -build -doc -symlink (-ultra1) 262 kB Total size of downloads: 262 kB localhost ~ # emerge -pv sys-kernel/linux-headers These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-kernel/linux-headers-2.6.11-r2 0 kB Reproducible: Always Steps to Reproduce: 1. 2. 3. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! if I pathing config.h from strace and append line #define _LINUX_QUOTA_VERSION 1 then all compiled ok
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. ***