gpgme 1.0 has unchecked dependency on libassuan

Mark H. Wood mwood at IUPUI.Edu
Fri Oct 1 16:06:12 CEST 2004

Hash: SHA1

gpgme 1.0 fails to build on a Linux 2.4/glibc 2.3 system when libassuan is
not installed:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -g -O2 -Wall -Wcast-align
- -Wshadow -Wstrict-prototypes -MT engine-gpgsm.lo -MD -MP -MF
.deps/engine-gpgsm.Tpo -c engine-gpgsm.c  -fPIC -DPIC -o
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory
engine-gpgsm.c:41:20: assuan.h: No such file or directory
engine-gpgsm.c:59: parse error before "ASSUAN_CONTEXT"
engine-gpgsm.c:59: warning: no semicolon at end of struct or union

and so on.

I wonder whether engine-gpgsm should be built at all, since I don't have
gpgsm either (and this was correctly detected by the configure script).

[time passes]

Okay, I built and installed libassuan; deleted, re-unpacked, and
reconfigured gpgme; and now gpgme compiles but does not link, failing to
even request libassuan:

/bin/sh ../../libtool --mode=link gcc  -g -O2 -Wall -Wcast-align -Wshadow
- -Wstrict-prototypes   -o t-encrypt  t-encrypt.o ../../gpgme/
mkdir .libs
gcc -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -o
.libs/t-encrypt t-encrypt.o  ../../gpgme/.libs/
../../gpgme/.libs/ undefined reference to
../../gpgme/.libs/ undefined reference to `assuan_read_line'
../../gpgme/.libs/ undefined reference to `assuan_disconnect'
../../gpgme/.libs/ undefined reference to
../../gpgme/.libs/ undefined reference to
../../gpgme/.libs/ undefined reference to `assuan_transact'
../../gpgme/.libs/ undefined reference to `assuan_write_line'
collect2: ld returned 1 exit status
make[3]: *** [t-encrypt] Error 1
make[3]: Leaving directory `/home/mwood/build/gpgme-1.0.0/tests/gpg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mwood/build/gpgme-1.0.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mwood/build/gpgme-1.0.0'
make: *** [all] Error 2

I read README to mean that gpgsm is supported but not a prerequisite, but
this appears to be incorrect.

- -- 
Mark H. Wood, Lead System Programmer   mwood at IUPUI.Edu
Open-source executable:  $0.00.  Source:  $0.00  Control:  priceless!

Version: GnuPG v1.2.3 (GNU/Linux)
Comment: pgpenvelope 2.10.2 -


More information about the Gnupg-devel mailing list