Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 205245 Details for
Bug 278639
sys-devel/gcc-4.3.2-r3 fails to compile on sys-libs/uclibc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for gcc 4.3.2
uclibc-gcc-43.patch (text/plain), 3.09 KB, created by
Denis Scherbakov
on 2009-09-25 21:17:48 UTC
(
hide
)
Description:
Fix for gcc 4.3.2
Filename:
MIME Type:
Creator:
Denis Scherbakov
Created:
2009-09-25 21:17:48 UTC
Size:
3.09 KB
patch
obsolete
>--- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/c_locale.cc 2009-09-25 21:06:31 +0000 >+++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/c_locale.cc 2009-09-25 20:52:59 +0000 >@@ -36,10 +36,11 @@ > #include <cerrno> // For errno > #include <locale> > #include <stdexcept> > #include <langinfo.h> > #include <bits/c++locale_internal.h> >+#include <stdlib.h> > > namespace std > { > template<> > void >--- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/c_locale.h 2009-09-25 21:06:31 +0000 >+++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/c_locale.h 2009-09-25 20:19:36 +0000 >@@ -106,11 +106,11 @@ > std::setlocale(LC_ALL, "C"); > # endif > #endif > > va_start(__args, __fmt); >- const int __ret = std::vsnprintf(__out, __size, __fmt, __args); >+ const int __ret = std::vsprintf(__out, __fmt, __args); > va_end(__args); > > #ifdef __UCLIBC_HAS_XCLOCALE__ > __gnu_cxx::__uselocale(__old); > #elif defined __UCLIBC_HAS_LOCALE__ >--- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/codecvt_members.cc 2009-09-25 21:06:30 +0000 >+++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/codecvt_members.cc 2009-09-25 20:32:22 +0000 >@@ -33,10 +33,12 @@ > > // Written by Benjamin Kosnik <bkoz@redhat.com> > > #include <locale> > #include <bits/c++locale_internal.h> >+#include <limits.h> >+#include <stdlib.h> > > namespace std > { > // Specializations. > #ifdef _GLIBCXX_USE_WCHAR_T >--- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/ctype_members.cc 2009-09-25 21:06:31 +0000 >+++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/ctype_members.cc 2009-09-25 20:48:33 +0000 >@@ -45,11 +45,11 @@ > > namespace std > { > // NB: The other ctype<char> specializations are in src/locale.cc and > // various /config/os/* files. >- template<> >+// template<> > ctype_byname<char>::ctype_byname(const char* __s, size_t __refs) > : ctype<char>(0, false, __refs) > { > if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0) > { >--- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/monetary_members.cc 2009-09-25 21:06:31 +0000 >+++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/monetary_members.cc 2009-09-25 20:51:17 +0000 >@@ -46,10 +46,12 @@ > #ifdef __UCLIBC_MJN3_ONLY__ > #warning optimize this for uclibc > #warning tailor for stub locale support > #endif > >+#include <stdlib.h> >+ > namespace std > { > // Construct and return valid pattern consisting of some combination of: > // space none symbol sign value > money_base::pattern >--- sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/time_members.cc 2009-09-25 21:06:30 +0000 >+++ sys-devel.patch/gcc-4.3.2-r3/work/gcc-4.3.2/libstdc++-v3/config/locale/uclibc/time_members.cc 2009-09-25 20:51:45 +0000 >@@ -39,10 +39,12 @@ > > #ifdef __UCLIBC_MJN3_ONLY__ > #warning tailor for stub locale support > #endif > >+#include <stdlib.h> >+ > namespace std > { > template<> > void > __timepunct<char>::
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278639
: 205245