aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-16 17:18:06 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-16 17:18:06 +0000
commit2f7f7bc65803510cdf137bde00fdb72c918af63c (patch)
tree5773b68d6e27f9b6bbfc1856bee4d989e7ae5cb7
parent90a2545a9531710730a0693f545b0225db0fa6d0 (diff)
downloadglibc-2f7f7bc65803510cdf137bde00fdb72c918af63c.tar
glibc-2f7f7bc65803510cdf137bde00fdb72c918af63c.tar.gz
glibc-2f7f7bc65803510cdf137bde00fdb72c918af63c.tar.bz2
glibc-2f7f7bc65803510cdf137bde00fdb72c918af63c.zip
Update.
2003-06-16 Thorsten Kukuk <kukuk@suse.de> * include/libc-symbols.h: Add static_link_warning macro. * grp/initgroups.c: Print linker warning if this function is called in a static linked binary. * nss/getXXbyYY.c: Likewise. * nss/getXXbyYY_r.c: Likewise. * nss/getXXent.c: Likewise. * nss/getXXent_r.c: Likewise. * sysdeps/posix/getaddrinfo.c: Likewise. 2003-06-16 Bruno Haible <bruno@clisp.org> * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15, LATIN-9. (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16. (IBM1047): Add alias IBM-1047. (GBK): Add aliases MS936, WINDOWS-936. 2003-06-16 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64. (__xstat64_conv): Change xstat_conv to __xstat_conv. Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
-rw-r--r--ChangeLog28
-rw-r--r--grp/initgroups.c4
-rw-r--r--iconvdata/gconv-modules7
-rw-r--r--include/libc-symbols.h10
-rw-r--r--localedata/ChangeLog7
-rw-r--r--localedata/charmaps/GBK3
-rw-r--r--localedata/charmaps/IBM10471
-rw-r--r--localedata/charmaps/ISO-8859-152
-rw-r--r--localedata/charmaps/ISO-8859-162
-rw-r--r--nss/getXXbyYY.c2
-rw-r--r--nss/getXXbyYY_r.c2
-rw-r--r--nss/getXXent.c2
-rw-r--r--nss/getXXent_r.c4
-rw-r--r--sysdeps/posix/getaddrinfo.c2
-rw-r--r--sysdeps/unix/sysv/linux/xstatconv.c4
15 files changed, 76 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 36e4169b6c..aa4c8ab7eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,28 @@
+2003-06-16 Thorsten Kukuk <kukuk@suse.de>
+
+ * include/libc-symbols.h: Add static_link_warning macro.
+ * grp/initgroups.c: Print linker warning if this function
+ is called in a static linked binary.
+ * nss/getXXbyYY.c: Likewise.
+ * nss/getXXbyYY_r.c: Likewise.
+ * nss/getXXent.c: Likewise.
+ * nss/getXXent_r.c: Likewise.
+ * sysdeps/posix/getaddrinfo.c: Likewise.
+
+2003-06-16 Bruno Haible <bruno@clisp.org>
+
+ * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
+ LATIN-9.
+ (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
+ (IBM1047): Add alias IBM-1047.
+ (GBK): Add aliases MS936, WINDOWS-936.
+
+2003-06-16 Jakub Jelinek <jakub@redhat.com>
+
+ * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
+ defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
+ (__xstat64_conv): Change xstat_conv to __xstat_conv.
+
2003-06-16 Ulrich Drepper <drepper@redhat.com>
* locale/iso-639.def: Update from current official ISO 639.
@@ -10,8 +35,7 @@
of MXCSR.
* sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
* sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
- Reported by Arnaud Desitter
- <arnaud.desitter@geography.oxford.ac.uk>.
+ Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
* math/tgmath.h (carg): Handle real arguments.
(conj): Likewise.
diff --git a/grp/initgroups.c b/grp/initgroups.c
index 1e4c2b5c2b..4b19594833 100644
--- a/grp/initgroups.c
+++ b/grp/initgroups.c
@@ -223,6 +223,8 @@ getgrouplist (const char *user, gid_t group, gid_t *groups, int *ngroups)
return result;
}
+static_link_warning (getgrouplist)
+
/* Initialize the group set for the current user
by reading the group database and using all groups
of which USER is a member. Also include GROUP. */
@@ -271,3 +273,5 @@ initgroups (const char *user, gid_t group)
return result;
#endif
}
+
+static_link_warning (initgroups)
diff --git a/iconvdata/gconv-modules b/iconvdata/gconv-modules
index 7a08baad46..5df8767252 100644
--- a/iconvdata/gconv-modules
+++ b/iconvdata/gconv-modules
@@ -393,6 +393,8 @@ module INTERNAL ISO-8859-14// ISO8859-14 1
alias ISO8859-15// ISO-8859-15//
alias ISO885915// ISO-8859-15//
alias ISO-IR-203// ISO-8859-15//
+alias ISO_8859-15// ISO-8859-15//
+alias LATIN-9// ISO-8859-15//
alias ISO_8859-15:1998// ISO-8859-15//
module ISO-8859-15// INTERNAL ISO8859-15 1
module INTERNAL ISO-8859-15// ISO8859-15 1
@@ -403,6 +405,8 @@ alias ISO885916// ISO-8859-16//
alias ISO-IR-226// ISO-8859-16//
alias LATIN10// ISO-8859-16//
alias L10// ISO-8859-16//
+alias ISO_8859-16:2001// ISO-8859-16//
+alias ISO_8859-16// ISO-8859-16//
module ISO-8859-16// INTERNAL ISO8859-16 1
module INTERNAL ISO-8859-16// ISO8859-16 1
@@ -996,6 +1000,7 @@ module IBM1046// INTERNAL IBM1046 1
module INTERNAL IBM1046// IBM1046 1
# from to module cost
+alias IBM-1047// IBM1047//
alias CP1047// IBM1047//
alias 1047// IBM1047//
alias OSF10020417// IBM1047//
@@ -1122,6 +1127,8 @@ module BIG5// EUC-CN// GBBIG5 1
# from to module cost
alias GB13000// GBK//
alias CP936// GBK//
+alias MS936// GBK//
+alias WINDOWS-936// GBK//
module GBK// INTERNAL GBK 1
module INTERNAL GBK// GBK 1
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index e585a3b304..fe5b6e5863 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -282,6 +282,16 @@
link_warning (name, \
"warning: " #name " is not implemented and will always fail")
+/* Warning for linking functions calling dlopen into static binaries. */
+#ifdef SHARED
+#define static_link_warning(name)
+#else
+#define static_link_warning(name) static_link_warning1(name)
+#define static_link_warning1(name) \
+ link_warning(name, "Using '" #name "' in statically linked applications \
+requires at runtime the shared libraries from the glibc version used \
+for linking")
+#endif
/* Declare SYMBOL to be TYPE (`function' or `object') and of SIZE bytes,
when the assembler supports such declarations (such as in ELF).
diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index 3872a27e4f..0bf60e9269 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -1,3 +1,10 @@
+2003-06-16 Bruno Haible <bruno@clisp.org>
+
+ * charmaps/ISO-8859-15: Add aliases ISO_8859-15, LATIN-9.
+ * charmaps/ISO-8859-16: Add aliases ISO_8859-16:2001, ISO_8859-16.
+ * charmaps/IBM1047: Add alias IBM-1047.
+ * charmaps/GBK: Add aliases CP936, MS936, WINDOWS-936.
+
2003-06-15 Petter Reinholdtsen <pere@hungry.com>
* locales/fi_FI [LC_TIME]: Correct month names to make the dates
diff --git a/localedata/charmaps/GBK b/localedata/charmaps/GBK
index 285d18384e..4c35f1426c 100644
--- a/localedata/charmaps/GBK
+++ b/localedata/charmaps/GBK
@@ -4,6 +4,9 @@
<comment_char> %
<escape_char> /
+% alias CP936
+% alias MS936
+% alias WINDOWS-936
CHARMAP
<U0000> /x00 NULL (NUL)
<U0001> /x01 START OF HEADING (SOH)
diff --git a/localedata/charmaps/IBM1047 b/localedata/charmaps/IBM1047
index 51238517a8..89e0b03eba 100644
--- a/localedata/charmaps/IBM1047
+++ b/localedata/charmaps/IBM1047
@@ -6,6 +6,7 @@
% Registry SC09-1391-00 p 150.
+% alias IBM-1047
% alias CP1047
% alias 1047
CHARMAP
diff --git a/localedata/charmaps/ISO-8859-15 b/localedata/charmaps/ISO-8859-15
index 0e15867e31..1c92b27370 100644
--- a/localedata/charmaps/ISO-8859-15
+++ b/localedata/charmaps/ISO-8859-15
@@ -3,6 +3,8 @@
<escape_char> /
% automatically generated from the charDB
+% alias ISO_8859-15
+% alias LATIN-9
CHARMAP
<U0000> /x00 NULL
<U0001> /x01 START OF HEADING
diff --git a/localedata/charmaps/ISO-8859-16 b/localedata/charmaps/ISO-8859-16
index 83fdeb7316..cf4e06c0f5 100644
--- a/localedata/charmaps/ISO-8859-16
+++ b/localedata/charmaps/ISO-8859-16
@@ -4,6 +4,8 @@
% automatically generated from the charDB
% alias ISO-IR-226
+% alias ISO_8859-16:2001
+% alias ISO_8859-16
% alias LATIN10
% alias L10
CHARMAP
diff --git a/nss/getXXbyYY.c b/nss/getXXbyYY.c
index a9f1cfd5c8..ece2a0d47c 100644
--- a/nss/getXXbyYY.c
+++ b/nss/getXXbyYY.c
@@ -162,3 +162,5 @@ done:
return result;
}
+
+static_link_warning (FUNCTION_NAME)
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c
index 06f2abedd0..aca6a94a35 100644
--- a/nss/getXXbyYY_r.c
+++ b/nss/getXXbyYY_r.c
@@ -289,3 +289,5 @@ strong_alias (INTERNAL (REENTRANT_NAME), NEW (REENTRANT_NAME));
versioned_symbol (libc, real, name, version)
do_default_symbol_version (NEW (REENTRANT_NAME),
REENTRANT_NAME, GLIBC_2_1_2);
+
+static_link_warning (REENTRANT_NAME)
diff --git a/nss/getXXent.c b/nss/getXXent.c
index 0a13b79d87..60e1395f2b 100644
--- a/nss/getXXent.c
+++ b/nss/getXXent.c
@@ -91,3 +91,5 @@ GETFUNC_NAME (void)
__set_errno (save);
return result;
}
+
+static_link_warning (GETFUNC_NAME)
diff --git a/nss/getXXent_r.c b/nss/getXXent_r.c
index 5a1e3e9b0f..8a0155bc3d 100644
--- a/nss/getXXent_r.c
+++ b/nss/getXXent_r.c
@@ -201,3 +201,7 @@ strong_alias (INTERNAL (REENTRANT_GETNAME), NEW (REENTRANT_GETNAME));
versioned_symbol (libc, real, name, version)
do_default_symbol_version (NEW (REENTRANT_GETNAME),
REENTRANT_GETNAME, GLIBC_2_1_2);
+
+static_link_warning (SETFUNC_NAME)
+static_link_warning (ENDFUNC_NAME)
+static_link_warning (REENTRANT_GETNAME)
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 3cdb5df1c8..3b86b25122 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -1024,6 +1024,8 @@ getaddrinfo (const char *name, const char *service,
}
libc_hidden_def (getaddrinfo)
+static_link_warning (getaddrinfo)
+
void
freeaddrinfo (struct addrinfo *ai)
{
diff --git a/sysdeps/unix/sysv/linux/xstatconv.c b/sysdeps/unix/sysv/linux/xstatconv.c
index 4e4defb489..805e339782 100644
--- a/sysdeps/unix/sysv/linux/xstatconv.c
+++ b/sysdeps/unix/sysv/linux/xstatconv.c
@@ -31,7 +31,7 @@ struct kernel_stat;
#include <string.h>
-#ifndef __ASSUME_STAT64_SYSCALL
+#if !defined __ASSUME_STAT64_SYSCALL || defined XSTAT_IS_XSTAT64
int
__xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
{
@@ -108,7 +108,7 @@ int
__xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
{
#ifdef XSTAT_IS_XSTAT64
- return xstat_conv (vers, kbuf, ubuf);
+ return __xstat_conv (vers, kbuf, ubuf);
#else
switch (vers)
{