[Digikam-devel] [Bug 274462] New: build failure in kmemoryinfo - swapctl
tropikhajma
tropikhajma at gmail.com
Sun May 29 21:30:22 BST 2011
https://bugs.kde.org/show_bug.cgi?id=274462
Summary: build failure in kmemoryinfo - swapctl
Product: digikam
Version: 2.0.0
Platform: Compiled Sources
OS/Version: Solaris
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Portability
AssignedTo: digikam-devel at kde.org
ReportedBy: tropikhajma at gmail.com
Version: 2.0.0 (using KDE 4.6.2)
OS: Solaris
building digikam-2.0.0-beta5 on Solaris 11e/amd64 with gcc 4.5.2 fails with:
...
In file included from
/home/test/packages/BUILD/digikam-2.0.0-beta5/i386/digikam-2.0.0-beta5/core/libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp:408:0,
from
/home/test/packages/BUILD/digikam-2.0.0-beta5/i386/digikam-2.0.0-beta5/core/libs/3rdparty/kmemoryinfo/kmemoryinfo.cpp:182:
/usr/include/sys/swap.h:51:2: error: #error "Cannot use swapctl in the large
files compilation environment"
Just for the record, the below patch lets me proceed, but there's no doubt it's
just a crude hack and not a proper solution:
---
digikam-2.0.0-beta5/core/libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp.orig
2011-05-29 22:01:30.372131120 +0200
+++ digikam-2.0.0-beta5/core/libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp
2011-05-29 22:02:06.723252758 +0200
@@ -404,6 +404,9 @@
//
----------------------------------------------------------------------------
#ifdef Q_OS_SOLARIS
+#ifdef _FILE_OFFSET_BITS
+#undef _FILE_OFFSET_BITS
+#endif
#include <sys/stat.h>
#include <sys/swap.h>
#include <unistd.h>
Reproducible: Always
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list