Compiling with Sqlite3

Frank Guthausen <[email protected]>
Newsgroups gmane.comp.encryption.gpg.devel
Message-ID <[email protected]>
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

_______________________________________________
Gnupg-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-devel
configure-command.sh.txt (text/plain, 267 B)
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
make-snippet-01.log.txt (text/plain, 2.3 KB)
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
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEEclvqskGlryryYY6X/ZYkYCEQhlMFAmfmoHUACgkQ/ZYkYCEQ
hlPaVgv/UPtXIS/BIOIiXQ/2blSNyuCIf2uQj/vERcMaAiOLW41ccBr427uhBweo
STkfuA6iFAipHUUFd1gZEEUNkPHUhR3Eg7rWm4fd3AcuZDw0WQy2sC/ekRm/r2Ip
lFeQYeBrtRn/vPjamgk5IYJQhbI1//7CLOjsoVzmES+KYC7elSQS5hD8akC38ULP
P9Lj5SXgy4luTq60XyDUdJUuppZTZWCh6W1j7Rh+BKlsuasgweT66ACbfkOwPSsC
93DUbnJtggIbRhE4YytLuPvcFdDnc47URxwmuZ5oj6avfTBr/FWYiz5WEAZ+pukZ
z3dZcLHyRFk3S+MSAOnEm5vaLuyPXsHsB9IgkXGzLueHoxwO7p30JSHIvZRrXnnF
baT+y0dkcS6E76Q3zzuBGkMzuyPG/3h9Svhq6++QekbJlZ0y3MvsUy0WpQBiIi7k
vV2osg04biQHNbW54dWVsoPnSbO2nztPevPCY1IoQc9v05ia0wPHEOpuN/T1xgea
sYfz2Fvb
=RM7r
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.