On 11/16/2014 10:18 AM, Alan Feuerbacher wrote:
On 11/16/2014 9:21 AM, Alan Feuerbacher wrote:
I'm compiling colord-1.2.5 in the latest BLFS systemd development book.
When make begins compiling /sources/colord-1.2.5/examples, it fails with:

/usr/lib/libdbus-1.so: file not recognized: Is a directory
collect2: error: ld returned 1 exit status
Makefile:475 recipe for target 'cd-dbus-create-device' failed

Any hints for resolving this?


A bit more information on my quest to compile colord-1.2.5:

I'm using the configure script for colord-1.2.4 from the BLFS systemd
development book to compile colord-1.2.5 for systemd.

I found that adding the flag --disable-examples allows a successful
compilation. So the complete script is:

./configure --prefix=/usr                \
             --sysconfdir=/etc            \
             --localstatedir=/var         \
             --with-daemon-user=colord    \
             --enable-vala                \
             --disable-bash-completion    \
             --disable-examples \
             --disable-static &&
make

I also did the tests with make -k check. All tests passed but one.
Here is the output:

###############################
make[4]: Entering directory '/sources/colord-1.2.5/lib/colord'
../../test-driver: line 107:   685 Aborted                 (core dumped)
"$@"
 > $log_file 2>&1
FAIL: /sources/colord-1.2.5/lib/colord/.libs/lt-cd-test-daemon
PASS: /sources/colord-1.2.5/lib/colord/.libs/lt-cd-test-private
make[5]: Entering directory '/sources/colord-1.2.5/lib/colord'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/sources/colord-1.2.5/lib/colord'
============================================================================

Testsuite summary for colord 1.2.5
============================================================================

# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================

See lib/colord/test-suite.log
Please report to http://www.freedesktop.org/software/colord/
============================================================================

Makefile:1515: recipe for target 'test-suite.log' failed
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory '/sources/colord-1.2.5/lib/colord'
Makefile:1621: recipe for target 'check-TESTS' failed
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory '/sources/colord-1.2.5/lib/colord'
Makefile:1701: recipe for target 'check-am' failed
make[2]: *** [check-am] Error 2
make[2]: Target 'check' not remade because of errors.
make[2]: Leaving directory '/sources/colord-1.2.5/lib/colord'
#############################

I don't know what to make of the test failure.

Shortly before compiling colord I installed dbus-1.8.10, again using
a combination of systemd and non-systemd scripts. This appears to have
been successful.

I found something else that I don't understand: Normally, when you
have to recompile something, executing "make distclean" cleans up the
source directory enough to allow a clean recompilation. But that isn't
the case with colord. In playing around with compiling version 1.2.4
and 1.2.5 I found that the only way successfully to get a completely
clean source directory is to rm the old one and untar the source again.

Can someone explain to me why that might be?

After trying to compile cups-2.0.1 I discovered a problem common to cups and colord: when installing dbus-1.8.10 a library link gets set wrongly:

Should be: /usr/lib/libdbus-1.so -> ../../lib/libdbus-1.so

Wrongly set to: /usr/lib/libdbus-1.so -> ../../lib/

With the link set properly, cups and colord compile fine.

I don't know how to find out where the link is being improperly set.

Alan


--
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