Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with compiling the library #2

Open
peiworld opened this issue Sep 17, 2014 · 1 comment
Open

problem with compiling the library #2

peiworld opened this issue Sep 17, 2014 · 1 comment

Comments

@peiworld
Copy link

Anyone has this problem?

gcc -o integer-fhe integer-fhe.o main.o test.o types.o util.o -lgmp -lflint
integer-fhe.o: In function _F_mpz_demote': /usr/local/include/F_mpz.h:147: undefined reference to_F_mpz_clear_mpz'
integer-fhe.o: In function fhe_keygen': /home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:60: undefined reference toF_mpz_set_mpz'
/home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:63: undefined reference to F_mpz_mod_poly_init' /home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:64: undefined reference toF_mpz_mod_poly_init'
/home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:65: undefined reference to F_mpz_mod_poly_init' /home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:78: undefined reference toF_mpz_neg'
/home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:79: undefined reference to F_mpz_mod' /home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:110: undefined reference toF_mpz_get_mpz'
/home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:192: undefined reference to F_mpz_mod_poly_clear' /home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:193: undefined reference toF_mpz_mod_poly_clear'
/home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:194: undefined reference to F_mpz_mod_poly_clear' integer-fhe.o: In functionfhe_encrypt':
/home/ph/otherGit/libScarab/libScarab1.0.0/integer-fhe.c:241: undefined reference to fmpz_poly_evaluate' util.o: In function_F_mpz_demote':
/usr/local/include/F_mpz.h:147: undefined reference to _F_mpz_clear_mpz' util.o: In functionF_mpz_mod_poly_divrem':
/usr/local/include/F_mpz_mod_poly.h:323: undefined reference to F_mpz_mod_poly_divrem_divconquer' util.o: In functionF_mpz_mod_poly_rem':
/usr/local/include/F_mpz_mod_poly.h:330: undefined reference to F_mpz_mod_poly_init' /usr/local/include/F_mpz_mod_poly.h:334: undefined reference toF_mpz_mod_poly_clear'
util.o: In function fmpz_poly_to_F_mpz_mod_poly': /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:26: undefined reference tompz_poly_to_F_mpz_mod_poly'
util.o: In function F_mpz_mod_poly_gcd_euclidean': /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:93: undefined reference toF_mpz_poly_set_coeff_ui'
/home/ph/otherGit/libScarab/libScarab1.0.0/util.c:95: undefined reference to _F_mpz_mod_poly_normalise' /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:101: undefined reference toF_mpz_set'
/home/ph/otherGit/libScarab/libScarab1.0.0/util.c:103: undefined reference to F_mpz_mod_poly_init' /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:117: undefined reference toF_mpz_mod_poly_swap'
/home/ph/otherGit/libScarab/libScarab1.0.0/util.c:118: undefined reference to F_mpz_mod_poly_swap' /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:119: undefined reference toF_mpz_mod_poly_init'
/home/ph/otherGit/libScarab/libScarab1.0.0/util.c:124: undefined reference to F_mpz_mod_poly_swap' /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:125: undefined reference toF_mpz_mod_poly_swap'
/home/ph/otherGit/libScarab/libScarab1.0.0/util.c:126: undefined reference to F_mpz_mod_poly_init' /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:133: undefined reference toF_mpz_mod_poly_swap'
/home/ph/otherGit/libScarab/libScarab1.0.0/util.c:139: undefined reference to F_mpz_poly_set_coeff_ui' /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:147: undefined reference toF_mpz_mod_poly_clear'
/home/ph/otherGit/libScarab/libScarab1.0.0/util.c:150: undefined reference to F_mpz_mod_poly_clear' /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:151: undefined reference toF_mpz_mod_poly_clear'
util.o: In function F_mpz_mod_poly_make_monic': /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:167: undefined reference toF_mpz_mod_poly_set'
/home/ph/otherGit/libScarab/libScarab1.0.0/util.c:173: undefined reference to F_mpz_invert' /home/ph/otherGit/libScarab/libScarab1.0.0/util.c:174: undefined reference toF_mpz_mod_poly_scalar_m

@peiworld
Copy link
Author

Adding this patch will work
https://github.com/peiworld/libScarab/blob/master/x86_64.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant