Closed okuoku closed 2 years ago
Implemented copying but still not resolved the issue so external drive is not affected here: https://github.com/okuoku/yunibase/commit/a5d0488416f40da068457ffe1c60c0639ab7f349
Reduced to
okuoku@prism gauche % ./src/gosh -ftest -e "(dynamic-load \"gauche--charconv\")"
gosh: "ERROR": failed to link /Users/okuoku/yunibase/impl-stable/gauche/src/../src/gauche--charconv.so dynamically: dlopen(/Users/okuoku/yunibase/impl-stable/gauche/src/../src/gauche--charconv.so, 0x000A): symbol not found in flat namespace '_libiconv'
So it seems libiconv
conflicts with SDK and pkgsrc(Yunibase uses pkgsrc for pkg provider).
sudo rm /opt/pkg/include/iconv.h
fixes issue and we have to detect this (or, should detect SDK path and feed -I
option.)
EDIT: It must be yunibase-specific issue; I use exact same setup for Mosh development https://github.com/higepon/mosh/issues/23#issuecomment-1222478234
macOS has some security measure that prevents loading out-of-framework DYLD.
Switch to copy-then-build.