Skip to content

irssi 1.4.3 build issue #1435

Open
Open

Description

@chenrui333

👋 trying to build the latest release, but run into some build issue. The error log is as below:

build failure
FAILED: tests/fe-common/core/test-formats
clang  -o tests/fe-common/core/test-formats tests/fe-common/core/test-formats.p/test-formats.c.o -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -Wl,-rpath,/opt/homebrew/Cellar/glib/2.74.3/lib -Wl,-rpath,/opt/homebrew/opt/gettext/lib -Wl,-rpath,/opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib -Wl,-rpath,/opt/homebrew/Cellar/libgcrypt/1.10.1/lib -Wl,-rpath,/opt/homebrew/Cellar/libotr/4.1.1/lib src/lib-config/libirssi_config.a src/core/libcore.a src/fe-common/core/libfe_common_core.a /opt/homebrew/Cellar/glib/2.74.3/lib/libglib-2.0.dylib /opt/homebrew/opt/gettext/lib/libintl.dylib /opt/homebrew/Cellar/glib/2.74.3/lib/libgmodule-2.0.dylib /opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib/libssl.dylib /opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib/libcrypto.dylib -lutf8proc /opt/homebrew/Cellar/libgcrypt/1.10.1/lib/libgcrypt.dylib /opt/homebrew/Cellar/libotr/4.1.1/lib/libotr.dylib -lutf8proc -lutf8proc -lutf8proc
Undefined symbols for architecture arm64:
  "_current_theme", referenced from:
      _format_get_text_theme in libfe_common_core.a(formats.c.o)
      _format_get_text in libfe_common_core.a(formats.c.o)
      _strip_codes in libfe_common_core.a(formats.c.o)
      _format_send_as_gui_flags in libfe_common_core.a(formats.c.o)
      _sig_print_text in libfe_common_core.a(fe-windows.c.o)
      _printformat_module_dest_charargs in libfe_common_core.a(printtext.c.o)
      _printformat_module_gui_args in libfe_common_core.a(printtext.c.o)
      ...
  "_default_formats", referenced from:
      _format_find_tag in libfe_common_core.a(formats.c.o)
      _format_get_text_theme_args in libfe_common_core.a(formats.c.o)
      _printformat_module_dest_args in libfe_common_core.a(printtext.c.o)
      _printformat_module_gui_args in libfe_common_core.a(printtext.c.o)
ld: symbol(s) not found for architecture arm64

relates to Homebrew/homebrew-core#118477

Activity

  1. ailin-nemui commented on Dec 19, 2022

    @ailin-nemui
    Contributor

    mesonbuild/meson#11165
    #1397

    :(

    Try to build with ./configure and make instead

  2. chenrui333 commented on Jan 1, 2023

    @chenrui333
    Author

    Got some error as this

    Undefined symbols for architecture arm64:
      "_default_formats", referenced from:
          _perl_signal_args_to_c in libperl_core_static.a(perl-signals.o)
          _sig_func in libperl_core_static.a(perl-signals.o)
      "_format_find_tag", referenced from:
          _perl_signal_args_to_c in libperl_core_static.a(perl-signals.o)
    ld: symbol(s) not found for architecture arm64
    
  3. chenrui333 commented on Jul 17, 2023

    @chenrui333
    Author

    with meson 1.2.0, still the same issue

    Undefined symbols for architecture arm64:
      "_current_theme", referenced from:
          _format_get_text_theme in libfe_common_core.a(formats.c.o)
          _format_get_text in libfe_common_core.a(formats.c.o)
          _strip_codes in libfe_common_core.a(formats.c.o)
          _format_send_as_gui_flags in libfe_common_core.a(formats.c.o)
          _sig_print_text in libfe_common_core.a(fe-windows.c.o)
          _printformat_module_dest_charargs in libfe_common_core.a(printtext.c.o)
          _printformat_module_gui_args in libfe_common_core.a(printtext.c.o)
          ...
      "_default_formats", referenced from:
          _format_find_tag in libfe_common_core.a(formats.c.o)
          _format_get_text_theme_args in libfe_common_core.a(formats.c.o)
          _printformat_module_dest_args in libfe_common_core.a(printtext.c.o)
          _printformat_module_gui_args in libfe_common_core.a(printtext.c.o)
    ld: symbol(s) not found for architecture arm64
    

    Side note, I can reproduce that issue with ./configure and make as well.

  4. ailin-nemui commented on Jul 17, 2023

    @ailin-nemui
    Contributor

    Side note, I can reproduce that issue with ./configure and make as well.

    that would be strange as configure uses libtool which is supposed to have this bug fixed since 2002

    please make sure you're not compiling with --with-bot (see #1374 )

    otherwise provide complete logs

  5. cvengler commented on Aug 12, 2023

    @cvengler

    I run into the same issue.

  6. ailin-nemui commented on Sep 4, 2023

    @ailin-nemui
    Contributor

    can you try this:

    meson-macos-ar.ini

    # manual workaround for meson bug https://github.com/mesonbuild/meson/issues/11165
    # usage: meson --native-file ./meson-macos-ar.ini
    
    [binaries]
    ar = ['/bin/sh', '-c', 'ar=${AR:-ar}; ranlib=${RANLIB:-ranlib -c -}; case "x$1" in xcsr*) $ar "$@" && $ranlib "$2" || exit $?; ;; *) exec $ar "$@"; ;; esac;', 'ar']

    then

    meson --native-file ./meson-macos-ar.ini ...
    
  7. added this to the 1.4.5 milestone on Oct 1, 2023
  8. Erwin-Iosef commented on Jun 30, 2026

    @Erwin-Iosef

    is this issue still valid now that the current version is 1.4.5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions