https://bugs.kde.org/show_bug.cgi?id=374196
--- Comment #5 from Ralf Habacker <ralf.habac...@freenet.de> --- (In reply to David Faure from comment #2) > Git commit 76f89c46d8645eec53795b26f1af7d669cea2c50 by David Faure. > Committed on 27/12/2016 at 17:56. > Pushed by dfaure into branch 'master'. > > Fix CMakeLists.txt for windows, blindly, since the windows guys report bugs > instead of committing fixes ;-) Unfortunally I'm not familiar with the kio windows implementation yet, so there is currently only a bug report. > M +1 -1 src/ioslaves/trash/CMakeLists.txt > > https://commits.kde.org/kio/76f89c46d8645eec53795b26f1af7d669cea2c50 With this patch I get: /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp: In constructor 'TrashImpl::TrashImpl()': /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:74:60: error: 'QT_LSTAT' was not declared in this scope if (QT_LSTAT(QFile::encodeName(QDir::homePath()), &buff) == 0) { ^ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp: In member function 'bool TrashImpl::createInfo(const QString&, int&, QString&)': /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:269:46: error: 'QT_LSTAT' was not declared in this scope if (QT_LSTAT(origPath_c.data(), &buff_src) == -1) { ^ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp: In member function 'bool TrashImpl::del(int, const QString&)': /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:608:38: error: 'QT_LSTAT' was not declared in this scope if (QT_LSTAT(info_c.data(), &buff) == -1) { ^ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp: In member function 'int TrashImpl::findTrashDirectory(const QString&)': /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1012:52: error: 'QT_LSTAT' was not declared in this scope if (QT_LSTAT(QFile::encodeName(origPath), &buff) == 0 ^ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp: In member function 'QString TrashImpl::trashForMountPoint(const QString&, bool) const': /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1140:5: error: 'uid_t' was not declared in this scope uid_t uid = getuid(); ^~~~~ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1142:39: error: 'S_ISVTX' was not declared in this scope const unsigned int requiredBits = S_ISVTX; // Sticky bit required ^~~~~~~ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1143:39: error: 'QT_LSTAT' was not declared in this scope if (QT_LSTAT(rootTrashDir_c, &buff) == 0) { ^ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1145:42: error: 'S_ISLNK' was not declared in this scope && (!S_ISLNK(buff.st_mode)) // not a symlink ^ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1150:88: error: 'uid' was not declared in this scope const QString trashDir = rootTrashDir + QLatin1Char('/') + QString::number(uid); ^~~ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1176:83: error: 'uid' was not declared in this scope const QString trashDir = topdir + QLatin1String("/.Trash-") + QString::number(uid); ^~~ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1178:35: error: 'QT_LSTAT' was not declared in this scope if (QT_LSTAT(trashDir_c, &buff) == 0) { ^ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1181:42: error: 'S_ISLNK' was not declared in this scope && (!S_ISLNK(buff.st_mode)) // not a symlink ^ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp: In member function 'bool TrashImpl::initTrashDirectory(const QByteArray&) const': /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1214:31: error: too many arguments to function 'int mkdir(const char*)' if (mkdir(trashDir_c, 0700) != 0) { ^ In file included from /usr/i686-w64-mingw32/sys-root/mingw/share/qt5/mkspecs/win32-g++/qplatformdefs.h:49:0, from /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/core/udsentry.h:29, from /home/abuild/rpmbuild/BUILD/kio-5.29.0/build/src/core/kio/udsentry.h:1, from /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/core/statjob.h:25, from /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/core/jobclasses.h:26, from /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/core/job.h:74, from /home/abuild/rpmbuild/BUILD/kio-5.29.0/build/src/core/kio/job.h:1, from /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.h:23, from /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:22: /usr/i686-w64-mingw32/sys-root/mingw/include/direct.h:59:15: note: declared here int __cdecl mkdir(const char *_Path) __MINGW_ATTRIB_DEPRECATED_MSVC2005; ^~~~~ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1220:5: error: 'uid_t' was not declared in this scope uid_t uid = getuid(); ^~~~~ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1222:35: error: 'QT_LSTAT' was not declared in this scope if (QT_LSTAT(trashDir_c, &buff) != 0) { ^ /home/abuild/rpmbuild/BUILD/kio-5.29.0/src/ioslaves/trash/trashimpl.cpp:1225:25: error: 'uid' was not declared in this scope if ((buff.st_uid == uid) // must be owned by user ^~~ Looks like class TrashImpl seems not to be ported to windows or is not intended to be used on windows. I tried locally to declare/define KIO_TRASH logging category in kio_trash_win.h|.cpp and am be able to compile kio_trash. -- You are receiving this mail because: You are watching all bug changes.