osu-crypto / BaRK-OPRF

Efficient Batched Oblivious PRF with Applications to Private Set Intersection (CCS 2016)
http://eprint.iacr.org/2016/799
The Unlicense
77 stars 35 forks source link

compile on arm64 error #18

Open pmpleader opened 1 year ago

pmpleader commented 1 year ago

g++ -o Release/bOPRFmain.exe -Wl,-gc-sections -pthread -LRelease -L/root/compile/kkrt16/bark-oprf/Release -L./thirdparty/linux/boost/stage/lib -L./thirdparty/linux/cryptopp -L./thirdparty/linux/miracl/miracl_osmt/source -L./thirdparty/linux/miracl/miracl/source -L./thirdparty/linux/mpir/.libs -L./thirdparty/linux/ntl/src -L./bin/ -Wl,--start-group Release/./bOPRFlib/Common/BitIterator.o Release/./bOPRFlib/Common/BitVector.o Release/./bOPRFlib/Common/ByteStream.o Release/./bOPRFlib/Common/Defines.o Release/./bOPRFlib/Common/Log.o Release/./bOPRFlib/Common/Timer.o Release/./bOPRFlib/Crypto/AES.o Release/./bOPRFlib/Crypto/Commit.o Release/./bOPRFlib/Crypto/PRNG.o Release/./bOPRFlib/Crypto/sha1.o Release/./bOPRFlib/PSI/BopPsiReceiver.o Release/./bOPRFlib/PSI/BopPsiSender.o Release/./bOPRFlib/PSI/CuckooHasher.o Release/./bOPRFlib/PSI/SimpleHasher.o Release/./bOPRFlib/OT/BaseSSOT.o Release/./bOPRFlib/OT/IknpOtExtReceiver4k.o Release/./bOPRFlib/OT/IknpOtExtSender4k.o Release/./bOPRFlib/OT/SSOTReceiver.o Release/./bOPRFlib/OT/SSOTSender.o Release/./bOPRFlib/OT/Base/BaseOT.o Release/./bOPRFlib/OT/Base/naor-pinkas.o Release/./bOPRFlib/OT/Base/PvwBaseOT.o Release/./bOPRFlib/OT/Base/Tools.o Release/./bOPRFlib/OT/Base/Math/bigint.o Release/./bOPRFlib/OT/Base/Math/DMC.o Release/./bOPRFlib/OT/Base/Math/modp.o Release/./bOPRFlib/OT/Base/Math/Zp_Data.o Release/./bOPRFlib/OT/Base/crypto/crypto.o Release/./bOPRFlib/OT/Base/crypto/ecc-pk-crypto.o Release/./bOPRFlib/Network/BtAcceptor.o Release/./bOPRFlib/Network/BtChannel.o Release/./bOPRFlib/Network/BtEndpoint.o Release/./bOPRFlib/Network/BtIOService.o Release/./bOPRFlib/Network/Channel.o Release/./bOPRFmain/main.o \ -Wl,-Bstatic -lmiracl -lboost_system -lboost_filesystem -lboost_thread -lmpir -lcryptopp -lbOPRF -lmiracl\ -Wl,-Bdynamic -lpthread -lrt\ -Wl,--as-needed -Wl,--end-group /usr/bin/ld: Release/./bOPRFlib/OT/Base/BaseOT.o: in function Miracl::Miracl(int, unsigned int)': /root/compile/kkrt16/bark-oprf/./thirdparty/linux/miracl/miracl/include/big.h:129: undefined reference tomirsys' /usr/bin/ld: Release/./bOPRFlib/OT/Base/BaseOT.o: in function _GLOBAL__sub_I__ZN5bOPRF10precision2E': /root/compile/kkrt16/bark-oprf/bOPRFlib/OT/Base/BaseOT.cpp:10: undefined reference tomr_init_threading' /usr/bin/ld: Release/./bOPRFlib/OT/Base/crypto/ecc-pk-crypto.o: in function ecc_num::set_si(int)': /root/compile/kkrt16/bark-oprf/bOPRFlib/OT/Base/crypto/ecc-pk-crypto.cpp:231: undefined reference toconvert' /usr/bin/ld: Release/./bOPRFlib/OT/Base/crypto/ecc-pk-crypto.o: in function Big::Big()': /root/compile/kkrt16/bark-oprf/./thirdparty/linux/miracl/miracl/include/big.h:173: undefined reference tomirvar' /usr/bin/ld: /root/compile/kkrt16/bark-oprf/./thirdparty/linux/miracl/miracl/include/big.h:173: undefined reference to mirvar' /usr/bin/ld: /root/compile/kkrt16/bark-oprf/./thirdparty/linux/miracl/miracl/include/big.h:173: undefined reference tomirvar' /usr/bin/ld: Release/./bOPRFlib/OT/Base/crypto/ecc-pk-crypto.o: in function Big::operator=(int)': /root/compile/kkrt16/bark-oprf/./thirdparty/linux/miracl/miracl/include/big.h:202: undefined reference toconvert' /usr/bin/ld: Release/./bOPRFlib/OT/Base/crypto/ecc-pk-crypto.o: in function ecc_field::init(securitylevel, unsigned char*)': /root/compile/kkrt16/bark-oprf/bOPRFlib/OT/Base/crypto/ecc-pk-crypto.cpp:53: undefined reference toirand'

thanks.

ladnir commented 1 year ago

I highly suggest just using libPSI or the newer protocol volepsi