GNOME Bugzilla – Bug 791941
gexiv2 0.10.7 does not build on macOS
Last modified: 2018-02-06 19:50:26 UTC
Error message is: libtool: compile: clang++ -DPACKAGE_NAME=\"gexiv2\" -DPACKAGE_TARNAME=\"gexiv2\" -DPACKAGE_VERSION=\"0.10.7\" "-DPACKAGE_STRING=\"gexiv2 0.10.7\"" "-DPACKAGE_BUGREPORT=\"https://bugzilla.gnome.org/enter_bug.cgi?product=gexiv2\"" -DPACKAGE_URL=\"https://wiki.gnome.org/Projects/gexiv2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I/usr/local/Cellar/exiv2/0.26/include -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.54.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.54.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I./gexiv2 -fno-strict-aliasing -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Warray-bounds -Wreturn-type -Wno-overloaded-virtual -Wswitch-enum -Wswitch-default -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-error=overloaded-virtual -O2 -g -pipe -nostdlib -c gexiv2/gexiv2-startup.cpp -fno-common -DPIC -o gexiv2/.libs/libgexiv2_la-gexiv2-startup.o /bin/sh ./libtool --tag=CXX --mode=link clang++ -I./gexiv2 -fno-strict-aliasing -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Warray-bounds -Wreturn-type -Wno-overloaded-virtual -Wswitch-enum -Wswitch-default -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-error=overloaded-virtual -O2 -g -pipe -nostdlib -shared -export-dynamic -version-info 2:0:0 -Wl,--version-script=./gexiv2/gexiv2.map -o libgexiv2.la -rpath /usr/local/Cellar/gexiv2/0.10.7/lib gexiv2/libgexiv2_la-gexiv2-metadata.lo gexiv2/libgexiv2_la-gexiv2-metadata-exif.lo gexiv2/libgexiv2_la-gexiv2-metadata-gps.lo gexiv2/libgexiv2_la-gexiv2-metadata-iptc.lo gexiv2/libgexiv2_la-gexiv2-metadata-xmp.lo gexiv2/libgexiv2_la-gexiv2-stream-io.lo gexiv2/libgexiv2_la-gexiv2-preview-properties.lo gexiv2/libgexiv2_la-gexiv2-preview-image.lo gexiv2/libgexiv2_la-gexiv2-log.lo gexiv2/libgexiv2_la-gexiv2-startup.lo libgexiv2_la-gexiv2-enums.lo -L/usr/local/Cellar/exiv2/0.26/lib -lexiv2 -L/usr/local/Cellar/glib/2.54.2/lib -L/usr/local/opt/gettext/lib -lgobject-2.0 -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation libtool: link: clang++ -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libgexiv2.2.dylib gexiv2/.libs/libgexiv2_la-gexiv2-metadata.o gexiv2/.libs/libgexiv2_la-gexiv2-metadata-exif.o gexiv2/.libs/libgexiv2_la-gexiv2-metadata-gps.o gexiv2/.libs/libgexiv2_la-gexiv2-metadata-iptc.o gexiv2/.libs/libgexiv2_la-gexiv2-metadata-xmp.o gexiv2/.libs/libgexiv2_la-gexiv2-stream-io.o gexiv2/.libs/libgexiv2_la-gexiv2-preview-properties.o gexiv2/.libs/libgexiv2_la-gexiv2-preview-image.o gexiv2/.libs/libgexiv2_la-gexiv2-log.o gexiv2/.libs/libgexiv2_la-gexiv2-startup.o .libs/libgexiv2_la-gexiv2-enums.o -L/usr/local/Cellar/exiv2/0.26/lib -lexiv2 -L/usr/local/Cellar/glib/2.54.2/lib -L/usr/local/opt/gettext/lib -lgobject-2.0 -lglib-2.0 -lintl -O2 -g -Wl,--version-script=./gexiv2/gexiv2.map -Wl,-framework -Wl,CoreFoundation -install_name /usr/local/Cellar/gexiv2/0.10.7/lib/libgexiv2.2.dylib -compatibility_version 3 -current_version 3.0 -Wl,-single_module ld: unknown option: --version-script=./gexiv2/gexiv2.map Removing the unsupported options fixes the build.
Created attachment 365969 [details] [review] Do not use linker script on darwin
Can you check if that works for you?
Attachment 365969 [details] pushed as 670b3e1 - Do not use linker script on darwin
Hi Jens, 0.10.8 is now out but it still fails with the same linker failure. Examination of the patch reveals why: In configure.ac AM_CONDITIONAL(PLATFORM_DARWIN, test "$platform_win32" = "yes") should be: AM_CONDITIONAL(PLATFORM_DARWIN, test "$platform_darwin" = "yes") Sorry for not testing this earlier, your email must have gotten lost in the madness of the holidays...
Shit, sorry :(
Created attachment 367961 [details] [review] Fix check for darwin
Attachment 367961 [details] pushed as 35751fc - Fix check for darwin