gpgme 1.0 has unchecked dependency on libassuan

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


-----BEGIN PGP SIGNED MESSAGE-----
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
.libs/engine-gpgsm.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/libgpgme.la
mkdir .libs
gcc -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -o
.libs/t-encrypt t-encrypt.o  ../../gpgme/.libs/libgpgme.so
../../gpgme/.libs/libgpgme.so: undefined reference to
`assuan_get_active_fds'
../../gpgme/.libs/libgpgme.so: undefined reference to `assuan_read_line'
../../gpgme/.libs/libgpgme.so: undefined reference to `assuan_disconnect'
../../gpgme/.libs/libgpgme.so: undefined reference to
`assuan_pipe_connect'
../../gpgme/.libs/libgpgme.so: undefined reference to
`assuan_pending_line'
../../gpgme/.libs/libgpgme.so: undefined reference to `assuan_transact'
../../gpgme/.libs/libgpgme.so: 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!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQFBXWRYs/NR4JuTKG8RAt1EAJ9PHpCBMJY9ODxMonjFs8dTzLkimACfVuB4
15s5gujU+/R4ZCXLtDEDKwA=
=6UYo
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list