This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: ABI baselines, --enable-clocale choices, and that AC_TRY_RUN test
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: libstdc++ at gcc dot gnu dot org, aj at suse dot de
- Date: Thu, 12 Sep 2002 05:58:25 -0500
- Subject: Re: ABI baselines, --enable-clocale choices, and that AC_TRY_RUN test
- Organization: Red Hat / Chicago
- References: <20020905143954.A14230@disaster.jaj.com><20020912170108.B11234@disaster.jaj.com>
> 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