patches/glibc/2.3.6/glibc-2.3.5-allow-gcc4-wcstol_l.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
yann@1
     1
Fixes
yann@1
     2
../sysdeps/wordsize-64/wcstol_l.c:11: error: '____wcstoll_l_internal' aliased to undefined symbol '____wcstol_l_internal'
yann@1
     3
../sysdeps/wordsize-64/wcstol_l.c:12: error: '__wcstoll_l' aliased to undefined symbol '__wcstol_l'
yann@1
     4
../sysdeps/wordsize-64/wcstol_l.c:13: error: 'wcstoll_l' aliased to undefined symbol '__wcstol_l'
yann@1
     5
make[2]: *** [/home/dkegel/queue/jobdir.produser_cpsm10/crosstool-0.32/build/x86_64-unknown-linux-gnu/gcc-4.0.0-20050410-glibc-2.3.4/build-glibc/wcsmbs/wcstoul_l.o] Error 1
yann@1
     6
yann@1
     7
https://www.redhat.com/archives/fedora-cvs-commits/2005-March/msg00408.html
yann@1
     8
%changelog
yann@1
     9
+* Fri Mar 25 2005 Jakub Jelinek <jakub redhat com> 2.3.4-18
yann@1
    10
+- fix build on 64-bit arches with new GCC
yann@1
    11
yann@1
    12
Revision 1.4.2.1, Fri Mar 25 11:59:01 2005 UTC (3 weeks, 4 days ago) by jakub
yann@1
    13
Branch: fedora-branch
yann@1
    14
CVS Tags: fedora-glibc-2_3_4-18
yann@1
    15
Changes since 1.4: +2 -0 lines
yann@1
    16
Diff to previous 1.4 (colored)
yann@1
    17
yann@1
    18
	* sysdeps/wordsize-64/strtol_l.c: Don't add aliases if UNSIGNED.
yann@1
    19
	* sysdeps/wordsize-64/wcstol_l.c: Likewise.
yann@1
    20
yann@1
    21
yann@1
    22
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/wordsize-64/strtol_l.c.diff?r1=1.4&r2=1.4.2.1&cvsroot=glibc
yann@1
    23
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/wordsize-64/wcstol_l.c.diff?r1=1.4&r2=1.4.2.1&cvsroot=glibc
yann@1
    24
yann@1
    25
===================================================================
yann@1
    26
RCS file: /cvs/glibc/libc/sysdeps/wordsize-64/strtol_l.c,v
yann@1
    27
retrieving revision 1.4
yann@1
    28
retrieving revision 1.4.2.1
yann@1
    29
diff -u -r1.4 -r1.4.2.1
yann@1
    30
--- libc/sysdeps/wordsize-64/strtol_l.c	2003/03/03 09:45:12	1.4
yann@1
    31
+++ libc/sysdeps/wordsize-64/strtol_l.c	2005/03/25 11:59:01	1.4.2.1
yann@1
    32
@@ -8,7 +8,9 @@
yann@1
    33
 #undef ____strtoll_l_internal
yann@1
    34
 #undef __strtoll_l
yann@1
    35
 #undef strtoll_l
yann@1
    36
+#if !UNSIGNED
yann@1
    37
 strong_alias (____strtol_l_internal, ____strtoll_l_internal)
yann@1
    38
 libc_hidden_ver (____strtol_l_internal, ____strtoll_l_internal)
yann@1
    39
 weak_alias (__strtol_l, __strtoll_l)
yann@1
    40
 weak_alias (__strtol_l, strtoll_l)
yann@1
    41
+#endif
yann@1
    42
===================================================================
yann@1
    43
RCS file: /cvs/glibc/libc/sysdeps/wordsize-64/wcstol_l.c,v
yann@1
    44
retrieving revision 1.4
yann@1
    45
retrieving revision 1.4.2.1
yann@1
    46
diff -u -r1.4 -r1.4.2.1
yann@1
    47
--- libc/sysdeps/wordsize-64/wcstol_l.c	2002/08/08 11:44:51	1.4
yann@1
    48
+++ libc/sysdeps/wordsize-64/wcstol_l.c	2005/03/25 11:59:01	1.4.2.1
yann@1
    49
@@ -8,6 +8,8 @@
yann@1
    50
 #undef ____wcstoll_l_internal
yann@1
    51
 #undef __wcstoll_l
yann@1
    52
 #undef wcstoll_l
yann@1
    53
+#if !UNSIGNED
yann@1
    54
 strong_alias (____wcstol_l_internal, ____wcstoll_l_internal)
yann@1
    55
 weak_alias (__wcstol_l, __wcstoll_l)
yann@1
    56
 weak_alias (__wcstol_l, wcstoll_l)
yann@1
    57
+#endif
yann@1
    58
yann@1
    59
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>