Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking libmef fails on aarch64-darwin #51

Closed
Atemu opened this issue Oct 10, 2022 · 6 comments
Closed

Linking libmef fails on aarch64-darwin #51

Atemu opened this issue Oct 10, 2022 · 6 comments

Comments

@Atemu
Copy link

Atemu commented Oct 10, 2022

<snip>
../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -DLIBDIR=\"/nix/store/2ni7yqki02hk2b0ik1gn94cmvgnm5za0-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_gbk.c
libtool: compile:  clang -I../../baselib/include -g -O2 -DLIBDIR=\"/nix/store/2ni7yqki02hk2b0ik1gn94cmvgnm5za0-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_gbk.c  -fno-common -DPIC -o .libs/ef_ucs4_gbk.o
../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -DLIBDIR=\"/nix/store/2ni7yqki02hk2b0ik1gn94cmvgnm5za0-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_big5.c
libtool: compile:  clang -I../../baselib/include -g -O2 -DLIBDIR=\"/nix/store/2ni7yqki02hk2b0ik1gn94cmvgnm5za0-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_big5.c  -fno-common -DPIC -o .libs/ef_ucs4_big5.o
../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -DLIBDIR=\"/nix/store/2ni7yqki02hk2b0ik1gn94cmvgnm5za0-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_cns11643.c
libtool: compile:  clang -I../../baselib/include -g -O2 -DLIBDIR=\"/nix/store/2ni7yqki02hk2b0ik1gn94cmvgnm5za0-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_cns11643.c  -fno-common -DPIC -o .libs/ef_ucs4_cns11643.o
../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -DLIBDIR=\"/nix/store/2ni7yqki02hk2b0ik1gn94cmvgnm5za0-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_gb18030_2000_intern.c
libtool: compile:  clang -I../../baselib/include -g -O2 -DLIBDIR=\"/nix/store/2ni7yqki02hk2b0ik1gn94cmvgnm5za0-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_gb18030_2000_intern.c  -fno-common -DPIC -o .libs/ef_gb18030_2000_intern.o
../libtool --mode=link clang  -o libmef.la ef_parser.lo ef_iso2022_parser.lo ef_iso8859_parser.lo ef_xct_parser.lo ef_eucjp_parser.lo ef_euckr_parser.lo ef_euccn_parser.lo ef_iso2022jp_parser.lo ef_iso2022kr_parser.lo ef_sjis_parser.lo ef_big5_parser.lo ef_euctw_parser.lo ef_utf16_parser.lo ef_iso2022cn_parser.lo ef_hz_parser.lo ef_utf8_parser.lo ef_johab_parser.lo ef_8bit_parser.lo ef_utf32_parser.lo ef_codepoint_parser.lo ef_iso8859_conv.lo ef_iso2022_conv.lo ef_iso2022jp_conv.lo ef_iso2022kr_conv.lo ef_sjis_conv.lo ef_utf8_conv.lo ef_big5_conv.lo ef_euctw_conv.lo ef_iso2022cn_conv.lo ef_hz_conv.lo ef_utf16_conv.lo ef_eucjp_conv.lo ef_euckr_conv.lo ef_euccn_conv.lo ef_johab_conv.lo ef_8bit_conv.lo ef_xct_conv.lo ef_utf32_conv.lo ef_ucs4_map.lo ef_locale_ucs4_map.lo ef_zh_cn_map.lo ef_zh_tw_map.lo ef_zh_hk_map.lo ef_ko_kr_map.lo ef_viet_map.lo ef_ja_jp_map.lo ef_ru_map.lo ef_uk_map.lo ef_tg_map.lo ef_char.lo ef_sjis_env.lo ef_tblfunc_loader.lo test.lo ef_ucs_property.lo ef_jis_property.lo ef_ucs4_iso8859.lo ef_ucs4_viscii.lo ef_ucs4_tcvn5712_1.lo ef_ucs4_koi8.lo ef_ucs4_georgian_ps.lo ef_ucs4_cp125x.lo ef_ucs4_iscii.lo ef_ucs4_jisx0201.lo ef_ucs4_jisx0208.lo ef_ucs4_jisx0212.lo ef_ucs4_jisx0213.lo ef_ucs4_ksc5601.lo ef_ucs4_uhc.lo ef_ucs4_johab.lo ef_ucs4_gb2312.lo ef_ucs4_gbk.lo ef_ucs4_big5.lo ef_ucs4_cns11643.lo ef_gb18030_2000_intern.lo -rpath /nix/store/2ni7yqki02hk2b0ik1gn94cmvgnm5za0-mlterm-3.9.2/lib \
          -version-info 3:1:0 
