-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
FreeBSD linker error due to undefined libiconv_open #41
Comments
This doesn't make a lot of sense, as the form.o is compiled with a
Here is the
|
Ah, this may be the problem, from gcc(1):
So I'm guessing the first I can verify this by using |
Yeah, that seems to be the case:
I don't see any easy solution, as including |
Opened ticket in FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275969 |
Seeing the same on NetBSD 10 (Aarch64):
|
This is likely caused by a the configure script first testing if iconv is provided by the libc, which it is:
But then, the
-isystem /usr/local/include
gets added fromfltk-config
, causing/usr/local/include/iconv.h
to be loaded first which is part of libiconv (instead of/usr/include/iconv.h
).This header defines iconv_open() as libiconv_open() instead of the symbol iconv_open() provided by libc. Then, the linker fails as -liconv is not provided as initially it was decided to use the implementation in libc.
The text was updated successfully, but these errors were encountered: