[MacPorts] #60220: librsvg @2.48.0_0 +x11: ld: symbol(s) not found for architecture x86_64

MacPorts noreply at macports.org
Sat Mar 21 03:47:11 UTC 2020


#60220: librsvg @2.48.0_0 +x11: ld: symbol(s) not found for architecture x86_64
--------------------+---------------------
 Reporter:  JDLH    |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.6.2
 Keywords:          |       Port:  librsvg
--------------------+---------------------
 I had librsvg @2.46.0_0 +x11 installed and all was good. Today macports
 offered an upgrade to librsvg @2.48.0_0 +x11. This fails both `port
 upgrade librsvg` and uninstall followed by `port install librsvg +x11`,
 with a proximate error:

 {{{
 :info:build libtool: link: /usr/bin/clang -dynamiclib  -o
 .libs/librsvg-2.2.dylib  librsvg/.libs/2_la-librsvg-features.o
 librsvg/.libs/2_la-rsvg-base.o librsvg/.libs/2_la-rsvg-handle.o
 librsvg/.libs/2_la-rsvg-pixbuf.o   -Wl,-force_load,./.libs/librsvg_c_api.a
 -L/opt/local/lib -lpng16 -lcairo-gobject -lgdk_pixbuf-2.0 -lgio-2.0 -lxml2
 -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
 -lglib-2.0 -lintl -lfontconfig -lfreetype  -arch x86_64 -Os -arch x86_64
 -Wl,-headerpad_max_install_names -arch x86_64 -Wl,-framework
 -Wl,CoreFoundation   -install_name  /opt/local/lib/librsvg-2.2.dylib
 -compatibility_version 50 -current_version 50.0 -Wl,-single_module
 -Wl,-exported_symbols_list,.libs/librsvg-2-symbols.expsym
 :info:build ld: warning: text-based stub file
 /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd
 and library file
 /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are
 out of sync. Falling back to library file for linking.
 :info:build Undefined symbols for architecture x86_64:
 :info:build   "_class_addMethod", referenced from:
 :info:build       objc::declare::ClassDecl::root::h023efa98eb61f0b7 in
 librsvg_c_api.a(objc-15a15e498bf7fadd.objc.egk0pcua-cgu.1.rcgu.o)
 :info:build   "_class_addProtocol", referenced from:
 :info:build
 objc::declare::ClassDecl::add_protocol::h35640417fe0ae7ea in
 librsvg_c_api.a(objc-15a15e498bf7fadd.objc.egk0pcua-cgu.1.rcgu.o)
 ...[snip]...
 :info:build
 _$LT$objc_foundation..string..NSString$u20$as$u20$core..fmt..Debug$GT$::fmt::ha9eacc7792f22b28
 in librsvg_c_api.a(objc_foundation-3a461825192df7b7.objc_foundation
 .70fayurc-cgu.1.rcgu.o)
 :info:build       ...
 ld: symbol(s) not found for architecture x86_64
 }}}

 Log file
 `/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_librsvg/librsvg/main.log`
 attached.

 `port install librsvg` (without `+x11`) also failed with a similar error
 message, but with different details in the debugging log. I think it
 installed different variants of the ports on which it depended.

 This port was recently modified with
 changeset:64bcddb60dddde212c38be268c22a2c35cbf37fe/macports-ports . This
 updated the port from upstream version 2.46 to 2.48, and changed rust
 cross-compilation in a way that I don't know enough to understand.

-- 
Ticket URL: <https://trac.macports.org/ticket/60220>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list