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

Builtin rb_tree_* symbols collide with libc on NetBSD #360

Closed
stixpjr opened this issue Oct 19, 2020 · 1 comment · Fixed by #361
Closed

Builtin rb_tree_* symbols collide with libc on NetBSD #360

stixpjr opened this issue Oct 19, 2020 · 1 comment · Fixed by #361

Comments

@stixpjr
Copy link

stixpjr commented Oct 19, 2020

I ran into this issue with a strange crash while porting PrusaSlicer to NetBSD, as reported here.

NetBSD libc exports a rb_tree implementation whose weak symbols collide with those in nlopt.
As detailed in that email thread, I worked around the issue by prefixing nlopt's "rb_tree" symbols with "nlopt_", and I'll work on getting that patch into pkgsrc for the current version.

Is there any chance of permanently prefixing nlopt's built-in rb_tree symbols?

@jschueller
Copy link
Collaborator

absolutely, can you submit the patch ?

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

Successfully merging a pull request may close this issue.

2 participants