[MacPorts] #62465: Building libheif-1.11.0 fails with a link error

MacPorts noreply at macports.org
Tue Mar 16 14:54:21 UTC 2021


#62465: Building libheif-1.11.0 fails with a link error
-------------------------+---------------------------------
  Reporter:  janflyborg  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.4
Resolution:              |   Keywords:
      Port:  libheif     |
-------------------------+---------------------------------

Comment (by cjones051073):

 Hmmm, I don't get why its failing for you. The build command is

 {{{
 info:build libtool: link: /usr/bin/clang++ -I.. -I../.
 -I/opt/local/include/libpng16 -pipe -Os -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.2.sdk -arch
 x86_64 -std=gnu++11 -Wall -Werror -Wsign-compare -Wconversion -Wno-sign-
 conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error
 =deprecated-declarations -Wno-error=potentially-evaluated-expression
 -Wl,-headerpad_max_install_names -Wl,-syslibroot
 -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX11.2.sdk -arch x86_64
 -o .libs/heif-convert heif_convert-encoder.o heif_convert-heif_convert.o
 heif_convert-encoder_y4m.o heif_convert-encoder_jpeg.o heif_convert-
 encoder_png.o  -L/opt/local/lib ../libheif/.libs/libheif.dylib -lde265
 -lx265 -ldav1d -ljpeg -lpng16 -lpthread
 1638    :info:build Undefined symbols for architecture x86_64:
 1639    :info:build   "_jpeg_write_icc_profile", referenced from:
 1640    :info:build       JpegEncoder::Encode(heif_image_handle const*,
 heif_image const*, std::__1::basic_string<char,
 std::__1::char_traits<char>, std::__1::allocator<char> > const&) in
 heif_convert-encoder_jpeg.o
 }}}

 so the above has `-ljpeg` which it should find in `/opt/local/lib` which
 is provided by the libjpeg-turbo port, and contains that symbol

 {{{
  > nm -a /opt/local/lib/libjpeg.8.2.2.dylib | grep _jpeg_write_icc_profile
 000000000000e701 T _jpeg_write_icc_profile
 }}}

 As I said, it all works as expected here...

-- 
Ticket URL: <https://trac.macports.org/ticket/62465#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list