Score:0

Building GLib using command ninja -C _build failed

na flag

While installing GLib based on INSTALL.md guide from https://download.gnome.org/sources/glib/2.76/ (continued from here -> How to tar xf glib-*.tar.gz correctly?)

I typed to the terminal ninja -C _build And while building got an error:

ninja: Entering directory `_build'
[980/1499] Generating gio/tests/plugin-resources.c with a custom command
FAILED: gio/tests/plugin-resources.c 
/home/User/Desktop/GLib/glib-2.76.3/_build/gio/glib-compile-resources --compiler=gcc --target=gio/tests/plugin-resources.c --sourcedir=/home/User/Desktop/GLib/glib-2.76.3/gio/tests --internal --generate-source --c-name _g_plugin ../gio/tests/test4.gresource.xml
/home/User/Desktop/GLib/glib-2.76.3/_build/gio/glib-compile-resources: symbol lookup error: /home/User/Desktop/GLib/glib-2.76.3/_build/gio/glib-compile-resources: undefined symbol: g_task_set_static_name
[989/1499] Compiling C object gio/test...required-2-64.p/gdbus-test-codegen.c.o
ninja: build stopped: subcommand failed.

Where does this error come from and how to fix it?

hr flag
The symbol should be defined in the build's own `./_build/gio/libgio-2.0.so.0.7600.0` file, so the error suggests that was not built correctly (or not built at all). You might get some additional information if you start over and run ninja with the verbose flag (`ninja -C _build/ --verbose`). However you might want to consider one of [the alternative routes I suggested](https://askubuntu.com/questions/1470114/how-to-update-glib-repository-to-at-2-76-3#comment2576725_1470114).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.