I just built gpgme 1.0.0. I was getting errors like
engine-gpgsm.c:866: error: dereferencing pointer to incomplete type
Well, the “assuan” directory was not being built by default. By changing the main Makefile to include “assuan”, and “gpgme/Makefile” to include assuan, everything built and “make check” worked.
These problems go away if you use gpgme 1.0.1 instead.