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

throwErrno symbols missing when Iex is linked before other libraries statically #566

Closed
skurmedel opened this issue Sep 24, 2019 · 3 comments
Milestone

Comments

@skurmedel
Copy link
Contributor

I'm not sure anything can be done about this, but in case someone else has this problem, I'll file it. I won't be offended if its closed :)

We got symbol errors when OpenEXR tried to throw an exception based on an errno. We linked OpenEXR statically and the link order was "Half Iex ...[rest]". This caused a symbol error when it tried to call throwErrno. By moving Iex to the end of the link order, we fixed this issue.

@cary-ilm
Copy link
Member

Yeah, I'm pretty sure this is standard linker behavior, symbols are searched for left to right. But to be clear - this link order is in your application Makefile, not from OpenEXR's build files, right?

@skurmedel
Copy link
Contributor Author

Yeah, it was the order in our CMake scripts. Probably nothing OpenEXR can do about it.

@cary-ilm
Copy link
Member

Closing the issue for now, feel free to re-open or file a new issue if you need further help.

@cary-ilm cary-ilm added this to the v2.5.0 milestone Apr 27, 2020
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