[Bug 275969] converters/libiconv: Unable to build without including /usr/local/include/iconv.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Dec 2023 22:58:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275969 --- Comment #5 from Rodrigo <rodarima@gmail.com> --- > Do you have a buildlog somewhere? I attached the build log. > I think you have mixed up two different ports. One is converters/iconv and other is converters/libiconv which are different in terms of functionalities. Sorry, I didn't realize they were split :-) > The gotcha here is that you need to also pass -DLIBICONV_PLUG when including iconv from localbase. I tested that and it links properly. However, the problem remains: I'm including /usr/local/include/iconv.h and linking with -lc which also provides an iconv implementation. With the LIBICONV_PLUG the libiconv functions don't get the "lib" prefix. I'm guessing libiconv and libc try to provide compatible headers, but it seems a bit fragile to depend on that. So I was looking for a way to avoid including the /usr/local/include/iconv.h file and just include the one provided by the libc. And in case there is none, I can instead link with -liconv, which at least would make more sense than depending on the headers to remain compatible among both implementations. Best, Rodrigo. -- You are receiving this mail because: You are the assignee for the bug.