On Fri, 12 Apr 2019 14:38:02 +0200, Jan Girlich wrote:
Can you please confirm that /home/jan/Projekte/sequoia/target/debug contains libsequoia_openpgp_ffi.so.
Yes, it does:
% ls /home/jan/Projekte/sequoia/target/debug/libsequoia_openpgp_ffi.so /home/jan/Projekte/sequoia/target/debug/libsequoia_openpgp_ffi.so*
hm, this is really ineresting. I confirmed it's the following compiler call, that's failing:
cc -I../include -O0 -g -Wall -Werror -L/home/jan/Projekte/sequoia/target/debug -lsequoia_openpgp_ffi -o "/home/jan/Projekte/sequoia/target/debug/c-examples/openpgp-ffi/example" "example.c"
I can confirm that it finds the included openpgp.h file in ../includes. The -L path is correct and the libsequoia_openpgp_ffi.so is found as well.
The lib is also compiled with C and exports the requested symbol:
% nm -D --defined-only ../../target/debug/libsequoia_openpgp_ffi.so | grep "pgp_tpk_from_bytes" 0000000000106430 T pgp_tpk_from_bytes
(No mangled function names here)
I don't understand why it's saying the reference would be undefined.
Any other idea what to check?
That's very strange and not something I've encountered :/. The only think I can think of is some toolchain issue.
You mentioned that you want to try Sequoia on Ubuntu or Debian. We at least know that Sequoia works on Debian. Perhaps try it there?
Please keep us up to date.
Thanks,
Neal