On illumos Secure Memory is not implemented and thus following two tests from libgcrypt 1.8.5 test suite fail:
t-secmem: line 176: gcry_control (GCRYCTL_INIT_SECMEM, pool_size, 0) failed: General error FAIL: t-secmem t-sexp: line 1174: gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0) failed: General error FAIL: t-sexp
Since Secure Memory is not implemented, perhaps the those two test can be just SKIPped.