Page MenuHome GnuPG

gnupg-2.4.3 build failure
Closed, ResolvedPublic

Description

Hit this when building gnupg-2.4.3 (2.4.2 is fine):

make[2]: Leaving directory '/var/tmp/portage/app-crypt/gnupg-2.4.3/work/gnupg-2.4.3_build/dirmngr'
make[2]: Entering directory '/var/tmp/portage/app-crypt/gnupg-2.4.3/work/gnupg-2.4.3_build/dirmngr'
x86_64-pc-linux-gnu-gcc -std=gnu99       -I/usr/include/p11-kit-1 -Wall -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type      -ggdb3  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs    -ggdb3 -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  -lassuan -lksba -lgpg-error -L/usr/lib64 -lnpth  -lgnutls -lgcrypt -lgpg-error
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: server.o: in function `cmd_ad_query':
/var/tmp/portage/app-crypt/gnupg-2.4.3/work/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] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-crypt/gnupg-2.4.3/work/gnupg-2.4.3_build/dirmngr'
make[1]: *** [Makefile:632: all-recursive] Error 1
make: *** [Makefile:552: all] Error 2

Full log:

.

Let me know if more information is needed.

Details

Version
2.4.3

Event Timeline

gniibe changed the task status from Open to Testing.Jul 5 2023, 4:33 AM
gniibe claimed this task.
gniibe triaged this task as Normal priority.
gniibe added a subscriber: gniibe.

Thank you for your report.

I just found the problem too. Before coming this tracker, I pushed the change: rG9ae3cfcabec9: dirmngr: Enable the call of ks_ldap_help_variables when USE_LDAP.

We should make building with LDAP mandatory.

Thanks. Wouldn't that require OpenLDAP on every system with gnupg?

gniibe added a project: gnupg24.

Fixed in 2.4.4.