Summary: | net-misc/nextcloud-client-3.12.3 fails to compile: utility.cpp:195:22: error: variable OCC::Utility::freeDiskSpace(const QString&)::statvfs64 stat has initializer but incomplete type | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Bernard Cafarelli <voyageur> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | flow, willy |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/nextcloud/desktop/issues/6536 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 903611 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
2024-02-14 08:42:03 UTC
Created attachment 884940 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) FAILED: src/csync/CMakeFiles/nextcloud_csync.dir/__/common/utility.cpp.o /var/tmp/portage/net-misc/nextcloud-client-3.11.1/work/desktop-3.11.1/src/common/utility.cpp:195:22: error: variable 'OCC::Utility::freeDiskSpace(const QString&)::statvfs64 stat' has initializer but incomplete type Musl does not seems to have it implemented. This patch got me though. --- a/src/common/utility.cpp 2024-03-06 03:37:52.000000000 -0600 +++ b/src/common/utility.cpp 2024-03-11 13:54:42.266466151 -0500 @@ -192,8 +192,8 @@ qint64 Utility::freeDiskSpace(const QStr return (qint64)stat.f_bavail * stat.f_frsize; } #elif defined(Q_OS_UNIX) - struct statvfs64 stat{}; - if (statvfs64(path.toLocal8Bit().data(), &stat) == 0) { + struct statvfs stat{}; + if (statvfs(path.toLocal8Bit().data(), &stat) == 0) { return (qint64)stat.f_bavail * stat.f_frsize; } #elif defined(Q_OS_WIN) I also filed an upstream bug: https://github.com/nextcloud/desktop/issues/6536 tinderbox_musl has reproduced this issue with version 3.12.3 - Updating summary. |