Created attachment 299175 [details] emerge --info Hi. I have my testing system running Gentoo Hardened system updated to the masked glibc-2.15 version. I noticed that portage-utils no longer builds. I believe this to be because glibc-2.15 introduces a new API for scandirat() which conflicts with a function with the same name in portage-utils. When I try to emerge portage-utils, this is the specific error: ... In file included from libq/libq.c:37:0, from main.c:97: libq/scandirat.c:10:12: error: static declaration of 'scandirat' follows non-static declaration /usr/include/dirent.h:294:12: note: previous declaration of 'scandirat' was here make: *** [q] Error 1 emake failed ... Attached is my emerge --info
i committed a fix for this already to the cvs project: http://sources.gentoo.org/gentoo-projects/portage-utils/configure.ac?r1=1.5&r2=1.6 http://sources.gentoo.org/gentoo-projects/portage-utils/libq/scandirat.c?r1=1.3&r2=1.4
x86, x86_64 confirmed, please bump at least 0.9_r1. Thanks
*** Bug 403553 has been marked as a duplicate of this bug. ***
still failing
So... r1?
Over two months old now, still failing. Is portage-utils a deprecated package?
(In reply to comment #1) > i committed a fix for this already to the cvs project: > > http://sources.gentoo.org/gentoo-projects/portage-utils/configure.ac?r1=1. > 5&r2=1.6 > http://sources.gentoo.org/gentoo-projects/portage-utils/libq/scandirat. > c?r1=1.3&r2=1.4 The patches allow it to build and install but it segfaults: # qcache -a cache: unable to read cache '/var/cache/edb/dep/usr/portage/app-accessibility/accerciser-3.2.1' perhaps you need to `emerge --metadata` or `emerge --regen` ? <snip> cache: unable to read cache '/var/cache/edb/dep/usr/portage/app-admin/abrt-2.0.6' perhaps you need to `emerge --metadata` or `emerge --regen` ? Segmentation fault
(In reply to comment #6) > Over two months old now, still failing. Is portage-utils a deprecated > package? Probably it's not obsolete but last time I checked glibc is still hard masked -> http://packages.gentoo.org/package/sys-libs/glibc You unmasked it (me too) and that is the price you (sometime) pay for running hard masked packages.
(In reply to comment #7) > (In reply to comment #1) > > i committed a fix for this already to the cvs project: > > > > http://sources.gentoo.org/gentoo-projects/portage-utils/configure.ac?r1=1. > > 5&r2=1.6 > > http://sources.gentoo.org/gentoo-projects/portage-utils/libq/scandirat. > > c?r1=1.3&r2=1.4 > > The patches allow it to build and install but it segfaults: > > # qcache -a > cache: unable to read cache > '/var/cache/edb/dep/usr/portage/app-accessibility/accerciser-3.2.1' > perhaps you need to `emerge --metadata` or `emerge --regen` ? > <snip> > cache: unable to read cache > '/var/cache/edb/dep/usr/portage/app-admin/abrt-2.0.6' > perhaps you need to `emerge --metadata` or `emerge --regen` ? > Segmentation fault You have to be more precise: qcache segfaults (btw: have the same issue as you with qcache). Other binaries (I did not check all of them) from portage-utils work.
(In reply to comment #7) > (In reply to comment #1) > > i committed a fix for this already to the cvs project: > > > > http://sources.gentoo.org/gentoo-projects/portage-utils/configure.ac?r1=1. > > 5&r2=1.6 > > http://sources.gentoo.org/gentoo-projects/portage-utils/libq/scandirat. > > c?r1=1.3&r2=1.4 > > The patches allow it to build and install but it segfaults: > > # qcache -a > cache: unable to read cache > '/var/cache/edb/dep/usr/portage/app-accessibility/accerciser-3.2.1' > perhaps you need to `emerge --metadata` or `emerge --regen` ? > <snip> > cache: unable to read cache > '/var/cache/edb/dep/usr/portage/app-admin/abrt-2.0.6' > perhaps you need to `emerge --metadata` or `emerge --regen` ? > Segmentation fault Here a quick and dirty backtrace with gdb: theia ~ # gdb GNU gdb (Gentoo 7.4 p1) 7.4 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: <http://bugs.gentoo.org/>. (gdb) file /usr/bin/qcache Reading symbols from /usr/bin/qcache...Reading symbols from /usr/lib/debug/usr/bin/q.debug...(no debugging symbols found)...done. (no debugging symbols found)...done. (gdb) run -a Starting program: /usr/bin/qcache -a warning: Could not load shared library symbols for linux-gate.so.1. Do you need "set solib-search-path" or "set sysroot"? Program received signal SIGSEGV, Segmentation fault. 0xb7e9b0ca in getdelim () from /lib/libc.so.6 (gdb) bt full #0 0xb7e9b0ca in getdelim () from /lib/libc.so.6 No symbol table info available. #1 0x08068d1c in qcache_read_cache_file () No symbol table info available. #2 0x08069594 in qcache_traverse () No symbol table info available. #3 0x0804a556 in main () No symbol table info available. (gdb) quit A debugging session is active. Inferior 1 [process 14209] will be killed. Quit anyway? (y or n) y theia ~ #
crash is unrelated to this bug. file a new one.
*** Bug 409443 has been marked as a duplicate of this bug. ***
fixed in 0.10