Skip to content

Relocation R_X86_64_32S against `scale19' can not be used when making a shared object; recompile with -fPIC #1

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

Open
spectatora opened this issue Nov 8, 2019 · 0 comments

Comments

@spectatora
Copy link
Owner

The library is using EdwardsCurve25519 (which implementation and its operations are in assembly language).

Using these simple steps

make clean
 phpize
./configure
make
sudo make install

won't allow me to compile the extension because in some of the assembly files, there are constants - which are expected to come from another assembly file or event from a .c file.

The issue is caused by PIC - because by default the code should be Platform Independent - but having some hardcoded constants or references to a constant from a different file is not platform-independent.

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