ALT Linux Bugzilla
– Attachment 13149 Details for
Bug 46105
apt: ошибка сборки с GCC 13
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
исправление
0001-apt-rpm-contrib-mmap.cc-avoid-compilation-error-with.patch (text/plain), 1.65 KB, created by
Alexey Sheplyakov
on 2023-05-11 04:14:06 MSK
(
hide
)
Description:
исправление
Filename:
MIME Type:
Creator:
Alexey Sheplyakov
Created:
2023-05-11 04:14:06 MSK
Size:
1.65 KB
patch
obsolete
>From 247281ceb597eed254c0cc3d16f87c38c2a7e78d Mon Sep 17 00:00:00 2001 >From: Alexey Sheplyakov <asheplyakov@basealt.ru> >Date: Fri, 5 May 2023 15:45:28 +0400 >Subject: [PATCH] apt-rpm: contrib/mmap.cc: avoid compilation error with GCC 13 > >contrib/mmap.cc:80:20: error: 'SIZE_MAX' was not declared in this scope > 80 | if (EndOfFile > SIZE_MAX) > | ^~~~~~~~ >contrib/mmap.cc:38:8: note: 'SIZE_MAX' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'? > 37 | #include <cassert> > +++ |+#include <cstdint> > 38 | /*}}}*/ >contrib/mmap.cc:82:40: error: 'uintmax_t' does not name a type > 82 | static_cast<uintmax_t>(EndOfFile)); > | ^~~~~~~~~ >contrib/mmap.cc: In member function 'std::optional<long unsigned int> DynamicMMap::WriteString(const char*, size_t)': >contrib/mmap.cc:363:15: error: 'SIZE_MAX' was not declared in this scope > 363 | if (Len == SIZE_MAX) > | ^~~~~~~~ >contrib/mmap.cc:363:15: note: 'SIZE_MAX' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'? >make[1]: *** [Makefile:775: contrib/mmap.lo] Error 1 > >SIZE_MAX is defined in cstdint.h, include it. >--- > apt-pkg/contrib/mmap.cc | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc >index fcb5ada..98d4c15 100644 >--- a/apt-pkg/contrib/mmap.cc >+++ b/apt-pkg/contrib/mmap.cc >@@ -35,6 +35,7 @@ > #include <cstring> > #include <type_traits> > #include <cassert> >+#include <cstdint> > /*}}}*/ > > // MMap::MMap - Constructor /*{{{*/ >-- >2.33.7 >
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 46105
: 13149 |
13151