libtool: link: clang -dynamiclib  -o .libs/libmef.3.dylib  .libs/ef_parser.o .libs/ef_iso2022_parser.o .libs/ef_iso8859_parser.o .libs/ef_xct_parser.o .libs/ef_eucjp_parser.o .libs/ef_euckr_parser.o .libs/ef_euccn_parser.o .libs/ef_iso2022jp_parser.o .libs/ef_iso2022kr_parser.o .libs/ef_sjis_parser.o .libs/ef_big5_parser.o .libs/ef_euctw_parser.o .libs/ef_utf16_parser.o .libs/ef_iso2022cn_parser.o .libs/ef_hz_parser.o .libs/ef_utf8_parser.o .libs/ef_johab_parser.o .libs/ef_8bit_parser.o .libs/ef_utf32_parser.o .libs/ef_codepoint_parser.o .libs/ef_iso8859_conv.o .libs/ef_iso2022_conv.o .libs/ef_iso2022jp_conv.o .libs/ef_iso2022kr_conv.o .libs/ef_sjis_conv.o .libs/ef_utf8_conv.o .libs/ef_big5_conv.o .libs/ef_euctw_conv.o .libs/ef_iso2022cn_conv.o .libs/ef_hz_conv.o .libs/ef_utf16_conv.o .libs/ef_eucjp_conv.o .libs/ef_euckr_conv.o .libs/ef_euccn_conv.o .libs/ef_johab_conv.o .libs/ef_8bit_conv.o .libs/ef_xct_conv.o .libs/ef_utf32_conv.o .libs/ef_ucs4_map.o .libs/ef_locale_ucs4_map.o .libs/ef_zh_cn_map.o .libs/ef_zh_tw_map.o .libs/ef_zh_hk_map.o .libs/ef_ko_kr_map.o .libs/ef_viet_map.o .libs/ef_ja_jp_map.o .libs/ef_ru_map.o .libs/ef_uk_map.o .libs/ef_tg_map.o .libs/ef_char.o .libs/ef_sjis_env.o .libs/ef_tblfunc_loader.o .libs/test.o .libs/ef_ucs_property.o .libs/ef_jis_property.o .libs/ef_ucs4_iso8859.o .libs/ef_ucs4_viscii.o .libs/ef_ucs4_tcvn5712_1.o .libs/ef_ucs4_koi8.o .libs/ef_ucs4_georgian_ps.o .libs/ef_ucs4_cp125x.o .libs/ef_ucs4_iscii.o .libs/ef_ucs4_jisx0201.o .libs/ef_ucs4_jisx0208.o .libs/ef_ucs4_jisx0212.o .libs/ef_ucs4_jisx0213.o .libs/ef_ucs4_ksc5601.o .libs/ef_ucs4_uhc.o .libs/ef_ucs4_johab.o .libs/ef_ucs4_gb2312.o .libs/ef_ucs4_gbk.o .libs/ef_ucs4_big5.o .libs/ef_ucs4_cns11643.o .libs/ef_gb18030_2000_intern.o      -install_name  /nix/store/2ni7yqki02hk2b0ik1gn94cmvgnm5za0-mlterm-3.9.2/lib/libmef.3.dylib -compatibility_version 4 -current_version 4.1 -Wl,-single_module
Undefined symbols for architecture arm64:
  "_bl_dl_close_at_exit", referenced from:
      _ef_load_8bits_func in ef_tblfunc_loader.o
      _ef_load_jajp_func in ef_tblfunc_loader.o
      _ef_load_kokr_func in ef_tblfunc_loader.o
      _ef_load_zh_func in ef_tblfunc_loader.o
  "_bl_dl_func_symbol", referenced from:
      _ef_load_8bits_func in ef_tblfunc_loader.o
      _ef_load_jajp_func in ef_tblfunc_loader.o
      _ef_load_kokr_func in ef_tblfunc_loader.o
      _ef_load_zh_func in ef_tblfunc_loader.o
  "_bl_dl_open", referenced from:
      _ef_load_8bits_func in ef_tblfunc_loader.o
      _ef_load_jajp_func in ef_tblfunc_loader.o
      _ef_load_kokr_func in ef_tblfunc_loader.o
      _ef_load_zh_func in ef_tblfunc_loader.o
  "_bl_get_codeset", referenced from:
      _convert_to_xct_intern in ef_xct_conv.o
  "_bl_get_country", referenced from:
      _ef_map_locale_ucs4_to in ef_locale_ucs4_map.o
  "_bl_get_lang", referenced from:
      _ef_map_locale_ucs4_to in ef_locale_ucs4_map.o
  "_bl_get_locale", referenced from:
      _convert_to_big5 in ef_big5_conv.o
  "_bl_msg_printf", referenced from:
      _convert_to_johab in ef_johab_conv.o
