cryptobiu / BMR-Protocols

Protocols that uses libscapi
0 stars 1 forks source link

Fail to compile #1

Closed erlichsefi closed 5 years ago

erlichsefi commented 5 years ago

I'm trying to complie DDHbasedBMROnline, but i'm getting:

Protocols/Efficient_Scalable_Constant-Round_MPC_via_Garbled_Circuits/DDHbasedBMROnline$ make Scanning dependencies of target HomOnlineTest.out [ 11%] Linking CXX executable HomOnlineTest.out CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function NTLWrapper::getGenerators(NTL::ZZ*, int)': NTLWrapper.cpp:(.text+0x3c2): undefined reference to_ntl_gssub(_ntl_gbigint_body*, long, _ntl_gbigint_body)' NTLWrapper.cpp:(.text+0x531): undefined reference to _ntl_gssub(_ntl_gbigint_body*, long, _ntl_gbigint_body**)' CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In functionNTLWrapper::invGen(NTL::ZZ&, NTL::ZZ const&, NTL::ZZ const&)': NTLWrapper.cpp:(.text+0x89c): undefined reference to `_ntl_gssub(_ntl_gbigint_body*, long, _ntl_gbigint_body)' collect2: error: ld returned 1 exit status CMakeFiles/HomOnlineTest.out.dir/build.make:188: recipe for target 'HomOnlineTest.out' failed make[2]: [HomOnlineTest.out] Error 1 CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/HomOnlineTest.out.dir/all' failed make[1]: [CMakeFiles/HomOnlineTest.out.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

liorko87 commented 5 years ago

Hi Sefi,

I added instructions to compile the project correctly. Please take a look at dcops branch. Generally speaking you will need to install ntl-9.10.0 at your home directory.

Lior

erlichsefi commented 5 years ago

Thank you, however, compile still fails with:

-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/Protocols/Efficient_Scalable_Con                                                                             stant-Round_MPC_via_Garbled_Circuits/DDHbasedBMROnline
[ 11%] Linking CXX executable HomOnlineTest.out
CMakeFiles/HomOnlineTest.out.dir/main.cpp.o: In function `NTLWrapper::~NTLWrappe                                                                             r()':
main.cpp:(.text._ZN10NTLWrapperD2Ev[_ZN10NTLWrapperD5Ev]+0xe): undefined referen                                                                             ce to `_ntl_gfree(_ntl_gbigint_body*)'
main.cpp:(.text._ZN10NTLWrapperD2Ev[_ZN10NTLWrapperD5Ev]+0x1c): undefined refere                                                                             nce to `_ntl_gfree(_ntl_gbigint_body*)'
main.cpp:(.text._ZN10NTLWrapperD2Ev[_ZN10NTLWrapperD5Ev]+0x2a): undefined refere                                                                             nce to `_ntl_gfree(_ntl_gbigint_body*)'
main.cpp:(.text._ZN10NTLWrapperD2Ev[_ZN10NTLWrapperD5Ev]+0x38): undefined refere                                                                             nce to `_ntl_gfree(_ntl_gbigint_body*)'
main.cpp:(.text._ZN10NTLWrapperD2Ev[_ZN10NTLWrapperD5Ev]+0x46): undefined refere                                                                             nce to `_ntl_gfree(_ntl_gbigint_body*)'
CMakeFiles/HomOnlineTest.out.dir/main.cpp.o:main.cpp:(.text._ZN10NTLWrapperD2Ev[                                                                             _ZN10NTLWrapperD5Ev]+0x54): more undefined references to `_ntl_gfree(_ntl_gbigin                                                                             t_body*)' follow
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::NTLW                                                                             rapper()':
NTLWrapper.cpp:(.text+0x71): undefined reference to `_ntl_gintoz(long, _ntl_gbig                                                                             int_body**)'
NTLWrapper.cpp:(.text+0x87): undefined reference to `_ntl_gfree(_ntl_gbigint_bod                                                                             y*)'
NTLWrapper.cpp:(.text+0xb4): undefined reference to `_ntl_gfree(_ntl_gbigint_bod                                                                             y*)'
NTLWrapper.cpp:(.text+0xc2): undefined reference to `_ntl_gfree(_ntl_gbigint_bod                                                                             y*)'
NTLWrapper.cpp:(.text+0xd0): undefined reference to `_ntl_gfree(_ntl_gbigint_bod                                                                             y*)'
NTLWrapper.cpp:(.text+0xde): undefined reference to `_ntl_gfree(_ntl_gbigint_bod                                                                             y*)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o:NTLWrapper.cpp:(.text+0xec): m                                                                             ore undefined references to `_ntl_gfree(_ntl_gbigint_body*)' follow
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::isPr                                                                             imitiveRoot(NTL::ZZ const&, int)':
NTLWrapper.cpp:(.text+0x1a7): undefined reference to `_ntl_gcopy(_ntl_gbigint_bo                                                                             dy*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x1cc): undefined reference to `_ntl_gmulmod(_ntl_gbigint_                                                                             body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x1f2): undefined reference to `_ntl_gcompare(_ntl_gbigint                                                                             _body*, _ntl_gbigint_body*)'
NTLWrapper.cpp:(.text+0x21f): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x27b): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::init                                                                             (NTL::ZZ const&, NTL::ZZ const&, int)':
NTLWrapper.cpp:(.text+0x2c0): undefined reference to `_ntl_gcopy(_ntl_gbigint_bo                                                                             dy*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x2cd): undefined reference to `_ntl_gcopy(_ntl_gbigint_bo                                                                             dy*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x2da): undefined reference to `_ntl_gintoz(long, _ntl_gbi                                                                             gint_body**)'
NTLWrapper.cpp:(.text+0x2ec): undefined reference to `_ntl_gintoz(long, _ntl_gbi                                                                             gint_body**)'
NTLWrapper.cpp:(.text+0x2f9): undefined reference to `_ntl_gintoz(long, _ntl_gbi                                                                             gint_body**)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::getG                                                                             enerators(NTL::ZZ*, int)':
NTLWrapper.cpp:(.text+0x35f): undefined reference to `_ntl_gintoz(long, _ntl_gbi                                                                             gint_body**)'
NTLWrapper.cpp:(.text+0x38e): undefined reference to `_ntl_gscompare(_ntl_gbigin                                                                             t_body*, long)'
NTLWrapper.cpp:(.text+0x3a0): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x3c2): undefined reference to `_ntl_gssub(_ntl_gbigint_bo                                                                             dy*, long, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x3e5): undefined reference to `_ntl_gcopy(_ntl_gbigint_bo                                                                             dy*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x3f4): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x40c): undefined reference to `_ntl_gintoz(long, _ntl_gbi                                                                             gint_body**)'
NTLWrapper.cpp:(.text+0x42b): undefined reference to `_ntl_gmulmod(_ntl_gbigint_                                                                             body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x454): undefined reference to `_ntl_gcopy(_ntl_gbigint_bo                                                                             dy*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x48c): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x49b): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x4a9): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x4f6): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x509): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x531): undefined reference to `_ntl_gssub(_ntl_gbigint_bo                                                                             dy*, long, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x540): undefined reference to `_ntl_gcompare(_ntl_gbigint                                                                             _body*, _ntl_gbigint_body*)'
NTLWrapper.cpp:(.text+0x552): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x567): undefined reference to `_ntl_gcopy(_ntl_gbigint_bo                                                                             dy*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x57d): undefined reference to `_ntl_gmulmod(_ntl_gbigint_                                                                             body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x591): undefined reference to `_ntl_gsadd(_ntl_gbigint_bo                                                                             dy*, long, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x5ce): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x5ea): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x5f9): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x607): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x621): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o:NTLWrapper.cpp:(.text+0x635):                                                                              more undefined references to `_ntl_gfree(_ntl_gbigint_body*)' follow
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::getR                                                                             andomGenerators(NTL::ZZ*, int)':
NTLWrapper.cpp:(.text+0x70b): undefined reference to `_ntl_gcopy(_ntl_gbigint_bo                                                                             dy*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x71a): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x727): undefined reference to `_ntl_gcopy(_ntl_gbigint_bo                                                                             dy*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x759): undefined reference to `_ntl_gmulmod(_ntl_gbigint_                                                                             body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x792): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x7ab): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x7b9): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x7e6): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x7f4): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o:NTLWrapper.cpp:(.text+0x813):                                                                              more undefined references to `_ntl_gfree(_ntl_gbigint_body*)' follow
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::invG                                                                             en(NTL::ZZ&, NTL::ZZ const&, NTL::ZZ const&)':
NTLWrapper.cpp:(.text+0x89c): undefined reference to `_ntl_gssub(_ntl_gbigint_bo                                                                             dy*, long, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x8b7): undefined reference to `_ntl_gsub(_ntl_gbigint_bod                                                                             y*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0x8d9): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x8e7): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x919): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x927): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0x941): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o:NTLWrapper.cpp:(.text+0x954):                                                                              more undefined references to `_ntl_gfree(_ntl_gbigint_body*)' follow
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::extr                                                                             actRoot(NTL::ZZ&, NTL::ZZ const&)':
NTLWrapper.cpp:(.text+0xa22): undefined reference to `_ntl_gsdiv(_ntl_gbigint_bo                                                                             dy*, long, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0xa2e): undefined reference to `_ntl_gcompare(_ntl_gbigint                                                                             _body*, _ntl_gbigint_body*)'
NTLWrapper.cpp:(.text+0xa3f): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0xa56): undefined reference to `_ntl_gsubmod(_ntl_gbigint_                                                                             body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
NTLWrapper.cpp:(.text+0xa85): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0xa9e): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::getL                                                                             SB(NTL::ZZ const&)':
NTLWrapper.cpp:(.text+0xab8): undefined reference to `_ntl_godd(_ntl_gbigint_bod                                                                             y*)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::rand                                                                             omOracle(int)':
NTLWrapper.cpp:(.text+0xbce): undefined reference to `_ntl_g2log(_ntl_gbigint_bo                                                                             dy*)'
NTLWrapper.cpp:(.text+0xcc5): undefined reference to `_ntl_gfrombytes(_ntl_gbigi                                                                             nt_body**, unsigned char const*, long)'
NTLWrapper.cpp:(.text+0xcfd): undefined reference to `_ntl_gfree(_ntl_gbigint_bo                                                                             dy*)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::mult                                                                             iplyZp(NTL::ZZ&, NTL::ZZ const&, NTL::ZZ const&)':
NTLWrapper.cpp:(.text+0x974): undefined reference to `_ntl_gmulmod(_ntl_gbigint_                                                                             body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::sumZ                                                                             p(NTL::ZZ&, NTL::ZZ const&, NTL::ZZ const&)':
NTLWrapper.cpp:(.text+0x9b4): undefined reference to `_ntl_gaddmod(_ntl_gbigint_                                                                             body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
CMakeFiles/HomOnlineTest.out.dir/NTLWrapper.cpp.o: In function `NTLWrapper::subt                                                                             ractZp(NTL::ZZ&, NTL::ZZ const&, NTL::ZZ const&)':
NTLWrapper.cpp:(.text+0x9d4): undefined reference to `_ntl_gsubmod(_ntl_gbigint_                                                                             body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp.cpp.o: In function `ZZPrecomput                                                                             eExp::init(NTL::ZZ const&, NTL::ZZ const&)':
ZZPrecomputeExp.cpp:(.text+0x26): undefined reference to `_ntl_gcopy(_ntl_gbigin                                                                             t_body*, _ntl_gbigint_body**)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp.cpp.o: In function `ZZPrecomput                                                                             eExp::initDLSE(NTL::ZZ const&, NTL::ZZ const&, int)':
ZZPrecomputeExp.cpp:(.text+0x56): undefined reference to `_ntl_gcopy(_ntl_gbigin                                                                             t_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x63): undefined reference to `_ntl_gcopy(_ntl_gbigin                                                                             t_body*, _ntl_gbigint_body**)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp.cpp.o: In function `ZZPrecomput                                                                             eExp::prepExpTableMSB()':
ZZPrecomputeExp.cpp:(.text+0x90): undefined reference to `_ntl_g2log(_ntl_gbigin                                                                             t_body*)'
ZZPrecomputeExp.cpp:(.text+0xee): undefined reference to `_ntl_gcopy(_ntl_gbigin                                                                             t_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x10d): undefined reference to `_ntl_gcopy(_ntl_gbigi                                                                             nt_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x120): undefined reference to `_ntl_gmulmod(_ntl_gbi                                                                             gint_body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x137): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
ZZPrecomputeExp.cpp:(.text+0x161): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
ZZPrecomputeExp.cpp:(.text+0x17f): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp.cpp.o: In function `ZZPrecomput                                                                             eExp::compExp(NTL::ZZ const&)':
ZZPrecomputeExp.cpp:(.text+0x1bd): undefined reference to `_ntl_gcopy(_ntl_gbigi                                                                             nt_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x1d2): undefined reference to `_ntl_gintoz(long, _nt                                                                             l_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x1ed): undefined reference to `_ntl_gsdiv(_ntl_gbigi                                                                             nt_body*, long, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x1ff): undefined reference to `_ntl_gscompare(_ntl_g                                                                             bigint_body*, long)'
ZZPrecomputeExp.cpp:(.text+0x212): undefined reference to `_ntl_gsmod(_ntl_gbigi                                                                             nt_body*, long)'
ZZPrecomputeExp.cpp:(.text+0x232): undefined reference to `_ntl_gmulmod(_ntl_gbi                                                                             gint_body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x24a): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
ZZPrecomputeExp.cpp:(.text+0x277): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
ZZPrecomputeExp.cpp:(.text+0x295): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
ZZPrecomputeExp.cpp:(.text+0x2a3): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp.cpp.o: In function `ZZPrecomput                                                                             eExp::compExpDLSE(NTL::ZZ const&)':
ZZPrecomputeExp.cpp:(.text+0x2df): undefined reference to `_ntl_gcopy(_ntl_gbigi                                                                             nt_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x2f4): undefined reference to `_ntl_gintoz(long, _nt                                                                             l_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x31d): undefined reference to `_ntl_gsdiv(_ntl_gbigi                                                                             nt_body*, long, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x33e): undefined reference to `_ntl_gsmod(_ntl_gbigi                                                                             nt_body*, long)'
ZZPrecomputeExp.cpp:(.text+0x35e): undefined reference to `_ntl_gmulmod(_ntl_gbi                                                                             gint_body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x372): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
ZZPrecomputeExp.cpp:(.text+0x3a1): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
ZZPrecomputeExp.cpp:(.text+0x3bf): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
ZZPrecomputeExp.cpp:(.text+0x3cd): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp.cpp.o: In function `ZZPrecomput                                                                             eExp::compInvGen(NTL::ZZ const&)':
ZZPrecomputeExp.cpp:(.text+0x432): undefined reference to `_ntl_gcopy(_ntl_gbigi                                                                             nt_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp.cpp:(.text+0x454): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
ZZPrecomputeExp.cpp:(.text+0x462): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
ZZPrecomputeExp.cpp:(.text+0x4a0): undefined reference to `_ntl_gfree(_ntl_gbigi                                                                             nt_body*)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp.cpp.o: In function `ZZPrecomput                                                                             eExp::init(NTL::ZZ const&, NTL::ZZ const&)':
ZZPrecomputeExp.cpp:(.text+0x39): undefined reference to `_ntl_gcopy(_ntl_gbigin                                                                             t_body*, _ntl_gbigint_body**)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp_Sec.cpp.o: In function `ZZPreco                                                                             mputeExp_Sec::init(NTL::ZZ const&, NTL::ZZ const&)':
ZZPrecomputeExp_Sec.cpp:(.text+0x36): undefined reference to `_ntl_gcopy(_ntl_gb                                                                             igint_body*, _ntl_gbigint_body**)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp_Sec.cpp.o: In function `ZZPreco                                                                             mputeExp_Sec::prepExpTableSpecifyBitLength(long)':
ZZPrecomputeExp_Sec.cpp:(.text+0x76): undefined reference to `_ntl_gintoz(long,                                                                              _ntl_gbigint_body**)'
ZZPrecomputeExp_Sec.cpp:(.text+0xd1): undefined reference to `_ntl_gcopy(_ntl_gb                                                                             igint_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp_Sec.cpp:(.text+0xed): undefined reference to `_ntl_gcopy(_ntl_gb                                                                             igint_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp_Sec.cpp:(.text+0x100): undefined reference to `_ntl_gmulmod(_ntl                                                                             _gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp_Sec.cpp:(.text+0x117): undefined reference to `_ntl_gfree(_ntl_g                                                                             bigint_body*)'
ZZPrecomputeExp_Sec.cpp:(.text+0x141): undefined reference to `_ntl_gfree(_ntl_g                                                                             bigint_body*)'
ZZPrecomputeExp_Sec.cpp:(.text+0x15f): undefined reference to `_ntl_gfree(_ntl_g                                                                             bigint_body*)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp_Sec.cpp.o: In function `ZZPreco                                                                             mputeExp_Sec::prepExpTableMSB()':
ZZPrecomputeExp_Sec.cpp:(.text+0x179): undefined reference to `_ntl_g2log(_ntl_g                                                                             bigint_body*)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp_Sec.cpp.o: In function `ZZPreco                                                                             mputeExp_Sec::compExp(NTL::ZZ const&)':
ZZPrecomputeExp_Sec.cpp:(.text+0x1cb): undefined reference to `_ntl_gintoz(long,                                                                              _ntl_gbigint_body**)'
ZZPrecomputeExp_Sec.cpp:(.text+0x1d8): undefined reference to `_ntl_gintoz(long,                                                                              _ntl_gbigint_body**)'
ZZPrecomputeExp_Sec.cpp:(.text+0x1e8): undefined reference to `_ntl_gmulmod(_ntl                                                                             _gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp_Sec.cpp:(.text+0x1f8): undefined reference to `_ntl_gscompare(_n                                                                             tl_gbigint_body*, long)'
ZZPrecomputeExp_Sec.cpp:(.text+0x209): undefined reference to `_ntl_gbit(_ntl_gb                                                                             igint_body*, long)'
ZZPrecomputeExp_Sec.cpp:(.text+0x226): undefined reference to `_ntl_gmulmod(_ntl                                                                             _gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body*, _ntl_gbigint_body**)'
ZZPrecomputeExp_Sec.cpp:(.text+0x23a): undefined reference to `_ntl_gfree(_ntl_g                                                                             bigint_body*)'
ZZPrecomputeExp_Sec.cpp:(.text+0x269): undefined reference to `_ntl_gfree(_ntl_g                                                                             bigint_body*)'
ZZPrecomputeExp_Sec.cpp:(.text+0x277): undefined reference to `_ntl_gfree(_ntl_g                                                                             bigint_body*)'
CMakeFiles/HomOnlineTest.out.dir/ZZPrecomputeExp_Sec.cpp.o: In function `ZZPreco                                                                             mputeExp_Sec::init(NTL::ZZ const&, NTL::ZZ const&)':
ZZPrecomputeExp_Sec.cpp:(.text+0x49): undefined reference to `_ntl_gcopy(_ntl_gb                                                                             igint_body*, _ntl_gbigint_body**)'
CMakeFiles/HomOnlineTest.out.dir/secCompMultiParty.cpp.o: In function `encrypt(N                                                                             TL::ZZ&, int, NTL::ZZ, NTL::ZZ)':
secCompMultiParty.cpp:(.text+0x48): undefined reference to `_ntl_gcopy(_ntl_gbig                                                                             int_body*, _ntl_gbigint_body**)'
secCompMultiParty.cpp:(.text+0x73): undefined reference to `_ntl_gfree(_ntl_gbig                                                                             int_body*)'
secCompMultiParty.cpp:(.text+0x81): undefined reference to `_ntl_gfree(_ntl_gbig                                                                             int_body*)'
CMakeFiles/HomOnlineTest.out.dir/secCompMultiParty.cpp.o: In function `decrypt(N                                                                             TL::ZZ&, int, NTL::ZZ, NTL::ZZ)':
secCompMultiParty.cpp:(.text+0x128): undefined reference to `_ntl_gcopy(_ntl_gbi                                                                             gint_body*, _ntl_gbigint_body**)'
secCompMultiParty.cpp:(.text+0x153): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0x161): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
CMakeFiles/HomOnlineTest.out.dir/secCompMultiParty.cpp.o: In function `encryptWp                                                                             recomputation(NTL::ZZ&, ZZPrecomputeExp*, NTL::ZZ, NTL::ZZ)':
secCompMultiParty.cpp:(.text+0x1fc): undefined reference to `_ntl_gcopy(_ntl_gbi                                                                             gint_body*, _ntl_gbigint_body**)'
secCompMultiParty.cpp:(.text+0x22b): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0x239): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
CMakeFiles/HomOnlineTest.out.dir/secCompMultiParty.cpp.o: In function `decryptWp                                                                             recomputation(NTL::ZZ&, ZZPrecomputeExp*, NTL::ZZ, NTL::ZZ)':
secCompMultiParty.cpp:(.text+0x2ac): undefined reference to `_ntl_gcopy(_ntl_gbi                                                                             gint_body*, _ntl_gbigint_body**)'
secCompMultiParty.cpp:(.text+0x2db): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0x2e9): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
CMakeFiles/HomOnlineTest.out.dir/secCompMultiParty.cpp.o: In function `LoadSeedN                                                                             ew()':
secCompMultiParty.cpp:(.text+0x35b): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
CMakeFiles/HomOnlineTest.out.dir/secCompMultiParty.cpp.o: In function `initializ                                                                             eRandomnessHom(char*, int)':
secCompMultiParty.cpp:(.text+0x422): undefined reference to `_ntl_gsmul(_ntl_gbi                                                                             gint_body*, long, _ntl_gbigint_body**)'
secCompMultiParty.cpp:(.text+0x43f): undefined reference to `_ntl_gsadd(_ntl_gbi                                                                             gint_body*, long, _ntl_gbigint_body**)'
secCompMultiParty.cpp:(.text+0x465): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0x474): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0x491): undefined reference to `_ntl_gintoz(long, _                                                                             ntl_gbigint_body**)'
secCompMultiParty.cpp:(.text+0x4a0): undefined reference to `_ntl_gintoz(long, _                                                                             ntl_gbigint_body**)'
secCompMultiParty.cpp:(.text+0x4d0): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0x534): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0x54e): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0x562): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0x571): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
CMakeFiles/HomOnlineTest.out.dir/secCompMultiParty.cpp.o:secCompMultiParty.cpp:(                                                                             .text+0x584): more undefined references to `_ntl_gfree(_ntl_gbigint_body*)' foll                                                                             ow
CMakeFiles/HomOnlineTest.out.dir/secCompMultiParty.cpp.o: In function `readCircu                                                                             itFromFile(char*)':
secCompMultiParty.cpp:(.text+0xc30): undefined reference to `_ntl_gcopy(_ntl_gbi                                                                             gint_body*, _ntl_gbigint_body**)'
secCompMultiParty.cpp:(.text+0xca9): undefined reference to `_ntl_gcopy(_ntl_gbi                                                                             gint_body*, _ntl_gbigint_body**)'
secCompMultiParty.cpp:(.text+0xcc6): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0xce4): undefined reference to `_ntl_gfree(_ntl_gbi                                                                             gint_body*)'
secCompMultiParty.cpp:(.text+0x116c): undefined reference to `_ntl_gfree(_ntl_gb                                                                             igint_body*)'
secCompMultiParty.cpp:(.text+0x12ae): undefined reference to `_ntl_gfree(_ntl_gb                                                                             igint_body*)'
CMakeFiles/HomOnlineTest.out.dir/homBMR.cpp.o: In function `computeOutputsHom()'                                                                             :
homBMR.cpp:(.text+0x110): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x122): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x138): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x170): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x188): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x1c4): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x1d3): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x1e2): undefined reference to `_ntl_gsqrt(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x245): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x2a2): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x2b1): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x2c0): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x2ce): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
CMakeFiles/HomOnlineTest.out.dir/homBMR.cpp.o:homBMR.cpp:(.text+0x314): more und                                                                             efined references to `_ntl_gfree(_ntl_gbigint_body*)' follow
CMakeFiles/HomOnlineTest.out.dir/homBMR.cpp.o: In function `generateFakeGarbledC                                                                             ircuitHom(circuit*, int)':
homBMR.cpp:(.text+0x3f0): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x455): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x464): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x48d): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x49c): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x4b3): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x4d9): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x509): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x7f2): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x827): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0x919): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x9b0): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0x9c8): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0xa03): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0xa12): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0xa21): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0xa48): undefined reference to `_ntl_gcopy(_ntl_gbigint_body*,                                                                              _ntl_gbigint_body**)'
homBMR.cpp:(.text+0xcdd): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0xd20): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0xd34): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0xd48): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
homBMR.cpp:(.text+0xd57): undefined reference to `_ntl_gfree(_ntl_gbigint_body*)                                                                             '
CMakeFiles/HomOnlineTest.out.dir/homBMR.cpp.o:homBMR.cpp:(.text+0xd6b): more und                                                                             efined references to `_ntl_gfree(_ntl_gbigint_body*)' follow
collect2: error: ld returned 1 exit status
CMakeFiles/HomOnlineTest.out.dir/build.make:188: recipe for target 'HomOnlineTes                                                                             t.out' failed
make[2]: *** [HomOnlineTest.out] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/HomOnlineTest.out.dir/all                                                                             ' failed
make[1]: *** [CMakeFiles/HomOnlineTest.out.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
liorko87 commented 5 years ago

Which OS are you using? Where did you install NTL?

erlichsefi commented 5 years ago

Ubuntu 16.04.4 LTS. installed at user home /home/user/ntl-9.10.0