tech-pkg archive

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

gettext-tools and libiconv on Darwin



Hi!

I am doing a pkg_rolling-replace (actually a pkgrrxx, thanks pho!) on my Mac running macOS beta at the moment, and it is failing in the build of gettext-tools. The installed version, 0.21.1, was fine but 0.22 seems to have an iconv dependency somewhere:

Making all in libtextstyle
/opt/pkg/bin/bmake  all-recursive
Making all in lib
/opt/pkg/bin/bmake  all-am
/opt/pkg/bin/mksh ../libtool  --tag=CC    --mode=link clang   -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -O2 -I/opt/pkg/include  -no-undefined                   -L/opt/pkg/lib -lncurses -R/opt/pkg/lib  -no-undefined -export-symbols libtextstyle.sym -version-info  2:0:2 -rpath /opt/pkg/lib  -L/opt/pkg/lib -L/usr/lib -o libtextstyle.la -rpath /opt/pkg/lib libtextstyle_la-gl_array_list.lo  libtextstyle_la-basename-lgpl.lo libtextstyle_la-binary-io.lo  libtextstyle_la-c-ctype.lo libtextstyle_la-c-strcasecmp.lo  libtextstyle_la-c-strncasecmp.lo libtextstyle_la-cloexec.lo   libtextstyle_la-concat-filename.lo   libtextstyle_la-error.lo libtextstyle_la-exitfail.lo  libtextstyle_la-fatal-signal.lo   libtextstyle_la-fd-hook.lo libtextstyle_la-fd-ostream.lo  libtextstyle_la-file-ostream.lo    libtextstyle_la-free.lo    libtextstyle_la-full-write.lo  libtextstyle_la-get_ppid_of.lo  libtextstyle_la-get_progname_of.lo       libtextstyle_la-html-ostream.lo  libtextstyle_la-html-styled-ostream.lo  libtextstyle_la-ialloc.lo libtextstyle_la-iconv-ostream.lo    libtextstyle_la-gl_list.lo  glthread/libtextstyle_la-lock.lo   libtextstyle_la-malloca.lo libtextstyle_la-math.lo  libtextstyle_la-mem-hash-map.lo   libtextstyle_la-memory-ostream.lo    libtextstyle_la-noop-styled-ostream.lo  libtextstyle_la-obstack.lo libtextstyle_la-open.lo libtextstyle_la-ostream.lo  libtextstyle_la-printf-frexp.lo  libtextstyle_la-printf-frexpl.lo    libtextstyle_la-reallocarray.lo  libtextstyle_la-safe-read.lo libtextstyle_la-safe-write.lo   libtextstyle_la-sig-handler.lo    libtextstyle_la-sockets.lo  libtextstyle_la-stat.lo libtextstyle_la-stat-time.lo      libtextstyle_la-strerror.lo libtextstyle_la-strerror-override.lo  libtextstyle_la-styled-ostream.lo  libtextstyle_la-sys_socket.lo libtextstyle_la-term-ostream.lo  libtextstyle_la-term-style-control.lo  libtextstyle_la-term-styled-ostream.lo  glthread/libtextstyle_la-threadlib.lo  libtextstyle_la-unistd.lo unistr/libtextstyle_la-u8-mbtouc.lo  unistr/libtextstyle_la-u8-mbtouc-aux.lo        libtextstyle_la-xmalloc.lo  libtextstyle_la-xalloc-die.lo  libtextstyle_la-xconcat-filename.lo  libtextstyle_la-xgethostname.lo libtextstyle_la-gl_xlist.lo  libtextstyle_la-xsize.lo libtextstyle_la-xvasprintf.lo  libtextstyle_la-xasprintf.lo libtextstyle_la-color.lo  libtextstyle_la-misc.lo libtextstyle_la-version.lo asnprintf.lo asprintf.lo printf-args.lo printf-parse.lo snprintf.lo vasnprintf.lo vasprintf.lo libcroco_rpl.la  libglib_rpl.la libxml_rpl.la  -lintl -liconv
libtool: link: /opt/pkg/bin/nbsed 's|^|_|' < libtextstyle.sym > .libs/libtextstyle-symbols.expsym
libtool: link: clang -dynamiclib  -o .libs/libtextstyle.0.dylib  .libs/libtextstyle_la-gl_array_list.o .libs/libtextstyle_la-basename-lgpl.o .libs/libtextstyle_la-binary-io.o .libs/libtextstyle_la-c-ctype.o .libs/libtextstyle_la-c-strcasecmp.o .libs/libtextstyle_la-c-strncasecmp.o .libs/libtextstyle_la-cloexec.o .libs/libtextstyle_la-concat-filename.o .libs/libtextstyle_la-error.o .libs/libtextstyle_la-exitfail.o .libs/libtextstyle_la-fatal-signal.o .libs/libtextstyle_la-fd-hook.o .libs/libtextstyle_la-fd-ostream.o .libs/libtextstyle_la-file-ostream.o .libs/libtextstyle_la-free.o .libs/libtextstyle_la-full-write.o .libs/libtextstyle_la-get_ppid_of.o .libs/libtextstyle_la-get_progname_of.o .libs/libtextstyle_la-html-ostream.o .libs/libtextstyle_la-html-styled-ostream.o .libs/libtextstyle_la-ialloc.o .libs/libtextstyle_la-iconv-ostream.o .libs/libtextstyle_la-gl_list.o glthread/.libs/libtextstyle_la-lock.o .libs/libtextstyle_la-malloca.o .libs/libtextstyle_la-math.o .libs/libtextstyle_la-mem-hash-map.o .libs/libtextstyle_la-memory-ostream.o .libs/libtextstyle_la-noop-styled-ostream.o .libs/libtextstyle_la-obstack.o .libs/libtextstyle_la-open.o .libs/libtextstyle_la-ostream.o .libs/libtextstyle_la-printf-frexp.o .libs/libtextstyle_la-printf-frexpl.o .libs/libtextstyle_la-reallocarray.o .libs/libtextstyle_la-safe-read.o .libs/libtextstyle_la-safe-write.o .libs/libtextstyle_la-sig-handler.o .libs/libtextstyle_la-sockets.o .libs/libtextstyle_la-stat.o .libs/libtextstyle_la-stat-time.o .libs/libtextstyle_la-strerror.o .libs/libtextstyle_la-strerror-override.o .libs/libtextstyle_la-styled-ostream.o .libs/libtextstyle_la-sys_socket.o .libs/libtextstyle_la-term-ostream.o .libs/libtextstyle_la-term-style-control.o .libs/libtextstyle_la-term-styled-ostream.o glthread/.libs/libtextstyle_la-threadlib.o .libs/libtextstyle_la-unistd.o unistr/.libs/libtextstyle_la-u8-mbtouc.o unistr/.libs/libtextstyle_la-u8-mbtouc-aux.o .libs/libtextstyle_la-xmalloc.o .libs/libtextstyle_la-xalloc-die.o .libs/libtextstyle_la-xconcat-filename.o .libs/libtextstyle_la-xgethostname.o .libs/libtextstyle_la-gl_xlist.o .libs/libtextstyle_la-xsize.o .libs/libtextstyle_la-xvasprintf.o .libs/libtextstyle_la-xasprintf.o .libs/libtextstyle_la-color.o .libs/libtextstyle_la-misc.o .libs/libtextstyle_la-version.o .libs/asnprintf.o .libs/asprintf.o .libs/printf-args.o .libs/printf-parse.o .libs/snprintf.o .libs/vasnprintf.o .libs/vasprintf.o   -Wl,-force_load,./.libs/libcroco_rpl.a -Wl,-force_load,./.libs/libglib_rpl.a -Wl,-force_load,./.libs/libxml_rpl.a  -L/Users/bsiegert/pkgsrc/devel/gettext-tools/work/.buildlink/lib -lncurses /Users/bsiegert/pkgsrc/devel/gettext-tools/work/.buildlink/lib/libintl.dylib -liconv  -O2 -Wl,-rpath -Wl,/opt/pkg/lib   -install_name  /opt/pkg/lib/libtextstyle.0.dylib -compatibility_version 3 -current_version 3.0 -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

Any ideas?

Sure enough, the .expsym file in .libs contains various symbols prefixed with _iconv. The implementations though are #if HAVE_LIBICONV. It looks like an upstream issue to me.

Or perhaps I am misunderstanding the custom pipeline they use for writing the .sym file in the first place?

— 
Benny


Home | Main Index | Thread Index | Old Index