gnugp 2.4.3 fails to build with --disable-ldap

Matthias Apitz guru at unixarea.de
Mon Sep 25 14:45:20 CEST 2023


As the subject says:

cd gnupg-2.4.3
./configure --prefix=/home/sisis/scdaemon/usr-local --with-libgpg-error-prefix=/home/sisis/scdaemon/usr-local --with-libgcrypt-prefix=/home/sisis/scdaemon/usr-local --with-libassuan-prefix=/home/sisis/scdaemon/usr-local --with-libksba-prefix=/home/sisis/scdaemon/usr-local --with-npth-prefix=/home/sisis/scdaemon/usr-local --with-ntbtls-prefix=/home/sisis/scdaemon/usr-local --disable-ldap

make

...
gcc -std=gnu99 -I/home/sisis/scdaemon/usr-local/include -I/home/sisis/scdaemon/usr-local/include -I/home/sisis/scdaemon/usr-local/include -I/home/sisis/scdaemon/usr-local/include -I/home/sisis/scdaemon/usr-local/include -I/home/sisis/scdaemon/usr-local/include  -Wall -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -g -O2   -o dirmngr dirmngr.o server.o crlcache.o crlfetch.o fakecrl.o certcache.o domaininfo.o workqueue.o loadswdb.o cdblib.o misc.o ocsp.o validate.o dns-stuff.o http.o http-common.o http-ntbtls.o ks-action.o ks-engine-hkp.o ks-engine-http.o ks-engine-finger.o ks-engine-kdns.o dns.o  ../common/libcommonpth.a -lresolv  -L/home/sisis/scdaemon/usr-local/lib64 -lassuan -L/home/sisis/scdaemon/usr-local/lib64 -lksba -lgpg-error -L/home/sisis/scdaemon/usr-local/lib64 -lnpth -lpthread -L/home/sisis/scdaemon/usr-local/lib64 -lntbtls -lgpg-error  -L/home/sisis/scdaemon/usr-local/lib64 -lgcrypt -L/home/sisis/scdaemon/usr-local/lib64 -lgpg-error
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: server.o: in function `cmd_ad_query':
/home/sisis/scdaemon/gnupg-2.4.3/dirmngr/server.c:2779: undefined reference to `ks_ldap_help_variables'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:937: dirmngr] Fehler 1

There is an older closed bug against 2.3.8: https://dev.gnupg.org/T6239

How to fix this?

I helped me as workaround with:

touch /home/guru/scdaemon/gnupg-2.4.3/dirmngr/dirmngr

With this the 'make && make install' went fine.

	matthias

-- 
Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub



More information about the Gnupg-users mailing list