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 794768 - Can't build glib 2.56.0 on macOS with meson: glib/tests/gdatetime
Can't build glib 2.56.0 on macOS with meson: glib/tests/gdatetime
Status: RESOLVED DUPLICATE of bug 794556
Product: glib
Classification: Platform
Component: build
2.56.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2018-03-28 15:17 UTC by Alexander Mezin
Modified: 2018-03-28 15:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexander Mezin 2018-03-28 15:17:26 UTC
FAILED: glib/tests/gdatetime
ccache cc  -o glib/tests/gdatetime 'glib/tests/gdatetime@exe/gdatetime.c.o' -L/Users/amezin/glib/zlib/install/lib -L/Users/amezin/glib/libffi/install/lib -L/Users/amezin/glib/gettext/install/lib -L/Users/amezin/glib/pcre/install/lib -Wl,-headerpad_max_install_names glib/libglib-2.0.0.dylib -pthread -lm -Wl,-rpath,/Users/amezin/glib/glib-meson/build/glib
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
Undefined symbols for architecture x86_64:
  "_libintl_bind_textdomain_codeset", referenced from:
      _main in gdatetime.c.o
  "_libintl_setlocale", referenced from:
      _test_non_utf8_printf in gdatetime.c.o
      _test_GDateTime_strftime_error_handling in gdatetime.c.o
      _test_modifiers in gdatetime.c.o
      _test_month_names in gdatetime.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Adding -lintl to LDFLAGS fixes this error (though there is at least one more issue, I will report it as a separate bug)

BTW, is it possible to disable building of tests (so that "ninja install" won't build them)?
Comment 1 Emmanuele Bassi (:ebassi) 2018-03-28 15:28:45 UTC
Thanks for taking the time to report this.
This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

> BTW, is it possible to disable building of tests (so that "ninja install" won't build them)?

Please file a new bug for this.

*** This bug has been marked as a duplicate of bug 794556 ***