Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443552 - sys-libs/glibc & gnulib: glob("*/") does not set GLOB_MAGCHAR in gl_flags
Summary: sys-libs/glibc & gnulib: glob("*/") does not set GLOB_MAGCHAR in gl_flags
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: http://lists.gnu.org/archive/html/bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-16 20:23 UTC by Piotr Karbowski (RETIRED)
Modified: 2020-11-07 22:46 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.log,4.62 KB, text/plain)
2012-11-16 20:23 UTC, Piotr Karbowski (RETIRED)
Details
build.log of glibc with /bin/dash as /bin/sh (glibc-dash-build.log,43.25 KB, text/plain)
2012-11-17 12:55 UTC, Piotr Karbowski (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Karbowski (RETIRED) gentoo-dev 2012-11-16 20:23:20 UTC
Looks like I cannot build glibc with dash as /bin/sh, reproduced on two boxes, after bumping /bin/sh symlink back to /bin/bash it does work.

### part of build log:
mkdir: cannot create directory ‘/var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc’: File exists
mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/nis
mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/nis
mkdir: cannot create directory ‘/var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/nis’: File exists
mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd
mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/streams
mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/streams
mkdir: cannot create directory ‘/var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/streams’: File exists
mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/login
mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/elf
mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/elf
mkdir: cannot create directory ‘/var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/elf’: File exists
In file included from rtld.c:40:0:
../sysdeps/unix/sysv/linux/dl-osinfo.h: In function ‘dl_fatal’:
../sysdeps/unix/sysv/linux/dl-osinfo.h:38:3: warning: format not a string literal and no format arguments
In file included from ../elf/dl-sysdep.c:39:0,
                 from ../sysdeps/unix/sysv/linux/dl-sysdep.c:60:
../sysdeps/unix/sysv/linux/dl-osinfo.h: In function ‘dl_fatal’:
../sysdeps/unix/sysv/linux/dl-osinfo.h:38:3: warning: format not a string literal and no format arguments
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory
rtld-Rules:42: *** missing separator.  Stop.
make[2]: *** [/var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/rtld-libc.a] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [elf/subdir_lib] Error 2
make: *** [all] Error 2
emake failed
 * ERROR: sys-libs/glibc-2.15-r3 failed (compile phase):
 *   make for x86 failed
###

Reproducible: Always
Comment 1 Piotr Karbowski (RETIRED) gentoo-dev 2012-11-16 20:23:52 UTC
Created attachment 329670 [details]
emerge --info
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-17 00:59:23 UTC
Can you attach the full build log, it includes quite some information at the start that can be useful. Did you also try other shells or does this only happen for dash?
Comment 3 Piotr Karbowski (RETIRED) gentoo-dev 2012-11-17 12:55:16 UTC
Created attachment 329708 [details]
build.log of glibc with /bin/dash as /bin/sh

build.log attached.

I cannot reproduce it with ksh, mksh or busybox's ash (built without bash's extensions). Looks like it is dash specific issue but I do wonder if its just dash too sensitive or internal dash bug.
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-17 15:23:26 UTC
I've passed on to toolchain (glibc), if they determine this is due to dash they can re-assign to base-system (dash).
Comment 5 Piotr Karbowski (RETIRED) gentoo-dev 2012-11-17 21:37:39 UTC
Looks like the latest version app-shells/dash-0.5.7.3 is badly broken as I am getting multiple build failures including php, and its 100% reproducable. 

@Tom Wijsman can you edit the bug as it is not about glibc but broken dash?
Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-18 00:49:00 UTC
Changed title and re-assigned.

Can you attach build logs for one or two other failing packages so we can see if they are similar?
Comment 7 SpanKY gentoo-dev 2012-11-18 08:12:29 UTC
the "smallest" package you noticed a problem with would be best
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-04 05:37:24 UTC
(In reply to comment #7)
> the "smallest" package you noticed a problem with would be best

$ ls */
ls: cannot access */: No such file or directory
Comment 9 SpanKY gentoo-dev 2012-12-08 20:05:22 UTC
looks like dash-0.5.7.1 works, so i guess Debian added a bum patch in there
Comment 10 SpanKY gentoo-dev 2012-12-21 04:44:21 UTC
hmm, scratch that.  building with --disable-glob works OK.

that in turn seems like a bug in glibc's glob implementation.  it's not setting GLOB_MAGCHAR like the documentation says.

i've reported this to the bug-gnulib guys since that's where the implementation lives (gets synced to glibc from time to time).
Comment 11 SpanKY gentoo-dev 2012-12-21 04:47:18 UTC
i've added dash-0.5.7.3-r1 w/out --enable-glob in the mean time
Comment 12 SpanKY gentoo-dev 2015-07-06 07:51:02 UTC
it's not fixed ... the referenced testcase still fails
Comment 13 Sergei Trofimovich (RETIRED) gentoo-dev 2020-11-07 22:46:29 UTC
Closing as obsolete as gnulib's and glibc's implementations changed quite a bit. If it still happens I suggest filing a bug on glibc's bugzilla with a reproducer..