Page MenuHome GnuPG

master branch fails to build without `./configure --disable-ldap`
Closed, InvalidPublic

Description

If i use a standard ./configure --sysconfdir=/etc --enable-maintainer-mode && make as directed by ./autogen.sh on the master branch, i see this failure:

gcc -DHAVE_CONFIG_H -I. -I..  -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="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/usr/local/var\""         -std=gnu99       -I/usr/include/p11-kit-1  -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wformat -Wno-format-y2k -Wformat-security -W -Wno-sign-compare -Wno-format-zero-length -Wno-missing-field-initializers -Wdeclaration-after-statement -Wlogical-op -Wvla -Wno-pointer-sign -Wpointer-arith -g -O2 -MT ks-action.o -MD -MP -MF .deps/ks-action.Tpo -c -o ks-action.o ks-action.c
ks-action.c: In function ‘ks_action_del’:
ks-action.c:570:17: error: implicit declaration of function ‘ks_ldap_del’; did you mean ‘ks_ldap_get’? [-Wimplicit-function-declaration]
  570 |           err = ks_ldap_del (ctrl, uri->parsed_uri, patterns);
      |                 ^~~~~~~~~~~
      |                 ks_ldap_get
make[2]: *** [Makefile:1046: ks-action.o] Error 1

If i add --disable-ldap to the ./configure invocation, then the build succeeds. I don't see this problem on STABLE-BRANCH-2-4.

Event Timeline

werner removed a project: Bug Report.
werner added a subscriber: werner.

master is development and you can't expect that it always build on all platforms.