GNOME Bugzilla – Bug 794768
Can't build glib 2.56.0 on macOS with meson: glib/tests/gdatetime
Last modified: 2018-03-28 15:28:45 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)?
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 ***