Created attachment 472012 [details, diff] Add missing includes app-crypt/gpgme-1.8.0-r3 does not compile with gcc-7. The reason is that two #include <functional> commands are missing. A corresponding patch is attached.
this issue should be opened upstream at https://dev.gnupg.org
https://dev.gnupg.org/T3151
Included upstream