lber link error in gnupg-2.1.0beta3/dirmngr

John Clizbe JPClizbe at gingerbear.net
Sun Mar 3 04:38:02 CET 2013


Slackware 14.0 OpenLDAP 2.4.31

Get a link error  undefined reference to symbol 'ber_free' in dirmngr with
advisory message  "note: 'ber_free' is defined in DSO
/usr/lib/liblber-2.4.so.2 so try adding it to the linker command line"

Adding -llber to the LDAPLIBS value in dirmngr/Makefile fixes the problem, but
it'd probably be better if configure handled it.

Making all in dirmngr
make[2]: Entering directory `/tmp/gnupg-2.1.0beta3/dirmngr'
make  all-am
make[3]: Entering directory `/tmp/gnupg-2.1.0beta3/dirmngr'
gcc     -I/usr/include -O2 -march=i486 -mtune=i686 -Wall -Wno-pointer-sign
-Wpointer-arith   -o dirmngr-client dirmngr-client.o ../common/libcommon.a
no-libgcrypt.o ../gl/libgnu.a -lassuan -lgpg-error -lgpg-error
gcc   -O2 -march=i486 -mtune=i686 -Wall -Wno-pointer-sign -Wpointer-arith   -o
dirmngr_ldap dirmngr_ldap-dirmngr_ldap.o  ../common/libcommon.a no-libgcrypt.o
../gl/libgnu.a -lresolv  -lgpg-error -lldap
/usr/lib/gcc/i486-slackware-linux/4.7.2/../../../../i486-slackware-linux/bin/ld:
dirmngr_ldap-dirmngr_ldap.o: undefined reference to symbol 'ber_free'
/usr/lib/gcc/i486-slackware-linux/4.7.2/../../../../i486-slackware-linux/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: error: ld returned 1 exit status
make[3]: *** [dirmngr_ldap] Error 1
make[3]: Leaving directory `/tmp/gnupg-2.1.0beta3/dirmngr'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/gnupg-2.1.0beta3/dirmngr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gnupg-2.1.0beta3'
make: *** [all] Error 2


-- 
John P. Clizbe                      Inet: John (a) Gingerbear DAWT net
SKS/Enigmail/PGP-EKP                  or: John ( @ ) Enigmail DAWT net
FSF Assoc #995 / FSFE Fellow #1797  hkp://keyserver.gingerbear.net  or
     mailto:pgp-public-keys at gingerbear.net?subject=HELP

Q:"Just how do the residents of Haiku, Hawai'i hold conversations?"
A:"An odd melody / island voices on the winds / surplus of vowels"



More information about the Gnupg-devel mailing list