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

Error: shlib-with-non-pic-code in libglvnd for x86 32bit #108

Closed
kwizart opened this issue Oct 25, 2016 · 4 comments
Closed

Error: shlib-with-non-pic-code in libglvnd for x86 32bit #108

kwizart opened this issue Oct 25, 2016 · 4 comments

Comments

@kwizart
Copy link
Contributor

kwizart commented Oct 25, 2016

rpmlint on i686 packages is reporting this issue.

libglvnd.i686: E: shlib-with-non-pic-code /usr/lib/libGLdispatch.so.0.0.0
libglvnd.i686: E: shlib-with-non-pic-code /usr/lib/libOpenGL.so.0.0.0

rpmlint -I shlib-with-non-pic-code:

shlib-with-non-pic-code:

The listed shared libraries contain object code that was compiled without
-fPIC. All object code in shared libraries should be recompiled separately
from the static libraries with the -fPIC option. Another common mistake that
causes this problem is linking with gcc -Wl,-shared'' instead ofgcc
-shared''.

Is there a way to fix theses ?
Enforcing --with-pic doesn't seem to have any effect.

@kbrenneman
Copy link
Collaborator

It might be complaining about something in the assembly code for the dispatch stubs. Does the error go away if you build it with --disable-asm?

@kwizart
Copy link
Contributor Author

kwizart commented Oct 28, 2016

Yes, I confirm that using --disable-asm in x86 32bit build make the issue disappear.

@kbrenneman
Copy link
Collaborator

Okay, that at least confirms that it's something in the assembly code. Do the x86 TLS stubs in #95 fare any better?

If so, then just merging that and using the TLS stubs by default might be easier.

@kwizart
Copy link
Contributor Author

kwizart commented Nov 9, 2016

So I confirm that the PR#95 doesn't have the issue
I haven't done any runtime usability test.

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

2 participants