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

libpng linking error #11

Closed
osrf-migration opened this issue Aug 17, 2012 · 5 comments
Closed

libpng linking error #11

osrf-migration opened this issue Aug 17, 2012 · 5 comments
Labels
all bug Something isn't working major

Comments

@osrf-migration
Copy link

Original report (archived issue) by Nate Koenig (Bitbucket: Nathan Koenig).


Hi I found a thread in the archive with an unresolved issue concerning libpng.
I have a similar problem on my ubuntu distribution, as I have multiple libpng versions installed.
I tried installing from debian packages, and compiling manually.

Then I noticed that the compiler and linker refers to one version of libPNG, but at runtime, another library is found.
I forced the correct version to be preloaded before starting the client, which circumvents the issue.

usage:
LD_PRELOAD=PATH_TO_LIBRARY.so programname

in my case it is:
LD_PRELOAD=/usr/lib/i386-linux-gnu/libpng.so gzclient

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • Edited issue description* changed assignee from "nkoenig (Bitbucket: nkoenig, GitHub: nkoenig)" to "gerkey (Bitbucket: gerkey, GitHub: gerkey)"
  • changed assignee_account_id from "557058:095b1e12-74ed-4e20-b44f-2f0745b616e0" to "557058:2e35028e-9ad8-4d6a-a3a5-275159a304a9"

@osrf-migration
Copy link
Author

Original comment by Brian Gerkey (Bitbucket: Brian Gerkey, GitHub: gerkey).


I don't think that there's anything to be done on our side for this issue. As the reporter says, LD_PRELOAD is a workaround. Though I would try LD_LIBRARY_PATH first; you should be able to control which lib gets loaded that way. E.g., to see which lib will be used:

    LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu ldd `which gzclient`

@osrf-migration
Copy link
Author

Original comment by Brian Gerkey (Bitbucket: Brian Gerkey, GitHub: gerkey).


  • changed state from "new" to "resolved"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set version to "all"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "resolved" to "closed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
all bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant