Page MenuHome GnuPG

Compilation failure: gpgme-tool.c:36:20: error: assuan.h: No such file or directory
Closed, ResolvedPublic

Description

On my Mac OS 10.6.3 "Snow Leopard" system, I was having trouble compiling gpgme
because libassuan was not installed. I already have gnugpg 1.4.10 installed. I
was able to compile it after installing libassuan.

From looking at the configure.ac file, the libassuan check appears to only be
required when compiling with gpgsm or g13 support (which I'm not). However, the
file src/gpgme-tool.c unconditionally #includes assuan.h in two places and uses
structures from it such as assuan_context_t.

I would be happy to provide a patch, but I'm not sure which way this is supposed
to go. Should libassuan be required and have the configure script halt when
it's missing or should the code that depends on libassuan be within an #if block
to keep it from being compiled when libassuan isn't present?

Thanks for your time!

Details

Version
SVN 1460

Event Timeline

sfisher added projects: Bug Report, gpgme.
sfisher added a subscriber: sfisher.

libassuan is a hard requirement for gpgme since version 1.3. And yes, configure
should complain about it.

werner claimed this task.

1467 has an improved check.