gnupg 2.1.4 fails to build with --disable-gpgsm

HW42 hw42 at ipsumj.de
Thu May 14 16:08:58 CEST 2015


Hi,

when I try to build gnupg 2.1.4 with --disable-gpgsm the build fails.

$ ./configure --disable-gpgsm --disable-gpgtar
[ ... ]
        GnuPG v2.1.4 has been configured as follows:

        Revision:  a67ead6  (42622)
        Platform:  GNU/Linux (x86_64-unknown-linux-gnu)

        OpenPGP:   yes
        S/MIME:    no
        Agent:     yes
        Smartcard: yes (without internal CCID driver)
        G13:       yes
        Dirmngr:   yes
        Gpgtar:    no

        Protect tool:      (default)
        LDAP wrapper:      (default)
        Default agent:     (default)
        Default pinentry:  (default)
        Default scdaemon:  (default)
        Default dirmngr:   (default)

        Dirmngr auto start:  yes
        Readline support:    yes
        LDAP support:        yes
        DNS SRV support:     yes
        TLS support:         gnutls

$ make
[ ... ]
mv -f .deps/getkey.Tpo .deps/getkey.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I../common
-DLOCALEDIR=\"/usr/local/share/locale\"
-DGNUPG_BINDIR="\"/usr/local/bin\""
-DGNUPG_LIBEXECDIR="\"/usr/local/libexec\""
-DGNUPG_LIBDIR="\"/usr/local/lib/gnupg\""
-DGNUPG_DATADIR="\"/usr/local/share/gnupg\""
-DGNUPG_SYSCONFDIR="\"/usr/local/etc/gnupg\""
-DGNUPG_LOCALSTATEDIR="\"/usr/local/var\""
-I/tmp/b/libgcrypt-1.6.3/build/include
-I/tmp/b/libgpg-error-1.19/build/include
-I/tmp/b/libassuan-2.2.0/build/include
-I/tmp/b/libgpg-error-1.19/build/include
-I/tmp/b/libgpg-error-1.19/build/include -Wall -Wno-pointer-sign
-Wpointer-arith -MT keydb.o -MD -MP -MF .deps/keydb.Tpo -c -o keydb.o
keydb.c
In file included from keydb.c:37:0:
../kbx/keybox.h:36:19: fatal error: ksba.h: No such file or directory
 # include <ksba.h>
                   ^
compilation terminated.
Makefile:775: recipe for target 'keydb.o' failed
make[2]: *** [keydb.o] Error 1
make[2]: Leaving directory '/tmp/b/gnupg-2.1.4/g10'
Makefile:576: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/b/gnupg-2.1.4'
Makefile:495: recipe for target 'all' failed
make: *** [all] Error 2
$ export CFLAGS="$CFLAGS $(ksba-config --cflags)" # workaroud 1
$ ./configure --disable-gpgsm --disable-gpgtar
[ ... ]
$ make
[ ... ]
make[2]: *** No rule to make target '../kbx/libkeybox.a', needed by
'gpg2'.  Stop.
make[2]: Leaving directory '/tmp/b/gnupg-2.1.4/g10'
Makefile:576: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/b/gnupg-2.1.4'
Makefile:495: recipe for target 'all' failed
make: *** [all] Error 2
$ make kbx=kbx # workaround 2
[ ... ]
$ # successful build

Without the --disable-gpgtar there is another missing include error.

HW42

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20150514/43155b06/attachment.sig>


More information about the Gnupg-devel mailing list