ld: symbol(s) not found for architecture arm64
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:69: libmef.la] Error 1
make[2]: Leaving directory '/private/tmp/nix-build-mlterm-3.9.2.drv-1/source/encodefilter/src'
make[1]: *** [Makefile:6: all] Error 2
make[1]: Leaving directory '/private/tmp/nix-build-mlterm-3.9.2.drv-1/source/encodefilter'
make: *** [Makefile:7: all] Error 2
@Atemu
Copy link
Author

Atemu commented Oct 10, 2022

For reference, building on aarch64-linux works just fine.

@arakiken
Copy link
Owner

Hi,

I think this patch fixes this problem. I'd like you to test it.
06c82f3

Regards,

@Atemu
Copy link
Author

Atemu commented Oct 30, 2022

Hi @arakiken,

thank you for the patch! libmef.3 now seems to build.

Unfortunately, the build still fails. This time at libmef_jajp:

<snip>

Mlterm was configured as follows

Installation path prefix          : /nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2
Build shared libraries            : yes
Build static libraries            : no
GUI toolkit                       : quartz
BiDi rendering (Fribidi)          : yes
Indic rendering                   : no
OpenType Layout                   : yes (harfbuzz)
External tools                    : mlclient mlconfig mlcc mlterm-menu
Image processing                  : yes
Built-in image library            : 
utmp support                      : 
DnD                               : yes
Input Methods                     : XIM kbd skk
Scrollbars                        : simple
libssh2                           : no
mosh directory                    : 
GTK+                              : yes (3.0)
libvte                            : no
brlapi                            : no
VT52                              : no
Permission of mlterm binary       : -m 755
Compact true color                : yes

<snip>

