MacOS Sonoma iconv library is not compatible with gnu libiconv - Move from native MacOS iconv to gnu libiconv? #4884
Replies: 1 comment 2 replies
-
because the symbols in a system-installed libiconv and an external libiconv are different (upstream design decision), there is opportunity for link issues to arise when the “wrong” libiconv is found at link time opportunistically. This issue causes headaches for macports, who made this change some years back… I won’t say often, but certainly not rarely either. Some of these issues, like building stack for example, have proven hard to resolve. It also happens to folks when the build their own code, pulling in the system headers but the external library gets linked in opportunistically. Many of these link failures point out build system issues with header search paths and library search paths that indeed need fixing, but not all are trivial to fix, and they do cause frustrations. I came to (unscientifically) believe it was the most-reported complaint against macports in StackOverflow, for example. |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
I maintain the brew pspp tap. pspp uses iconv and gettext. The pspp regression fails on MacOS Sonoma because the new Apple iconv library behaves not according to what iconv is supposed to do. Our pspp regression tests the response to an invalid UTF-8 character. The discussion about the regression problem for pspp is here:
fredowski/homebrew-pspp#5 (comment)
Now it seems difficult to use the gnu libiconv library as gettext uses the native iconv library. Are there reasons to stick with the "buggy" Apple native library or would it be an idea to move brew to the gnu libiconv? The problem is discussed at other places also:
Homebrew/homebrew-core#142490 (comment)
https://gitlab.gnome.org/GNOME/gtk-osx/-/merge_requests/44
Beta Was this translation helpful? Give feedback.
All reactions