guberti / witness-encryption-demos

World's first implementation of a (possibly) secure witness encryption scheme. Uses the CLT13 multilinear map.
GNU General Public License v2.0
33 stars 0 forks source link

After installing dependencies such as flint and gmp, the ./build.sh still reports errors #5

Open wxb1104 opened 2 years ago

wxb1104 commented 2 years ago

Please ask if it is because the version of flint I am using is too new (I am using flint2 found on Github), if so, can you please share the address you are relying on for flint? Thanks and good luck with your studies

-- Build files have been written to: /home/withinboredom/code/witness-encryption-demos/libaesrand Consolidate compiler generated dependencies of target aesrand [ 12%] Building C object CMakeFiles/aesrand.dir/aesrand/aesrand_buf.c.o [ 25%] Building C object CMakeFiles/aesrand.dir/aesrand/aesrand_gmp.c.o [ 37%] Building C object CMakeFiles/aesrand.dir/aesrand/aesrand_init.c.o [ 50%] Building C object CMakeFiles/aesrand.dir/aesrand/aesrand_flint.c.o /home/withinboredom/code/witness-encryption-demos/libaesrand/aesrand/aesrand_flint.c: In function ‘fmpz_mod_poly_randtest_aes’: /home/withinboredom/code/witness-encryption-demos/libaesrand/aesrand/aesrand_flint.c:6:5: error: too few arguments to function ‘fmpz_mod_poly_fit_length’ 6 | fmpz_mod_poly_fit_length(f, len); | ^~~~~~~~ In file included from /home/withinboredom/code/witness-encryption-demos/libaesrand/aesrand/aesrand.h:51, from /home/withinboredom/code/witness-encryption-demos/libaesrand/aesrand/aesrand_flint.c:1: /usr/include/flint/fmpz_mod_poly.h:127:6: note: declared here 127 | void fmpz_mod_poly_fit_length(fmpz_mod_poly_t poly, slong len, | ^~~~~~~~ /home/withinboredom/code/witness-encryption-demos/libaesrand/aesrand/aesrand_flint.c:9:53: error: ‘fmpz_mod_poly_struct’ has no member named ‘p’ 9 | if (fmpz_randm_aes(f->coeffs + i, state, &(f->p)) == AESRAND_ERR) | ^~ make[2]: ** [CMakeFiles/aesrand.dir/build.make:118: CMakeFiles/aesrand.dir/aesrand/aesrand_flint.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:85: CMakeFiles/aesrand.dir/all] Error 2 make: * [Makefile:146: all] Error 2