Unable to compile GnuPG 2.1 beta 3

Alphazo alphazo at gmail.com
Tue Dec 20 18:23:26 CET 2011

I'm trying to compile the newly released GnuPG 2.1 beta 3 but it
fails. First I had to update my libassuan to 2.0.3 but now I get this:

gcc -DHAVE_CONFIG_H -I. -I..  -I../gl -I../intl -I../common
-DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\""
-DGNUPG_LOCALSTATEDIR="\"/usr/var\""          -march=x86-64
-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
-D_FORTIFY_SOURCE=2 -O3 -Wall -Wcast-align -Wshadow
-Wstrict-prototypes -Wformat -Wno-format-y2k -Wformat-security -W
-Wno-sign-compare -Wno-missing-field-initializers
-Wdeclaration-after-statement -Wno-pointer-sign -Wpointer-arith -MT
dirmngr_ldap-dirmngr_ldap.o -MD -MP -MF
.deps/dirmngr_ldap-dirmngr_ldap.Tpo -c -o dirmngr_ldap-dirmngr_ldap.o
`test -f 'dirmngr_ldap.c' || echo './'`dirmngr_ldap.c
mv -f .deps/dirmngr_ldap-dirmngr_ldap.Tpo .deps/dirmngr_ldap-dirmngr_ldap.Po
gcc   -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -O3 -Wall -Wcast-align
-Wshadow -Wstrict-prototypes -Wformat -Wno-format-y2k
-Wformat-security -W -Wno-sign-compare -Wno-missing-field-initializers
-Wdeclaration-after-statement -Wno-pointer-sign -Wpointer-arith
-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o
dirmngr_ldap dirmngr_ldap-dirmngr_ldap.o  ../common/libcommon.a
no-libgcrypt.o ../gl/libgnu.a -lresolv  -lgpg-error -lldap
/usr/bin/ld: dirmngr_ldap-dirmngr_ldap.o: undefined reference to
symbol 'ber_free'
/usr/bin/ld: note: 'ber_free' is defined in DSO
/usr/lib/liblber-2.4.so.2 so try adding it to the linker command line
/usr/lib/liblber-2.4.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [dirmngr_ldap] Error 1

In the meantime, here are the package I already have installed on my system:
- libldap 2.4.28
- curl 7.23.1
- bzip2 1.0.6
- zlib 1.2.5
- libksba 1.2.0
- libgpg-error 1.10
- libgcrypt 1.5.0
- pth 2.0.7
- libusb-compat 0.1.3
- libassuan 2.0.3
- texinfo 4.13a
- readline 6.2.002
- pinentry 0.8.1

Do I have one the dependency not up to date for building this beta3?


More information about the Gnupg-devel mailing list