../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -DLIBDIR=\"/nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_gbk.c
libtool: compile:  clang -I../../baselib/include -g -O2 -DLIBDIR=\"/nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_gbk.c  -fno-common -DPIC -o .libs/ef_ucs4_gbk.o
../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -DLIBDIR=\"/nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_big5.c
libtool: compile:  clang -I../../baselib/include -g -O2 -DLIBDIR=\"/nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_big5.c  -fno-common -DPIC -o .libs/ef_ucs4_big5.o
../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -DLIBDIR=\"/nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_cns11643.c
libtool: compile:  clang -I../../baselib/include -g -O2 -DLIBDIR=\"/nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_ucs4_cns11643.c  -fno-common -DPIC -o .libs/ef_ucs4_cns11643.o
../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -DLIBDIR=\"/nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_gb18030_2000_intern.c
libtool: compile:  clang -I../../baselib/include -g -O2 -DLIBDIR=\"/nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib\" -I/usr/local/include -c ef_gb18030_2000_intern.c  -fno-common -DPIC -o .libs/ef_gb18030_2000_intern.o
../libtool --mode=link clang  -o libmef.la ef_parser.lo ef_iso2022_parser.lo ef_iso8859_parser.lo ef_xct_parser.lo ef_eucjp_parser.lo ef_euckr_parser.lo ef_euccn_parser.lo ef_iso2022jp_parser.lo ef_iso2022kr_parser.lo ef_sjis_parser.lo ef_big5_parser.lo ef_euctw_parser.lo ef_utf16_parser.lo ef_iso2022cn_parser.lo ef_hz_parser.lo ef_utf8_parser.lo ef_johab_parser.lo ef_8bit_parser.lo ef_utf32_parser.lo ef_codepoint_parser.lo ef_iso8859_conv.lo ef_iso2022_conv.lo ef_iso2022jp_conv.lo ef_iso2022kr_conv.lo ef_sjis_conv.lo ef_utf8_conv.lo ef_big5_conv.lo ef_euctw_conv.lo ef_iso2022cn_conv.lo ef_hz_conv.lo ef_utf16_conv.lo ef_eucjp_conv.lo ef_euckr_conv.lo ef_euccn_conv.lo ef_johab_conv.lo ef_8bit_conv.lo ef_xct_conv.lo ef_utf32_conv.lo ef_ucs4_map.lo ef_locale_ucs4_map.lo ef_zh_cn_map.lo ef_zh_tw_map.lo ef_zh_hk_map.lo ef_ko_kr_map.lo ef_viet_map.lo ef_ja_jp_map.lo ef_ru_map.lo ef_uk_map.lo ef_tg_map.lo ef_char.lo ef_sjis_env.lo ef_tblfunc_loader.lo test.lo ef_ucs_property.lo ef_jis_property.lo ef_ucs4_iso8859.lo ef_ucs4_viscii.lo ef_ucs4_tcvn5712_1.lo ef_ucs4_koi8.lo ef_ucs4_georgian_ps.lo ef_ucs4_cp125x.lo ef_ucs4_iscii.lo ef_ucs4_jisx0201.lo ef_ucs4_jisx0208.lo ef_ucs4_jisx0212.lo ef_ucs4_jisx0213.lo ef_ucs4_ksc5601.lo ef_ucs4_uhc.lo ef_ucs4_johab.lo ef_ucs4_gb2312.lo ef_ucs4_gbk.lo ef_ucs4_big5.lo ef_ucs4_cns11643.lo ef_gb18030_2000_intern.lo -rpath /nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib \
          -version-info 3:1:0 ../../baselib/src/libpobl.la
libtool: link: clang -dynamiclib  -o .libs/libmef.3.dylib  .libs/ef_parser.o .libs/ef_iso2022_parser.o .libs/ef_iso8859_parser.o .libs/ef_xct_parser.o .libs/ef_eucjp_parser.o .libs/ef_euckr_parser.o .libs/ef_euccn_parser.o .libs/ef_iso2022jp_parser.o .libs/ef_iso2022kr_parser.o .libs/ef_sjis_parser.o .libs/ef_big5_parser.o .libs/ef_euctw_parser.o .libs/ef_utf16_parser.o .libs/ef_iso2022cn_parser.o .libs/ef_hz_parser.o .libs/ef_utf8_parser.o .libs/ef_johab_parser.o .libs/ef_8bit_parser.o .libs/ef_utf32_parser.o .libs/ef_codepoint_parser.o .libs/ef_iso8859_conv.o .libs/ef_iso2022_conv.o .libs/ef_iso2022jp_conv.o .libs/ef_iso2022kr_conv.o .libs/ef_sjis_conv.o .libs/ef_utf8_conv.o .libs/ef_big5_conv.o .libs/ef_euctw_conv.o .libs/ef_iso2022cn_conv.o .libs/ef_hz_conv.o .libs/ef_utf16_conv.o .libs/ef_eucjp_conv.o .libs/ef_euckr_conv.o .libs/ef_euccn_conv.o .libs/ef_johab_conv.o .libs/ef_8bit_conv.o .libs/ef_xct_conv.o .libs/ef_utf32_conv.o .libs/ef_ucs4_map.o .libs/ef_locale_ucs4_map.o .libs/ef_zh_cn_map.o .libs/ef_zh_tw_map.o .libs/ef_zh_hk_map.o .libs/ef_ko_kr_map.o .libs/ef_viet_map.o .libs/ef_ja_jp_map.o .libs/ef_ru_map.o .libs/ef_uk_map.o .libs/ef_tg_map.o .libs/ef_char.o .libs/ef_sjis_env.o .libs/ef_tblfunc_loader.o .libs/test.o .libs/ef_ucs_property.o .libs/ef_jis_property.o .libs/ef_ucs4_iso8859.o .libs/ef_ucs4_viscii.o .libs/ef_ucs4_tcvn5712_1.o .libs/ef_ucs4_koi8.o .libs/ef_ucs4_georgian_ps.o .libs/ef_ucs4_cp125x.o .libs/ef_ucs4_iscii.o .libs/ef_ucs4_jisx0201.o .libs/ef_ucs4_jisx0208.o .libs/ef_ucs4_jisx0212.o .libs/ef_ucs4_jisx0213.o .libs/ef_ucs4_ksc5601.o .libs/ef_ucs4_uhc.o .libs/ef_ucs4_johab.o .libs/ef_ucs4_gb2312.o .libs/ef_ucs4_gbk.o .libs/ef_ucs4_big5.o .libs/ef_ucs4_cns11643.o .libs/ef_gb18030_2000_intern.o   ../../baselib/src/.libs/libpobl.dylib -ldl    -install_name  /nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib/libmef.3.dylib -compatibility_version 4 -current_version 4.1 -Wl,-single_module
libtool: link: (cd ".libs" && rm -f "libmef.dylib" && ln -s "libmef.3.dylib" "libmef.dylib")
libtool: link: ( cd ".libs" && rm -f "libmef.la" && ln -s "../libmef.la" "libmef.la" )
mkdir -p ../include/mef
for file in ef_parser.h ef_iso2022_parser.h ef_iso8859_parser.h ef_xct_parser.h ef_eucjp_parser.h ef_euckr_parser.h ef_euccn_parser.h ef_iso2022jp_parser.h ef_iso2022kr_parser.h ef_sjis_parser.h ef_big5_parser.h ef_euctw_parser.h ef_utf16_parser.h ef_iso2022cn_parser.h ef_hz_parser.h ef_utf8_parser.h ef_johab_parser.h ef_8bit_parser.h ef_utf32_parser.h ef_codepoint_parser.h ef_iso8859_conv.h ef_iso2022_conv.h ef_iso2022jp_conv.h ef_iso2022kr_conv.h ef_sjis_conv.h ef_utf8_conv.h ef_big5_conv.h ef_euctw_conv.h ef_iso2022cn_conv.h ef_hz_conv.h ef_utf16_conv.h ef_eucjp_conv.h ef_euckr_conv.h ef_euccn_conv.h ef_johab_conv.h ef_8bit_conv.h ef_xct_conv.h ef_utf32_conv.h ef_ucs4_map.h ef_locale_ucs4_map.h ef_zh_cn_map.h ef_zh_tw_map.h ef_zh_hk_map.h ef_ko_kr_map.h ef_viet_map.h ef_ja_jp_map.h ef_ru_map.h ef_uk_map.h ef_tg_map.h ef_char.h ef_sjis_env.h ef_property.h ef_ucs_property.h ef_charset.h ef_conv.h ; do \
        if test -f ${file} ; \
        then cp ${file} ../include/mef ; \
        else cp ../src/${file} ../include/mef ; \
        fi \
