Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399205 - app-portage/portage-utils-0.9: build fails with glibc-2.15 due to scandirat()
Summary: app-portage/portage-utils-0.9: build fails with glibc-2.15 due to scandirat()
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
: 403553 409443 (view as bug list)
Depends on:
Blocks: glibc-2.15
  Show dependency tree
 
Reported: 2012-01-17 19:30 UTC by Nemykal
Modified: 2012-04-15 05:47 UTC (History)
7 users (show)

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


Attachments
emerge --info (emergeinfo.txt,16.90 KB, text/plain)
2012-01-17 19:30 UTC, Nemykal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nemykal 2012-01-17 19:30:29 UTC
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
Comment 2 David Heidelberg (okias) 2012-02-08 16:19:10 UTC
x86, x86_64 confirmed, please bump at least 0.9_r1. Thanks
Comment 3 SpanKY gentoo-dev 2012-02-15 19:20:50 UTC
*** Bug 403553 has been marked as a duplicate of this bug. ***
Comment 4 Chris Smith 2012-02-21 04:15:15 UTC
still failing
Comment 5 Mark Wood 2012-03-02 09:10:45 UTC
So... r1?
Comment 6 Chris Smith 2012-03-20 13:29:31 UTC
Over two months old now, still failing. Is portage-utils a deprecated package?
Comment 7 Chris Smith 2012-03-20 13:50:40 UTC
(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
Comment 8 Stevan Bajić 2012-03-20 14:14:37 UTC
(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.
Comment 9 Stevan Bajić 2012-03-20 14:18:38 UTC
(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.
Comment 10 Stevan Bajić 2012-03-20 14:23:19 UTC
(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 ~ #
Comment 11 SpanKY gentoo-dev 2012-03-20 19:40:34 UTC
crash is unrelated to this bug.  file a new one.
Comment 12 SpanKY gentoo-dev 2012-04-15 04:48:11 UTC
*** Bug 409443 has been marked as a duplicate of this bug. ***
Comment 13 SpanKY gentoo-dev 2012-04-15 05:47:37 UTC
fixed in 0.10