[kleopatra] [Bug 459861] New: Compile error from missing #include lines

Ricky Payne bugzilla_noreply at kde.org
Fri Sep 30 14:50:30 BST 2022


https://bugs.kde.org/show_bug.cgi?id=459861

            Bug ID: 459861
           Summary: Compile error from missing #include lines
    Classification: Applications
           Product: kleopatra
           Version: git master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: aheinecke at gnupg.org
          Reporter: rialpa84 at gmail.com
                CC: kdepim-bugs at kde.org, mutz at kde.org
  Target Milestone: ---

SUMMARY
***
Compile doesn't finish with errors. Readding some removed includes from
https://invent.kde.org/pim/kleopatra/-/commit/ee130b3a32b990992650d766590094239b141bda
fixes the build and all tests pass.
***


STEPS TO REPRODUCE
1. run kdesrc-build
2. 
3. 

OBSERVED RESULT

Compile errors

[ 45%] Building CXX object
src/CMakeFiles/kleopatra_bin.dir/commands/setpivcardapplicationadministrationkeycommand.cpp.o
/zeta/projects/kdesrc/src/kleopatra/src/commands/revokekeycommand.cpp: In
member function ‘std::unique_ptr<QGpgME::RevokeKeyJob>
Kleo::RevokeKeyCommand::Private::startJob()’:
/zeta/projects/kdesrc/src/kleopatra/src/commands/revokekeycommand.cpp:186:61:
error: ‘openpgp’ is not a member of ‘QGpgME’

and this one after re-adding #include <QGpgME/Protocol> to revokekeycommand.cpp
from the previous #include removals commit

[ 27%] Building CXX object
src/CMakeFiles/kleopatra_bin.dir/commands/signencryptfilescommand.cpp.o
/zeta/projects/kdesrc/src/kleopatra/src/commands/setprimaryuseridcommand.cpp:
In member function ‘void
Kleo::Commands::SetPrimaryUserIDCommand::Private::createJob()’:
/zeta/projects/kdesrc/src/kleopatra/src/commands/setprimaryuseridcommand.cpp:97:34:
error: ‘openpgp’ is not a member of ‘QGpgME’
   97 |     const auto backend = QGpgME::openpgp();


EXPECTED RESULT

kleopatra to compile

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: kdesrc-build git master
KDE Frameworks Version: ...
Qt Version: 5.15.6

ADDITIONAL INFORMATION

Readding the removed #include <QGpgME/Protocol>  to
src/commands/revokekeycommand.cpp and src/commands/setprimaryuseridcommand.cpp
allowed the compile to finish and tests to pass.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Kdepim-bugs mailing list