Opened 2 years ago

Closed 2 years ago

#65330 closed defect (fixed)

libiptcdata: builds failing for big sur and monterey: undefined symbols _libintl_xxx

Reported by: mascguy (Christopher Nielsen) Owned by: grrr@…
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: bigsur monterey Cc: jasonliu-- (Jason Liu)
Port: libiptcdata

Description (last modified by mascguy (Christopher Nielsen))

While this port builds successfully for 10.15 and earlier, it fails on Big Sur and Monterey:

/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/clang  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch x86_64 -g -Wall -Wmissing-declarations -Wmissing-prototypes -version-info 3:3:3 -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch x86_64 -g -Wall -o libiptcdata.la -rpath /opt/local/lib iptc-data.lo iptc-dataset.lo iptc-jpeg.lo iptc-log.lo iptc-mem.lo iptc-tag.lo iptc-utils.lo  
/usr/bin/clang -dynamiclib  -o .libs/libiptcdata.0.3.3.dylib  .libs/iptc-data.o .libs/iptc-dataset.o .libs/iptc-jpeg.o .libs/iptc-log.o .libs/iptc-mem.o .libs/iptc-tag.o .libs/iptc-utils.o  -L/opt/local/lib  -arch x86_64 -Wl,-headerpad_max_install_names -Wl,-syslibroot -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch x86_64 -install_name  /opt/local/lib/libiptcdata.0.dylib -compatibility_version 4 -current_version 4.3 -Wl,-single_module
Undefined symbols for architecture x86_64:
  "_libintl_bind_textdomain_codeset", referenced from:
      _iptc_tag_get_title in iptc-tag.o
      _iptc_tag_get_description in iptc-tag.o
      _iptc_format_get_name in iptc-tag.o
  "_libintl_bindtextdomain", referenced from:
      _iptc_tag_get_title in iptc-tag.o
      _iptc_tag_get_description in iptc-tag.o
      _iptc_format_get_name in iptc-tag.o
  "_libintl_dgettext", referenced from:
      _iptc_log_code_get_title in iptc-log.o
      _iptc_log_code_get_message in iptc-log.o
      _iptc_tag_get_title in iptc-tag.o
      _iptc_tag_get_description in iptc-tag.o
      _iptc_format_get_name in iptc-tag.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libiptcdata.la] Error 1

Of note, this is a blocker for port rawtherapee.

https://ports.macports.org/port/libiptcdata/details/

Attachments (1)

libiptcdata_Makefile.in.patch (530 bytes) - added by jmroot (Joshua Root) 2 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 2 years ago by mascguy (Christopher Nielsen)

Description: modified (diff)

Changed 2 years ago by jmroot (Joshua Root)

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Not sure how this ever worked, but the attached seems to do the trick.

comment:3 Changed 2 years ago by mascguy (Christopher Nielsen)

comment:4 Changed 2 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 9268f2b2520b0be23cfeab2d54302fa01aa0a040/macports-ports (master):

libiptcdata: add intl-related libs to link path

  • Update deps for gettext
  • Add other missing deps

Fixes: #65330

Note: See TracTickets for help on using tickets.