Created attachment 892268 [details] build.log When I try to build www-client/elinks in my new macOS Prefix, it fails with this: ld: warning: text-based stub file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libbz2.tbd and library file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libbz2.tbd are out of sync. Falling back to library file for linking. Undefined symbols for architecture x86_64: "__nl_msg_cat_cntr", referenced from: _set_language in intl_libintl.c.o "_libintl_bind_textdomain_codeset", referenced from: _xbeltree_to_bookmarks_list in bookmarks_backend_xbel.c.o _get_bookmark_info in bookmarks_dialogs.c.o _bookmark_terminal_tabs_dialog in bookmarks_dialogs.c.o _push_add_server_button in cookies_dialogs.c.o _build_edit_dialog in cookies_dialogs.c.o _add_cookie_info_to_string in cookies_dialogs.c.o _get_cookie_info in cookies_dialogs.c.o ... "_libintl_bindtextdomain", referenced from: _init in main_main.c.o "_libintl_gettext", referenced from: _xbeltree_to_bookmarks_list in bookmarks_backend_xbel.c.o _read_bookmarks_xbel in bookmarks_backend_xbel.c.o _get_bookmark_info in bookmarks_dialogs.c.o _bookmark_terminal_tabs_dialog in bookmarks_dialogs.c.o _push_add_server_button in cookies_dialogs.c.o _build_edit_dialog in cookies_dialogs.c.o _add_cookie_info_to_string in cookies_dialogs.c.o ... "_libintl_ngettext", referenced from: __ZL17get_resource_infoP8terminalPv in dialogs_info.cpp.o "_libintl_setlocale", referenced from: _init_osdep in osdep_osdep.c.o "_libintl_textdomain", referenced from: _init in main_main.c.o ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status This looks to me like it's trying to link in the host-system version of libbz2, instead of that provided by app-arch/bzip2?
Created attachment 892269 [details] emerge-info.txt
I just tried again with USE=bzip2 disabled, and it still fails with this error: Undefined symbols for architecture x86_64: "__nl_msg_cat_cntr", referenced from: _set_language in intl_libintl.c.o "_libintl_bind_textdomain_codeset", referenced from: _xbeltree_to_bookmarks_list in bookmarks_backend_xbel.c.o _get_bookmark_info in bookmarks_dialogs.c.o _bookmark_terminal_tabs_dialog in bookmarks_dialogs.c.o _push_add_server_button in cookies_dialogs.c.o _build_edit_dialog in cookies_dialogs.c.o _add_cookie_info_to_string in cookies_dialogs.c.o _get_cookie_info in cookies_dialogs.c.o ... "_libintl_bindtextdomain", referenced from: _init in main_main.c.o "_libintl_gettext", referenced from: _xbeltree_to_bookmarks_list in bookmarks_backend_xbel.c.o _read_bookmarks_xbel in bookmarks_backend_xbel.c.o _get_bookmark_info in bookmarks_dialogs.c.o _bookmark_terminal_tabs_dialog in bookmarks_dialogs.c.o _push_add_server_button in cookies_dialogs.c.o _build_edit_dialog in cookies_dialogs.c.o _add_cookie_info_to_string in cookies_dialogs.c.o ... "_libintl_ngettext", referenced from: __ZL17get_resource_infoP8terminalPv in dialogs_info.cpp.o "_libintl_setlocale", referenced from: _init_osdep in osdep_osdep.c.o "_libintl_textdomain", referenced from: _init in main_main.c.o ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status So it looks like the error goes deeper than the bzip2 support.
Does it compile with USE=-nls ?
Created attachment 902806 [details, diff] Proposed patch Please see if it compile with this patch (and nls use flag enabled). I believe elinks currently doesn't compile for you because it fails to link to libintl on x64-macos.