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

IconvBuiltinDependency: BSD Breakage #9644

Open
haxworx opened this issue Nov 26, 2021 · 3 comments
Open

IconvBuiltinDependency: BSD Breakage #9644

haxworx opened this issue Nov 26, 2021 · 3 comments

Comments

@haxworx
Copy link

haxworx commented Nov 26, 2021

Meson is assuming iconv is included with glib.

On non-Linux systems, meson assumed linking against glib.

On BSD link against -liconv

https://github.com/mesonbuild/meson/blob/master/mesonbuild/dependencies/misc.py#L451

Needs to fail on BSD and ensure correct link arguments are passed.

@eli-schwartz
Copy link
Member

What is broken about this? It checks for the actual symbols present in the libc, and on at least FreeBSD, there is such a symbol in the libc.

@haxworx
Copy link
Author

haxworx commented Nov 26, 2021 via email

@eli-schwartz
Copy link
Member

Note that there is the issue of GNU libiconv, which does require -lintl, installing an iconv.h which may shadow the libc edition, and causes all code which includes that header to try linking to libiconv_open instead of iconv_open. A couple days ago I added a change to make this check also try using iconv.h to ensure it uses the correct version that the project build would see -- the change was broken on at least mingw due to some mysterious effect of meson's has_function check that caused it to think there was a __builtin_iconv_open function provided by the compiler (?????) and #9642 is supposed to fix that.

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