Opened 9 years ago
Closed 9 years ago
#6457 closed defect (fixed)
GnuPG-2.1.3 won't build without openldap
Reported by: | Wayne Blaszczyk | Owned by: | Fernando de Oliveira |
---|---|---|---|
Priority: | normal | Milestone: | 7.8 |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description
The following error occurs during make:
make[3]: Entering directory '/opt/sources/gnupg-2.1.3/dirmngr' gcc -DHAVE_CONFIG_H -I. -I.. -I../common -DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/usr/var\"" -I/usr/include/p11-kit-1 -g -O2 -Wall -Wno-pointer-sign -Wpointer-arith -MT ks-engine-ldap.o -MD -MP -MF .deps/ks-engine-ldap.Tpo -c -o ks-engine-ldap.o ks-engine-ldap.c ks-engine-ldap.c:43:19: fatal error: ldap.h: No such file or directory # include <ldap.h> ^ compilation terminated. Makefile:751: recipe for target 'ks-engine-ldap.o' failed
A --disable-ldap parameter doesn't seem to fix the issue.
Change History (4)
comment:1 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 9 years ago
I can confirm the issue. My system does not have ldap and failed with the error above. The switch --disable-dirmngr alone is enough to allow the build to complete.
I concur that ldap openldap should be promoted to recommended, but the --disable-ldap switch is not needed. I suspect it is only needed if ldap *is* installed, but you don't want it for this package.
Note:
See TracTickets
for help on using tickets.
Partially confirmed.
I've got ldap installed, and build fails with --disable-ldap. Consequently, it is required by something.
It is slightly indicated in your log, but having ldap and checking with -j1, further investigation led me to suspect dirmngr required it. It was confirmed.
It can be built without ldap, using the extra switches:
Therefore, openldap should be promoted to recommended, with the comment (required for dirmngr) and the two switches added together, in one <para> only, to Command Explanations.
Please after you test and if you agree with the solution, I will fix the book. Of course, if you have a better solution, it will very welcome.
Thanks for the report. Glad hearing from you!!!