ABI baselines, --enable-clocale choices, and that AC_TRY_RUN test
Benjamin Kosnik
bkoz@redhat.com
Thu Sep 12 16:00:00 GMT 2002
> The build failed in the same manner: glibc 2.2.5 is installed, but this
> test fails with a segfault. The german locale is installed on both systems.
Are you sure?
If you see something like this, then it's not. (Kudos to Jakub, who
originally sent this to me.)
$ strace ./a.out 2>&1 | grep open
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/usr/lib/libstdc++.so.4", O_RDONLY) = 3
open("/lib/i686/libm.so.6", O_RDONLY) = 3
open("/lib/libgcc_s.so.1", O_RDONLY) = 3
open("/lib/i686/libc.so.6", O_RDONLY) = 3
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_CTYPE", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_NUMERIC", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_TIME", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_COLLATE", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_MONETARY", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_MESSAGES", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_PAPER", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_NAME", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_ADDRESS", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_TELEPHONE", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_MEASUREMENT", O_RDONLY) = 3
open("/usr/lib/locale/de_DE/LC_IDENTIFICATION", O_RDONLY) = 3
> Is there a particular fix in the glibc changelog that allows this test
> to pass, and would allow me to use enable-clocale=gnu? With a changelog
> entry to look for, I can investigate whether the glibc here should be
> able to handle the test (and something else is breaking), or whether I'm
> genuinely stuck with clocale=generic.
You might try the "install all locales" bit under the configopts.html
linux passage.
The specific ChangeLog entry is from the 2001-01-09 timeframe.
I suspect --enable-clocale=gnu will have to be added to the linux ABI page.
-benjamin
More information about the Libstdc++
mailing list