done
touch collect-headers
make[2]: Leaving directory '/private/tmp/nix-build-mlterm-3.9.2.drv-0/source/encodefilter/src'
make[2]: Entering directory '/private/tmp/nix-build-mlterm-3.9.2.drv-0/source/encodefilter/module'
../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -I/usr/local/include -c ef_ucs4_jisx0208.c
libtool: compile:  clang -I../../baselib/include -g -O2 -I/usr/local/include -c ef_ucs4_jisx0208.c  -fno-common -DPIC -o .libs/ef_ucs4_jisx0208.o
../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -I/usr/local/include -c ef_ucs4_jisx0212.c
libtool: compile:  clang -I../../baselib/include -g -O2 -I/usr/local/include -c ef_ucs4_jisx0212.c  -fno-common -DPIC -o .libs/ef_ucs4_jisx0212.o
../libtool --mode=compile clang   -I../../baselib/include  -g -O2 -I/usr/local/include -c ef_ucs4_jisx0213.c
libtool: compile:  clang -I../../baselib/include -g -O2 -I/usr/local/include -c ef_ucs4_jisx0213.c  -fno-common -DPIC -o .libs/ef_ucs4_jisx0213.o
../libtool --mode=link clang  -o libmef_jajp.la ef_ucs4_jisx0208.lo ef_ucs4_jisx0212.lo ef_ucs4_jisx0213.lo  \
../src/ef_jis_property.lo \
-rpath /nix/store/arlxb09l3j6m1frk5vnzwwzh825lih5q-mlterm-3.9.2/lib/mef -module -avoid-version 
libtool: link: clang  -o .libs/libmef_jajp.so -bundle  .libs/ef_ucs4_jisx0208.o .libs/ef_ucs4_jisx0212.o .libs/ef_ucs4_jisx0213.o ../src/.libs/ef_jis_property.o     
Undefined symbols for architecture arm64:
  "_ef_int_to_bytes", referenced from:
      _ef_map_jisx0208_1983_to_ucs4 in ef_ucs4_jisx0208.o
      _ef_map_jisx0208_nec_ext_to_ucs4 in ef_ucs4_jisx0208.o
      _ef_map_jisx0208_necibm_ext_to_ucs4 in ef_ucs4_jisx0208.o
      _ef_map_sjis_ibm_ext_to_ucs4 in ef_ucs4_jisx0208.o
      _ef_map_ucs4_to_jisx0208_1983 in ef_ucs4_jisx0208.o
      _ef_map_ucs4_to_jisx0208_nec_ext in ef_ucs4_jisx0208.o
      _ef_map_ucs4_to_jisx0208_necibm_ext in ef_ucs4_jisx0208.o
      ...
ld: symbol(s) not found for architecture arm64
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:36: libmef_jajp.la] Error 1
make[2]: Leaving directory '/private/tmp/nix-build-mlterm-3.9.2.drv-0/source/encodefilter/module'
make[1]: *** [Makefile:6: all] Error 2
make[1]: Leaving directory '/private/tmp/nix-build-mlterm-3.9.2.drv-0/source/encodefilter'
make: *** [Makefile:7: all] Error 2

It's trying to link to a .so oddly enough. I don't think that works on macOS.

@arakiken
Copy link
Owner

arakiken commented Nov 6, 2022

I updated libtool from 2.4.6 to 2.4.7.
abe3282

I hope this solves it.

@Atemu
Copy link
Author

Atemu commented Nov 8, 2022

That commit does compile and run successfully.

Thanks @arakiken!

@Atemu Atemu closed this as completed Nov 8, 2022
@Atemu
Copy link
Author

Atemu commented Dec 11, 2022

Hi @arakiken,

just wondering whether there you planned on doing a tagged release any time soon. If not that's also fine I just wouldn't want to backport patches now when a release is imminent.

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Apr 4, 2023
pkgsrc changes:
* make mlconfig.po installed properly (#66)
* remove local patches integrated into upstream

Upstream changes (noted in doc/en/ReleaseNote):

ver 3.9.3
* mlterm-wl supports xdg-decoration.
* Add --disable-compact-truecolor option to ./configure script.
* Add vte 0.68 API symbols to libvte compatible library.
* Add libvterm 0.2 API symbols to libvterm compatible library.
* Add --sdpr / simple_scrollbar_dpr option.
  (arakiken/mlterm#64)
* Set "COLORTERM=truecolor" environmental variable.
  (arakiken/mlterm#36)
* Update unicode property table (generated from UnicodeData.txt and
  EastAsianWidth.txt) to version 15.0.0.
* Support mosh-1.4.0.
* Merge patches:
  arakiken/mlterm#45.
  arakiken/mlterm#46.
  arakiken/mlterm#48.
  arakiken/mlterm#49.
  arakiken/mlterm#55. (Add --role / wm_role option)
  arakiken/mlterm#57.
  arakiken/mlterm#61.
  arakiken/mlterm#62.
  arakiken/mlterm#63.
* Bug fixes:
  Fix arakiken/mlterm#34.
  Fix arakiken/mlterm#35.
  Fix arakiken/mlterm#39.
  Fix arakiken/mlterm#44.
  Fix arakiken/mlterm#50.
  Fix arakiken/mlterm#51.
  Fix arakiken/mlterm#53.
  Fix https://twitter.com/isaki68k/status/1555895011991883783.
  Fix segfault in starting mlterm with --dyncomb and --otl.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants