After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 791941 - gexiv2 0.10.7 does not build on macOS
gexiv2 0.10.7 does not build on macOS
Status: RESOLVED FIXED
Product: gexiv2
Classification: Other
Component: build
0.10.x
Other Mac OS
: Normal major
: ---
Assigned To: Gexiv2 Maintainers
Gexiv2 Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-12-25 09:32 UTC by Tom Schoonjans
Modified: 2018-02-06 19:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Do not use linker script on darwin (2.19 KB, patch)
2017-12-25 17:46 UTC, Jens Georg
committed Details | Review
Fix check for darwin (849 bytes, patch)
2018-02-06 19:49 UTC, Jens Georg
committed Details | Review

Description Tom Schoonjans 2017-12-25 09:32:36 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.
Comment 1 Jens Georg 2017-12-25 17:46:59 UTC
Created attachment 365969 [details] [review]
Do not use linker script on darwin
Comment 2 Jens Georg 2017-12-25 17:47:20 UTC
Can you check if that works for you?
Comment 3 Jens Georg 2018-01-05 11:46:33 UTC
Attachment 365969 [details] pushed as 670b3e1 - Do not use linker script on darwin
Comment 4 Tom Schoonjans 2018-02-06 02:03:29 UTC
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...
Comment 5 Jens Georg 2018-02-06 09:42:44 UTC
Shit, sorry :(
Comment 6 Jens Georg 2018-02-06 19:49:05 UTC
Created attachment 367961 [details] [review]
Fix check for darwin
Comment 7 Jens Georg 2018-02-06 19:50:22 UTC
Attachment 367961 [details] pushed as 35751fc - Fix check for darwin