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

Build on debian testing with -fPIC #27

Open
GuLinux opened this issue Jan 23, 2017 · 1 comment
Open

Build on debian testing with -fPIC #27

GuLinux opened this issue Jan 23, 2017 · 1 comment

Comments

@GuLinux
Copy link

GuLinux commented Jan 23, 2017

Hello,
when building my project on debian testing, I get these error messages on linking when using qhyccd static libraries:
planetaryimager-build_1 | /usr/bin/ld: /code/src/drivers/qhy/QHYCCD_Linux/libqhy_64.a(qhyccd.o): relocation R_X86_64_32S against symbol `cydev' can not be used when making a shared object; recompile with -fPIC

(repeated for each of the qhy objects).
In some conditions the -fPIC is necessary, but it must be enabled for every object in the build pipe.
You can verify the issue compiling my application at https://github.com/GuLinux/PlanetaryImager.

Thanks
Marco

@GuLinux
Copy link
Author

GuLinux commented Apr 20, 2017

As a side note, it seems now the default behaviour for pretty much every distribution (I tried on Ubuntu 16.10, fedora and Arch Linux too).

A workaround seems to be to use only the shared library instead of the static, but if we could have a static version of qhyccd library compiled with -fPIC, that would be much better.

Thanks

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