Open hanvinke opened 3 years ago
My error. I thought I had gnutls-openssl (for Arch Linux) installed. But I had to remove it because pamac had recently issues with pacman Pacman v6.0.0. However now I am getting another build error :
[ 42%] Linking C executable tests_stub_sync /usr/bin/ld: libgetdns.a(val_secalgo.c.obj): undefined reference to symbol '__gmpz_clear' /usr/bin/ld: /usr/lib/libgmp.so.10: error adding symbols: DSO missing from command line collect2: fout: ld gaf exit-status 1 terug make[2]: [CMakeFiles/tests_stub_sync.dir/build.make:108: tests_stub_sync] Fout 1 make[1]: [CMakeFiles/Makefile2:172: CMakeFiles/tests_stub_sync.dir/all] Fout 2 make: *** [Makefile:146: all] Fout 2
Sorry, I have to change the title.
Seems some missing linking to the gmp library when building with gnutls enabled. Some useful code on the internet: https://raw.githubusercontent.com/conan-io/conan-center-index/master/recipes/getdns/all/patches/1.6.0-0003-let-find-modules-use-pkgconfig.patch ..
-# May need gmp library on Unix. -if (UNIX)
- find_library(NETTLE_GMP_LIBRARY gmp)
- if (NETTLE_GMP_LIBRARY)
- list(APPEND NETTLE_LIBRARIES "${NETTLE_GMP_LIBRARY}")
- endif ()
Etc.
Trying to build v.1.7.0 from tarball. Am I missing sourcecode?