Paul Ripke <stix%stix.id.au@localhost> writes: > In trying to get PrusaSlicer going, I tripped over the fact that > math/nlopt's built-in rb_tree implementation has symbols that collide > with NetBSD's implementation in libc. > > The following math/nlopt Makefile fragment works around the issue, > but I'm left wondering if there's an alternate solution to what must > be a fairly commonly seen issue? > > SUBST_CLASSES+= rbtree > SUBST_FILES.rbtree+= */*.[ch] > SUBST_MESSAGE.rbtree= Changing rb_tree symbols that collide with NetBSD libc. > SUBST_SED.rbtree= -e "s|rb_tree|nlopt_rb_tree|g" > SUBST_STAGE.rbtree= post-extract This seems reasonable to me, but it would be good to file a bug upstream. I would expect this to collide on other BSDs as well. Technically, the namespace should be clean from all non-POSIX-required symbols, but that's a bit tilting-at-windmills.
Description: PGP signature