<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi again!<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>No answer so far, but I’ve eventually solved the problem by myself. I am posting the solution here cause it was a tricky one.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>First: the “Could not connect” message was coming from glib (ugly that it doesn’t say that). Glib does not explicitly require dbus, but it uses some dbus dirs. Therefore I had to patch glib so that it finds the dbus dirs in /opt and not in the root filesystem.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Second: dbus had a problem:  “make install”  wasn’t performing “ldconfig” automatically. That makes dbus-daemon-launch-helper unable to load /opt/usr/lib/libdbus-1.so.3 when running as messagebus user from the libexec dir. This is why dbus-daemon wasn’t launching any service.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I hope this would be useful for someone!<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Have a nice time! </span><span style='font-family:Wingdings;color:#1F497D'>J</span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Florin<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><a name="_MailEndCompose"><span style='color:#1F497D'><o:p> </o:p></span></a></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Florin Gherendi [mailto:florin_gf@yahoo.fr] <br><b>Sent:</b> Wednesday, June 01, 2016 11:54 PM<br><b>To:</b> colord@lists.freedesktop.org<br><b>Subject:</b> trouble getting colord to work<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi everybody!<o:p></o:p></p><p class=MsoNormal>I am new to this list. I am trying to make a port of colord on a DD-WRT WiFi router with ARM processor, because it would be useful for CUPS. I’ve “hacked” a lot of things to work on that router, even a native gcc and a quite well working LinuxFromScratch base system, I even have GTK+3 working (remotely with Mesa and all). Also, DBus responds well to tests. <o:p></o:p></p><p class=MsoNormal>My setup is a little bit nonstandard, since everything is installed in the /opt directory, because the root file system is read only, however I’ve got everything working well, with source modifications for some of the packages (to replace /etc with /opt/etc and so on). <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Now my problem: I cannot get colord DBus service to start. “colormgr get-devices” gives me “No connection to colord: Could not connect: No such file or directory” ; something similar for “colord-session-example”. Well, the error message gives barely any information, and I have no means to know what is the file or directory it cannot find, and it looks pretty difficult to debug with gdb. Can anyone give me a clue where to start diagnostics?<o:p></o:p></p><p class=MsoNormal>I could suspect a DBus config that prevents it to launch colord, but I am not sure. <o:p></o:p></p><p class=MsoNormal>My Valgrind version (3.10) is a bit old and it would take some time to compile 3.11 in order to run the tests for colord-1.3.2 with “make check”, but the individual tests ran without Valgrind  from command line give me all “Passed”.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>dbus-send --system            \<o:p></o:p></p><p class=MsoNormal>  --dest=org.freedesktop.DBus \<o:p></o:p></p><p class=MsoNormal>  --type=method_call          \<o:p></o:p></p><p class=MsoNormal>  --print-reply               \<o:p></o:p></p><p class=MsoNormal>  /org/freedesktop/DBus       \<o:p></o:p></p><p class=MsoNormal>  org.freedesktop.DBus.ListNames<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>will give<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>method return time=1464813810.680715 sender=org.freedesktop.DBus -> destination=:1.2 serial=3 reply_serial=2<o:p></o:p></p><p class=MsoNormal>   array [<o:p></o:p></p><p class=MsoNormal>      string "org.freedesktop.DBus"<o:p></o:p></p><p class=MsoNormal>      string ":1.2"<o:p></o:p></p><p class=MsoNormal>   ] <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So the colord service is not listed, even if org.freedesktop.ColorManager.service is present in  /opt/usr/share/dbus-1/system-services and points to the right location of colord. Of course, dbus is configured to search for everything in /opt, not in root filesystem; I’ve even modifed the DBus sources and replaced all /etc, /usr and /var with the /opt prefixed versions. <o:p></o:p></p><p class=MsoNormal>What am I missing?<o:p></o:p></p><p class=MsoNormal>Thanks for any clue!<o:p></o:p></p><p class=MsoNormal>Florin<o:p></o:p></p></div></div></body></html>