[Bug 277075] www/firefox: build failure on 14-STABLE

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 15 Feb 2024 16:35:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277075

            Bug ID: 277075
           Summary: www/firefox: build failure on 14-STABLE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gecko@FreeBSD.org
          Reporter: m.ne@gmx.net
          Assignee: gecko@FreeBSD.org
             Flags: maintainer-feedback?(gecko@FreeBSD.org)

After the update to version 123 www/firefox startedhaving build failures. The
relevant part of the build log is this:

ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_av1_cx' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_av1_dx' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_build_config' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_control' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_dec_init_ver' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_decode' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_destroy' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_destroy' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_enc_config_default' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_enc_init_ver' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_encode' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_err_to_string' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_error' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_error_detail' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_get_caps' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_get_cx_data' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_get_frame' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_peek_stream_info' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_set_option' failed: symbol not defined
ld.lld: error: version script assignment of 'libgkcodecs.so' to symbol
'aom_codec_version' failed: symbol not defined
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to
see all errors)
/wrkdirs/usr/ports/www/firefox/work/.mozbuild/srcdirs/firefox-123.0-4655e115eb53/_virtualenvs/build/bin/python
-m mozbuild.action.check_binary libfakeopenh264.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Fortunately, the error messages reminded me of this recent bug report:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276542

Therefore I tried adding
        LDFLAGS+=       "-Wl,--undefined-version"
to the port Makefile, which resulted in a successful build.

As with the heimdal issue, I'm quite convinced while this does solve the
immediate issue (and therefore probably should be in the ports tree for the
time being), it just masks the underlying problem. As I'm not very familiar
with the code base but lacking spare time instead, I'll probably not
investigate this further on my own, but certainly can help with that, if
needed.

-- 
You are receiving this mail because:
You are the assignee for the bug.