I am stuck at the first phase of building glib-2.62.4
in blfs-9.1 (i.e. the first compilation before installing
desktop-file-utils-0.24 and shared-mime-info-1.15
in order to do the tests). I applied both patches and
followed the instructions in the blfs-9.1 book. Here
is the output I get after issuing the "ninja" command:

rkm:/sources/glib-2.62.4/build$ ninja
[775/1157] Linking target gio/tests/gdbus-serialization.
FAILED: gio/tests/gdbus-serialization
cc  -o gio/tests/gdbus-serialization 'gio/tests/bcb7ac7@@gdbus-serialization@exe/gdbus-serialization.c.o' 'gio/tests/bcb7ac7@@gdbus-serialization@exe/gdbus-tests.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,--start-group glib/libglib-2.0.so.0.6200.4 gmodule/libgmodule-2.0.so.0.6200.4 gobject/libgobject-2.0.so.0.6200.4 gio/libgio-2.0.so.0.6200.4 -pthread -ldbus-1 -Wl,--end-group '-Wl,-rpath,$ORIGIN/../../glib:$ORIGIN/../../gmodule:$ORIGIN/../../gobject:$ORIGIN/..' -Wl,-rpath-link,/sources/glib-2.62.4/build/glib -Wl,-rpath-link,/sources/glib-2.62.4/build/gmodule -Wl,-rpath-link,/sources/glib-2.62.4/build/gobject -Wl,-rpath-link,/sources/glib-2.62.4/build/gio
/usr/bin/ld: cannot find -ldbus-1
collect2: error: ld returned 1 exit status
[776/1157] Compiling C object 'gio/tests/bcb7ac7@@file@exe/file.c.o'.
ninja: build stopped: subcommand failed.

I had previously installed libxslt-1.1.34, and since it says in the book
that there may be several errors if libxslt is installed (although I
think those are supposed to occur with the following "ninja install"
command), I thought maybe I could proceed with the installation
anyway. But when I tried to install:

rkm:/sources/glib-2.62.4/build$ su
Password:
root:/sources/glib-2.62.4/build# ninja install
[1/383] Linking target gio/tests/gdbus-serialization.
FAILED: gio/tests/gdbus-serialization
cc  -o gio/tests/gdbus-serialization 'gio/tests/bcb7ac7@@gdbus-serialization@exe/gdbus-serialization.c.o' 'gio/tests/bcb7ac7@@gdbus-serialization@exe/gdbus-tests.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,--start-group glib/libglib-2.0.so.0.6200.4 gmodule/libgmodule-2.0.so.0.6200.4 gobject/libgobject-2.0.so.0.6200.4 gio/libgio-2.0.so.0.6200.4 -pthread -ldbus-1 -Wl,--end-group '-Wl,-rpath,$ORIGIN/../../glib:$ORIGIN/../../gmodule:$ORIGIN/../../gobject:$ORIGIN/..' -Wl,-rpath-link,/sources/glib-2.62.4/build/glib -Wl,-rpath-link,/sources/glib-2.62.4/build/gmodule -Wl,-rpath-link,/sources/glib-2.62.4/build/gobject -Wl,-rpath-link,/sources/glib-2.62.4/build/gio
/usr/bin/ld: cannot find -ldbus-1
collect2: error: ld returned 1 exit status
[2/383] Linking target gio/tests/file.
ninja: build stopped: subcommand failed.
root:/sources/glib-2.62.4/build#

I also tried using the quick install instructions given
in the INSTALL.in file, which do not apply any
patches and do not pass any parameters to meson:

rkm:/sources$ tar xf glib-2.62.4.tar.xz
rkm:/sources$ cd glib-2.62.4
rkm:/sources/glib-2.62.4$ meson _build
.....
rkm:/sources/glib-2.62.4$ ninja -C _build
ninja: Entering directory `_build'
[776/1142] Linking target gio/tests/gdbus-serialization.
FAILED: gio/tests/gdbus-serialization
cc  -o gio/tests/gdbus-serialization 'gio/tests/bcb7ac7@@gdbus-serialization@exe/gdbus-serialization.c.o' 'gio/tests/bcb7ac7@@gdbus-serialization@exe/gdbus-tests.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,--start-group glib/libglib-2.0.so.0.6200.4 gmodule/libgmodule-2.0.so.0.6200.4 gobject/libgobject-2.0.so.0.6200.4 gio/libgio-2.0.so.0.6200.4 -pthread -ldbus-1 -Wl,--end-group '-Wl,-rpath,$ORIGIN/../../glib:$ORIGIN/../../gmodule:$ORIGIN/../../gobject:$ORIGIN/..' -Wl,-rpath-link,/sources/glib-2.62.4/_build/glib -Wl,-rpath-link,/sources/glib-2.62.4/_build/gmodule -Wl,-rpath-link,/sources/glib-2.62.4/_build/gobject -Wl,-rpath-link,/sources/glib-2.62.4/_build/gio
/usr/bin/ld: cannot find -ldbus-1
collect2: error: ld returned 1 exit status
[777/1142] Compiling C object 'gio/tests/bcb7ac7@@file@exe/file.c.o'.
ninja: build stopped: subcommand failed.
rkm:/sources/glib-2.62.4$

The same problem occurs, which is apparently somehow related
to gdbus-serialization and ldbus-1.
I think I have installed the necessary dependencies. Any ideas?

Richard
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to