Bug: SeaMonkey link failure with system icu 76.1
Status: NEW
Priority: --
Created: 2024-11-25 02:43:38+00:00
Resolved: 2024-11-25 05:21:16+00:00

I'm unable to build SeaMonkey 2.53.19 with `--with-system-icu` on openSUSE Tumbleweed (which provides libicu 76.1) due to linker errors:

```
[ 1999s] toolkit/library/libxul.so
[ 1999s] rm -f libxul.so
[ 1999s] /usr/bin/g++-13 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wc++2a-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wno-error=unused-but-set-variable -Wformat -Wformat-overflow=2 -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -fno-strict-aliasing -fimplicit-constexpr -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O2 -fomit-frame-pointer -funwind-tables  -fPIC -shared -Wl,-z,defs -Wl,--gc-sections -Wl,-h,libxul.so -o libxul.so /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/obj-x86_64-pc-linux-gnu/toolkit/library/libxul_so.list   -lpthread -fstack-protector-strong -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/toolkit/library/StaticXULComponents.ld -Wl,-rpath-link,/home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/obj-x86_64-pc-linux-gnu/dist/bin -Wl,-rpath-link,/usr/lib   ../../js/src/build/libjs_static.a x86_64-unknown-linux-gnu/release/libgkrust.a ../../comm/ldap/c-sdk/libraries/libldap/libldap60.so ../../comm/ldap/c-sdk/libraries/libldif/libldif60.so ../../comm/ldap/c-sdk/libraries/libprldap/libprldap60.so ../../security/sandbox/linux/libmozsandbox.so ../../config/external/lgpllibs/liblgpllibs.so ../../config/external/sqlite/libmozsqlite3.so ../../widget/gtk/mozgtk/libmozgtk.so -Wl,--version-script,symverscript  -L/usr/lib64 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -licui18n -lz -lm -lrt -lX11 -lX11-xcb -lxcb -lXcomposite -lXcursor -lXdamage -lXext -lXfixes -lXi -lXrender -lc -Wl,-rpath-link,/usr/lib64 -lssl3 -lsmime3 -lnss3 -lnssutil3 -lfreetype -lfontconfig -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lwebp -lwebpdemux -lasound -ldbus-glib-1 -ldbus-1 -lxcb-shm -lpangoft2-1.0 -lXt -lgthread-2.0 -lproxy
[ 2001s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: warning: /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/toolkit/library/StaticXULComponents.ld contains output sections; did you forget -T?
[ 2015s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/obj-x86_64-pc-linux-gnu/toolkit/library/../../chrome/Unified_cpp_chrome0.o: in function `nsChromeRegistry::SanitizeForBCP47(nsTSubstring<char>&)':
[ 2015s] /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/chrome/nsChromeRegistry.cpp:702:(.text._ZN16nsChromeRegistry16SanitizeForBCP47ER12nsTSubstringIcE+0x76): undefined reference to `uloc_toLanguageTag_76'
[ 2015s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/obj-x86_64-pc-linux-gnu/toolkit/library/../../chrome/Unified_cpp_chrome0.o: in function `nsChromeRegistry::GetDirectionForLocale(nsTSubstring<char> const&)':
[ 2015s] /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/chrome/nsChromeRegistry.cpp:645:(.text._ZN16nsChromeRegistry21GetDirectionForLocaleERK12nsTSubstringIcE+0xaf): undefined reference to `uloc_isRightToLeft_76'
[ 2015s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/obj-x86_64-pc-linux-gnu/toolkit/library/../../intl/hyphenation/glue/Unified_cpp_hyphenation_glue0.o: in function `mozilla::unicode::GetGeneralCategory(unsigned int)':
[ 2015s] /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/obj-x86_64-pc-linux-gnu/dist/include/nsUnicodeProperties.h:85:(.text._ZN12nsHyphenator9HyphenateERK12nsTSubstringIDsER8nsTArrayIbE+0x168): undefined reference to `u_charType_76'
[ 2015s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/obj-x86_64-pc-linux-gnu/toolkit/library/../../intl/locale/Unified_cpp_intl_locale0.o: in function `SanitizeForBCP47(nsTSubstring<char>&, bool)':
[ 2015s] /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/intl/locale/LocaleService.cpp:63:(.text._ZL16SanitizeForBCP47R12nsTSubstringIcEb+0x9a): undefined reference to `uloc_toLanguageTag_76'
[ 2015s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/obj-x86_64-pc-linux-gnu/toolkit/library/../../intl/locale/Unified_cpp_intl_locale0.o: in function `mozilla::intl::LocaleService::IsAppLocaleRTL()':
[ 2015s] /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/intl/locale/LocaleService.cpp:566:(.text._ZN7mozilla4intl13LocaleService14IsAppLocaleRTLEv+0x9e): undefined reference to `uloc_isRightToLeft_76'
[ 2015s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/obj-x86_64-pc-linux-gnu/toolkit/library/../../intl/locale/Unified_cpp_intl_locale0.o: in function `mozilla::intl::Locale::AddLikelySubtags()':
[ 2015s] /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/intl/locale/MozLocale.cpp:177:(.text._ZN7mozilla4intl6Locale16AddLikelySubtagsEv+0x5a): undefined reference to `uloc_addLikelySubtags_76'
[ 2015s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/obj-x86_64-pc-linux-gnu/toolkit/library/../../intl/locale/Unified_cpp_intl_locale0.o: in function `mozilla::intl::OSPreferences::CanonicalizeLanguageTag(nsTString<char>&)':
[ 2015s] /home/abuild/rpmbuild/BUILD/seamonkey-2.53.19/mozilla/intl/locale/OSPreferences.cpp:104:(.text._ZN7mozilla4intl13OSPreferences23CanonicalizeLanguageTagER9nsTStringIcE+0x3f): undefined reference to `uloc_toLanguageTag_76'
⋮
```

Applying Attachment 9365067 from Bug 1864745 does not work around the error.  Perhaps this is related to (or the same as) Bug 1927380?