error building pinentry 0.9.2 with libsecret

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 13 21:14:26 CEST 2015


hi there pinentry people--

trying to build pinentry 0.9.2 with libsecret on a debian testing
system, and i get the following error when linking
pinentry/pinentry-curses.c:

gcc  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-pointer-sign  -Wl,-z,relro -Wl,--as-needed -o pinentry-curses pinentry-curses.o -lsecret-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0  ../pinentry/libpinentry.a ../pinentry/libpinentry-curses.a ../assuan/libassuan.a ../secmem/libsecmem.a  -lncursesw  
../pinentry/libpinentry.a(password-cache.o): In function `password_cache_save':
/home/dkg/src/pkg-gnupg/pinentry/pinentry/password-cache.c:80: undefined reference to `secret_password_store_sync'
/home/dkg/src/pkg-gnupg/pinentry/pinentry/password-cache.c:89: undefined reference to `g_error_free'
../pinentry/libpinentry.a(password-cache.o): In function `password_cache_lookup':
/home/dkg/src/pkg-gnupg/pinentry/pinentry/password-cache.c:109: undefined reference to `secret_password_lookup_nonpageable_sync'
/home/dkg/src/pkg-gnupg/pinentry/pinentry/password-cache.c:131: undefined reference to `secret_password_free'
/home/dkg/src/pkg-gnupg/pinentry/pinentry/password-cache.c:117: undefined reference to `g_error_free'
collect2: error: ld returned 1 exit status
Makefile:389: recipe for target 'pinentry-curses' failed
make: *** [pinentry-curses] Error 1

I'm a little confused, because i see the -lsecret-1 in the linking line,
and i'd expect secret_password_store to be defined there.

And i'd think that g_error_free would be available from -lglib-2.0.

i think Kristian Fiskerstrand is seeing the same concerns building on
gentoo.

Presumably it is working for you upstream.  Any hints on what we might
be missing?

    --dkg



More information about the Gnupg-devel mailing list