Hello.

I try to compile GnuPG 2.5.5 with self compiled libraries from the
download webpage and support from Debian/Devuan stable libraries for
bzip2, gnutls and sqlite3. Without sqlite3 it works, even with the
environment variables for gnutls support:

LIBGNUTLS_CFLAGS="-I /usr/include/gnutls" LIBGNUTLS_LIBS="-L 
/usr/lib/x86_64-linux-gnu -l gnutls" ./configure --prefix=/tmp/canary/install


Using the environment variables to compile with sqlite3 support, the
linker doesn't find several symbols. The configure command is in an
attached file and the essential part of the `make' log is attached, too.


The command line variables as prefix relative to the line above are:

SQLITE3_CFLAGS="-I /usr/include" SQLITE3_LIBS="-L /usr/lib/x86_64-linux-gnu -l 
sqlite3"


The undefined references are (absolute path prefix stripped):

g10/gpg.c:3974: undefined reference to `assuan_control'
g10/pkglue.c:603: undefined reference to `gcry_kem_encap'
/usr/bin/ld: g10/pkglue.c:659: undefined reference to `gcry_kem_encap'
common/asshelp.c:542: undefined reference to `gpgrt_process_spawn'
common/kem.c:141: undefined reference to `gcry_md_hash_buffers_ext'

This should be rather trivial to solve but I don't see what I am
missing. Something with the order of libraries? Can you give me a
hint what needs to be checked?
-- 
kind regards
Frank
SQLITE3_CFLAGS="-I /usr/include" SQLITE3_LIBS="-L /usr/lib/x86_64-linux-gnu -l 
sqlite3" LIBGNUTLS_CFLAGS="-I /usr/include/gnutls" LIBGNUTLS_LIBS="-L 
/usr/lib/x86_64-linux-gnu -l gnutls" ./configure --prefix=/tmp/canary/install 
--disable-photo-viewers --disable-rpath
Making all in g10
make[2]: Entering directory '/tmp/canary/compile/gnupg-2.5.5/g10'
gcc -I /usr/include -I/tmp/canary/install/include -I/tmp/canary/install/include 
-I/tmp/canary/install/include -I/tmp/canary/install/include -Wall 
-Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -g -O2   -o gpg gpg.o 
keyedit.o server.o build-packet.o compress.o compress-bz2.o free-packet.o 
getkey.o expand-group.o call-keyboxd.o keydb.o keyring.o seskey.o kbnode.o 
mainproc.o armor.o mdfilter.o textfilter.o progress.o misc.o rmd160.o 
openfile.o keyid.o parse-packet.o cpr.o plaintext.o sig-check.o keylist.o 
pkglue.o objcache.o ecdh.o pkclist.o skclist.o pubkey-enc.o passphrase.o 
decrypt.o decrypt-data.o cipher-cfb.o cipher-aead.o encrypt.o sign.o verify.o 
revoke.o dearmor.o import.o export.o migrate.o delkey.o keygen.o helptext.o 
keyserver.o call-dirmngr.o photoid.o call-agent.o trust.o trustdb.o tdbdump.o 
tdbio.o tofu.o gpgsql.o card-util.o exec.o key-clean.o key-check.o 
../kbx/libkeybox.a ../common/libcommonpth.a ../regexp/libregexp.a 
../common/libgpgrl.a -lz -lbz2   -L /usr/lib/x86_64-linux-gnu -l sqlite3 
-L/tmp/canary/install/lib -lgcrypt  -L/tmp/canary/install/lib -lassuan 
-L/tmp/canary/install/lib -lnpth -L/tmp/canary/install/lib -lgpg-error    
/usr/bin/ld: gpg.o: in function `main':
/tmp/canary/compile/gnupg-2.5.5/g10/gpg.c:3974: undefined reference to 
`assuan_control'
/usr/bin/ld: pkglue.o: in function `do_encrypt_kem':
/tmp/canary/compile/gnupg-2.5.5/g10/pkglue.c:603: undefined reference to 
`gcry_kem_encap'
/usr/bin/ld: /tmp/canary/compile/gnupg-2.5.5/g10/pkglue.c:659: undefined 
reference to `gcry_kem_encap'
/usr/bin/ld: ../common/libcommonpth.a(libcommonpth_a-asshelp.o): in function 
`start_new_service':
/tmp/canary/compile/gnupg-2.5.5/common/asshelp.c:542: undefined reference to 
`gpgrt_process_spawn'
/usr/bin/ld: ../common/libcommonpth.a(libcommonpth_a-kem.o): in function 
`compute_kmac256':
/tmp/canary/compile/gnupg-2.5.5/common/kem.c:141: undefined reference to 
`gcry_md_hash_buffers_ext'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:865: gpg] Error 1
make[2]: Leaving directory '/tmp/canary/compile/gnupg-2.5.5/g10'
make[1]: *** [Makefile:631: all-recursive] Error 1
make[1]: Leaving directory '/tmp/canary/compile/gnupg-2.5.5'
make: *** [Makefile:551: all] Error 2

Attachment: pgpuikejxsUii.pgp
Description: OpenPGP digital signature

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel

Reply via email to