Page MenuHome GnuPG

GNuPG compile error
Closed, ResolvedPublic

Description

In file included from http-common.c:26:0:
dirmngr.h:32:18: fatal error: ksba.h: No such file or directory
#include <ksba.h>

^

compilation terminated.
make[2]: * [t_ldap_parse_uri-http-common.o] Error 1
make[2]: Leaving directory `/scratch/gnupg/gnupg-2.2.26/dirmngr'
make[1]:
* [all-recursive] Error 1
make[1]: Leaving directory `/home/scratch/ramesh/gnupg/gnupg-2.2.26'
make: *** [all] Error 2

Details

Version
2.2.26

Event Timeline

Please provide detailed information about the build peoblem. An arbitrary paste from a build does not make up a bug report. If you need support building GnuPG you may want to look for a commercial offer or to ask on a mailing list. From what I see I assume you have an incomplete installation of the supporting libraries.

Build Result:

GnuPG v2.2.26 has been configured as follows:

Revision:  c77bb1a75  (51067)
Platform:  GNU/Linux (x86_64-pc-linux-gnu)

OpenPGP:   yes
S/MIME:    yes
Agent:     yes
Smartcard: yes 
G13:       yes
Dirmngr:   yes
Gpgtar:    yes
WKS tools: yes

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
TLS support:         gnutls
TOFU support:        yes
Tor support:         yes

Error in "make":

In file included from http-common.c:26:0:
dirmngr.h:32:18: fatal error: ksba.h: No such file or directory
#include <ksba.h>

^

compilation terminated.
make[2]: *** [t_ldap_parse_uri-http-common.o] Error 1

werner triaged this task as Low priority.Jan 5 2021, 9:12 AM
werner edited projects, added Support, toolchain, gnupg (gpg22); removed Bug Report.

Dear Werner,

Can you please share me the list of required libraries to build the package.

I have installed the below libraries

Libgpg-error
Libgcrypt
Libassuan
Libksba
nPth

Regards,
Ramesh Rella.

The configure run tells you what libraries are missing - none in your case. However, something is wrong with your development setup: The configure run detected libksba but cc compiler did not found it anymore. Check that you don't have any special envvars set etc. What is the actual compiler command which failed (make sure not to pass V=0 to make for this).

werner claimed this task.