Page MenuHome GnuPG

Problem compiling gnupg 1.2.1
Closed, ResolvedPublic

Description

Environment

GNU/Linux, gcc 3.2

Description

[...]
Making all in keyserver
gmake[2]: Entering directory `/tmp/gnupg-1.2.1/keyserver'
gcc -s -O3 -march=i686 -Wall -L/usr/local/BerkeleyDB.4.1/lib -lpthread -lgpm -o gpgkeys_hkp gpgkeys_hkp.o ../util/libutil.a
../util/libutil.a(secmem.o): In function `secmem_init':
secmem.o(.text+0x4a8): undefined reference to `cap_from_text'
../util/libutil.a(secmem.o): In function `init_pool':
secmem.o(.text+0x5fa): undefined reference to `cap_from_text'
secmem.o(.text+0x602): undefined reference to `cap_set_proc'
secmem.o(.text+0x62c): undefined reference to `cap_from_text'
secmem.o(.text+0x634): undefined reference to `cap_set_proc'
../util/libutil.a(secmem.o): In function `secmem_init':
secmem.o(.text+0x4b3): undefined reference to `cap_set_proc'
collect2: ld returned 1 exit status
gmake[2]: * [gpgkeys_hkp] Error 1
gmake[2]: Leaving directory `/tmp/gnupg-1.2.1/keyserver'
gmake[1]:
* [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/gnupg-1.2.1'
gmake: *** [all] Error 2

Fix

This can be fixed by adding -lcap to the compilation line

Release Note

Fixed for 1.2.2.