pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgsrc 2021Q4 on M1 Mac



I have another problem... gettext-tools won't build.

    ...
    libtool: link: sed 's|^|_|' < libtextstyle.sym >
.libs/libtextstyle-symbols.expsym
    libtool: link: clang -dynamiclib  -o .libs/libtextstyle.0.dylib
... -Wl,-single_module
-Wl,-exported_symbols_list,.libs/libtextstyle-symbols.expsym
    Undefined symbols for architecture arm64:
      "_iconv_ostream_create", referenced from:
         -exported_symbol[s_list] command line option
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to
see invocation)
    *** [libtextstyle.la] Error code 1
    bmake[5]: stopped in
/Users/dev/usr/pkgsrc/devel/gettext-tools/work/gettext-0.21/libtextstyle/lib
    1 error

If I remove the line "iconv_ostream_create" from the file
libtextstyle/lib/libtextstyle.sym.in, it builds.

This function seems to be defined in the file
libtextstyle/lib/iconv-ostream.c but it seems lost somewhere in
compilation:

    % nm libtextstyle/lib/.libs/iconv-ostream.o | grep iconv
    000000000000000c t _iconv_ostream__flush
    0000000000000018 t _iconv_ostream__free
    0000000000000000 t _iconv_ostream__write_mem
    0000000000000030 T _iconv_ostream_flush
    000000000000003c T _iconv_ostream_free
    0000000000000060 s _iconv_ostream_superclasses
    0000000000000024 T _iconv_ostream_write_mem
    0000000000000058 S _libtextstyle_iconv_ostream_typeinfo
    0000000000000078 S _libtextstyle_iconv_ostream_vtable

As a workaround, I added this to the Makefile:

SUBST_CLASSES+= symbols
SUBST_STAGE.symbols= pre-configure
SUBST_FILES.symbols= libtextstyle/lib/libtextstyle.sym.in
SUBST_SED.symbols= -e '/iconv_ostream_create/d'


Home | Main Index | Thread Index | Old Index