[MacPorts] #60277: librsvg @2.48.1: `port test` fails with "undefined symbols"
MacPorts
noreply at macports.org
Sun Mar 29 22:46:55 UTC 2020
#60277: librsvg @2.48.1: `port test` fails with "undefined symbols"
---------------------+---------------------
Reporter: dliessi | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: librsvg
---------------------+---------------------
I tried `sudo port -t test` after applying https://github.com/macports
/macports-ports/pull/6739.
It failed.
I'm using
{{{
macOS 10.13.6 17G11023
Xcode 9.4.1 9F2000
}}}
Here's the relevant part of `main.log` (full file attached):
{{{
:info:test depbase=`echo test-utils.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`;\
:info:test /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I. -I..
-I../librsvg -DTEST_DATA_DIR="\".\""
-DTEST_SRC_DIR="\"/opt/local/var/macports/build/_opt_macports-
git_macports-ports_graphics_librsvg/librsvg/work/librsvg-2.48.1/tests\""
-DTOP_SRC_DIR="\"..\"" -D_REENTRANT -I/opt/local/include/cairo
-I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libxml2
-I/opt/local/include/pango-1.0 -I/opt/local/include/cairo
-I/opt/local/include/pixman-1 -I/opt/local/include/pango-1.0
-I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
-I/opt/local/include/fribidi -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include/ossp
-I/opt/local/include/freetype2 -I/opt/local/include/libpng16
-I/opt/local/include -pipe -Os -arch x86_64 -MT test-utils.o -MD -MP -MF
$depbase.Tpo -c -o test-utils.o test-utils.c &&\
:info:test mv -f $depbase.Tpo $depbase.Po
:info:test test-utils.c:385:45: warning: implicit declaration of function
'hb_version_string' is invalid in C99 [-Wimplicit-function-declaration]
:info:test g_test_message ("Harfbuzz version: %s", hb_version_string
());
:info:test ^
:info:test test-utils.c:385:45: warning: format specifies type 'char *'
but the argument has type 'int' [-Wformat]
:info:test g_test_message ("Harfbuzz version: %s", hb_version_string
());
:info:test ~~
^~~~~~~~~~~~~~~~~~~~
:info:test %d
:info:test 2 warnings generated.
:info:test /bin/sh ../libtool --tag=CC --mode=link /usr/bin/clang
-pipe -Os -arch x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names
-lobjc -arch x86_64 -o api api.o test-utils.o ../librsvg-2.la
-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 -Wl,-framework -Wl,CoreFoundation -lfontconfig
-lfreetype
:info:test libtool: link: /usr/bin/clang -pipe -Os -arch x86_64
-Wl,-headerpad_max_install_names -arch x86_64 -o .libs/api api.o test-
utils.o -Wl,-framework -Wl,CoreFoundation -L/opt/local/lib
../.libs/librsvg-2.dylib -lobjc -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
:info:test 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:test Undefined symbols for architecture x86_64:
:info:test "_hb_version_string", referenced from:
:info:test _test_utils_print_dependency_versions in test-utils.o
:info:test ld: symbol(s) not found for architecture x86_64
:info:test clang: error: linker command failed with exit code 1 (use -v to
see invocation)
:info:test make[2]: *** [api] Error 1
:info:test make[1]: *** [check-am] Error 2
:info:test make: *** [check] Error 2
:info:test Command failed: cd "/opt/local/var/macports/build
/_opt_macports-git_macports-
ports_graphics_librsvg/librsvg/work/librsvg-2.48.1/tests" && /usr/bin/make
check
:info:test Exit code: 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/60277>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list