This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
stubs.h depends on locale
- To: libc-alpha at sources dot redhat dot com
- Subject: stubs.h depends on locale
- From: Bruno Haible <haible at ilog dot fr>
- Date: Mon, 11 Dec 2000 18:35:53 +0100 (CET)
The /usr/include/gnu/stubs.h file generated by the installation of
glibc-2.2 apparently depends on the locale in which it was made. After
building glibc-2.2 in slightly different conditions, I got the
following differences:
*** usr/include/gnu/stubs.h Sat Dec 2 22:26:59 2000
--- /usr/include/gnu/stubs.h Sat Dec 9 04:19:44 2000
***************
*** 2,7 ****
--- 2,10 ----
It defines a symbol `__stub_FUNCTION' for each function
in the C library which is a stub, meaning it will fail
every time called, usually setting errno to ENOSYS. */
+ #define __stub___kernel_cosl
+ #define __stub___kernel_sinl
+ #define __stub___kernel_tanl
#define __stub_chflags
#define __stub_erfcl
#define __stub_erfl
***************
*** 14,22 ****
#define __stub_j0l
#define __stub_j1l
#define __stub_jnl
- #define __stub___kernel_cosl
- #define __stub___kernel_sinl
- #define __stub___kernel_tanl
#define __stub_lgammal
#define __stub_lgammal_r
#define __stub_madvise
--- 17,22 ----
Here is a patch (untested, but obvious).
2000-12-11 Bruno Haible <haible@clisp.cons.org>
* Makefile ($(inst_includedir)/gnu/stubs.h): Sort in the C locale.
*** glibc-cvs/Makefile Mon Oct 2 16:09:22 2000
--- glibc-cvs/Makefile Mon Dec 11 18:31:30 2000
***************
*** 149,155 ****
echo ' It defines a symbol `__stub_FUNCTION'\'' for each function';\
echo ' in the C library which is a stub, meaning it will fail';\
echo ' every time called, usually setting errno to ENOSYS. */';\
! sort $(subdir-stubs)) > $(objpfx)stubs.h
if test -r $@ && cmp -s $(objpfx)stubs.h $@; \
then echo 'stubs.h unchanged'; \
else $(INSTALL_DATA) $(objpfx)stubs.h $@; fi
--- 149,155 ----
echo ' It defines a symbol `__stub_FUNCTION'\'' for each function';\
echo ' in the C library which is a stub, meaning it will fail';\
echo ' every time called, usually setting errno to ENOSYS. */';\
! LC_ALL=C sort $(subdir-stubs)) > $(objpfx)stubs.h
if test -r $@ && cmp -s $(objpfx)stubs.h $@; \
then echo 'stubs.h unchanged'; \
else $(INSTALL_DATA) $(objpfx)stubs.h $@; fi