I'm trying to run a small test with the HELib library, download it here Helib
Specifically explained here Tutorial
I have followed the steps correctly to install the necessary libraries. The problem is given when doing make HEcalc
, as I am new in this c++
I do not know how to solve it.
This is what I get:
user @ debian-9: ~ / Downloads / HEcalc $ make HEcalc g ++ -g -O2 -Wfatal-errors -Wshadow -Wall -I / usr / local / include -o HEcalc -I / home / user / Downloads / HElib-master / src HEcalc.cpp -L / usr / local / lib / home / user / Downloads / HElib-master / src / fhe.a -lntl -lgmp -lm /usr/local/lib/libntl.a(ZZ_pX1.o): In function
NTL::ZZ* NTL::details_pthread::key_wrapper::set<NTL::ZZ>(NTL::ZZ*)': /home/usuario/Descargas/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: referencia a
pthread_setspecific 'undefined /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: reference topthread_setspecific' sin definir /home/usuario/Descargas/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: referencia a
pthread_setspecific 'undefined /usr/local/lib/libntl.a(ZZ_pX1.o): In functionNTL::details_pthread::key_wrapper::key_wrapper(void (*)(void*))': /home/usuario/Descargas/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:656: referencia a
pthread_key_create 'undefined /usr/local/lib/libntl.a(ZZ_pX1.o): In functionNTL::ZZ* NTL::details_pthread::key_wrapper::set<NTL::ZZ>(NTL::ZZ*)': /home/usuario/Descargas/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: referencia a
pthread_setspecific 'undefined /usr/local/lib/libntl.a(ZZ_pX1.o): In functionNTL::details_pthread::key_wrapper::key_wrapper(void (*)(void*))': /home/usuario/Descargas/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:656: referencia a
pthread_key_create 'undefined /usr/local/lib/libntl.a(ZZ_pX1.o): In functionNTL::ZZ* NTL::details_pthread::key_wrapper::set<NTL::ZZ>(NTL::ZZ*)': /home/usuario/Descargas/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: referencia a
pthread_setspecific 'undefined /usr/local/lib/libntl.a(mat_ZZ_p.o): In functionNTL::ZZ_p* NTL::details_pthread::key_wrapper::set<NTL::ZZ_p>(NTL::ZZ_p*)': /home/usuario/Descargas/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: referencia a
pthread_setspecific 'undefined /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: reference topthread_setspecific' sin definir /usr/local/lib/libntl.a(FFT.o): En la función
NTL :: Vec > * NTL :: details_pthread :: key_wrapper :: set > > (NTL :: Vec > ) ': /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: reference topthread_setspecific' sin definir /usr/local/lib/libntl.a(FFT.o): En la función
NTL :: details_pthread :: key_wrapper :: key_wrapper ( void () (void *)) ': /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:656: reference topthread_key_create' sin definir /usr/local/lib/libntl.a(FFT.o): En la función
NTL :: Vec > * NTL :: details_pthread :: key_wrapper :: set > > (NTL :: Vec > ) ': /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: reference topthread_setspecific' sin definir ...... ..... muchas líneas similares ...... ...... /usr/local/lib/libntl.a(quad_float.o): En la función
NTL :: RR NTL :: details_pthread :: key_wrapper :: set (NTL :: RR *) ': /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: reference topthread_setspecific' sin definir /usr/local/lib/libntl.a(quad_float.o): En la función
NTL :: details_pthread :: key_wrapper :: key_wrapper ( void () (void )) ': /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:656: reference topthread_key_create' sin definir /usr/local/lib/libntl.a(quad_float.o): En la función
NTL :: RR * NTL :: details_pthread :: key_wrapper :: set (NTL :: RR *) ': /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: reference topthread_setspecific' sin definir /usr/local/lib/libntl.a(quad_float.o): En la función
NTL :: details_pthread :: key_wrapper :: key_wrapper ( void () (void )) ': /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:656: reference topthread_key_create' sin definir /usr/local/lib/libntl.a(quad_float.o): En la función
NTL :: RR * NTL :: details_pthread :: key_wrapper :: set (NTL :: RR *) ': /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:664: reference topthread_setspecific' sin definir /usr/local/lib/libntl.a(quad_float.o): En la función
NTL :: details_pthread :: key_wrapper :: key_wrapper ( void () (void )) ': /home/user/downloads/ntl-11.0.0/ntl-11.0.0/src/../include/NTL/tools.h:656: reference to 'pthread_key_create' without defining collect2: error: ld returned 1 exit status Makefile: 11: failure in the instructions for the 'HEcalc' target make: *** [HEcalc] Error 1
I guess the problem is to link the bookstores, but as I said I am new and I do not know what happens ...
Any ideas?
Thanks in advance!