Linux - LogindUPowerSyscall.cpp:282: error

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bbigk Offline
Junior Member
Posts: 8
Joined: Aug 2013
Reputation: 0
Post: #1
Hello.

I just tried to install new version of xbmc for CentOS 64bit version. I download it from git repository and after doing 'make' I got this error:

LogindUPowerSyscall.cpp: In member function 'void CLogindUPowerSyscall::InhibitDelayLock()':
LogindUPowerSyscall.cpp:282: error: 'DBUS_TYPE_UNIX_FD' was not declared in this scope
make[1]: *** [LogindUPowerSyscall.o] Error 1
make: *** [xbmc/powermanagement/linux/powermanagement_linux.a] Error 2

How can I resolve this?

Thank you.
find quote
wsnipex Offline
Team-Kodi Member
Posts: 3,750
Joined: Jun 2011
Reputation: 92
Post: #2
you probably need some development headers, did you read docs/README.linux?
find quote
bbigk Offline
Junior Member
Posts: 8
Joined: Aug 2013
Reputation: 0
Post: #3
Yes I read the docs.linux, but there are many dependencies that are not available for CentOS. And I don't know which one is missing.
find quote
fritsch Offline
Team-XBMC Developer
Posts: 6,329
Joined: Aug 2011
Reputation: 144
Location: Karlsruhe
Post: #4
Hint: those that are not available
find quote
Smart79 Offline
Member
Posts: 51
Joined: May 2009
Reputation: 0
Location: MUC
Post: #5
I have the same problem with Ubuntu 10.04 64 bit:

Code:
LogindUPowerSyscall.cpp: In member function ‘void CLogindUPowerSyscall::InhibitDelayLock()’:
LogindUPowerSyscall.cpp:282: error: ‘DBUS_TYPE_UNIX_FD’ was not declared in this scope
make[1]: *** [LogindUPowerSyscall.o] Error 1
make: *** [xbmc/powermanagement/linux/powermanagement_linux.a] Error 2
make: *** Waiting for unfinished jobs..

It stopped working about 2 weeks ago. No luck since.... :-(
find quote
fritsch Offline
Team-XBMC Developer
Posts: 6,329
Joined: Aug 2011
Reputation: 144
Location: Karlsruhe
Post: #6
@Smart79:

you just miss: libdbus-1-dev
find quote
bbigk Offline
Junior Member
Posts: 8
Joined: Aug 2013
Reputation: 0
Post: #7
@fritsch

Is there a way around this, because I can't find working libdbus-1-dev for CentOS?
find quote
fritsch Offline
Team-XBMC Developer
Posts: 6,329
Joined: Aug 2011
Reputation: 144
Location: Karlsruhe
Post: #8
it is dbus-devel on your OS - that you should know better than me.
find quote
Smart79 Offline
Member
Posts: 51
Joined: May 2009
Reputation: 0
Location: MUC
Post: #9
@fritsch: thank you for the fast reply... but sadly :-(

Code:
aptitude install libdbus-1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
find quote
bbigk Offline
Junior Member
Posts: 8
Joined: Aug 2013
Reputation: 0
Post: #10
@fritsch

I have dbus-devel installed:

Package 1:dbus-devel-1.2.24-7.el6_3.x86_64 already installed and latest version. All installed dbus packages:

dbus-glib-0.86-6.el6.x86_64
dbus-1.2.24-7.el6_3.x86_64
dbus-libs-1.2.24-7.el6_3.x86_64
dbus-devel-1.2.24-7.el6_3.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
dbus-x11-1.2.24-7.el6_3.x86_64
find quote
fritsch Offline
Team-XBMC Developer
Posts: 6,329
Joined: Aug 2011
Reputation: 144
Location: Karlsruhe
Post: #11
pastebin a full compilation log. I assume the error is elsewhere. (http://www.pastebin.com)
(This post was last modified: 2013-08-20 12:52 by fritsch.)
find quote
Smart79 Offline
Member
Posts: 51
Joined: May 2009
Reputation: 0
Location: MUC
Post: #12
@Fritsch: here you go: http://pastebin.com/S32WQbF6
And btw: thank you!!!
find quote
fritsch Offline
Team-XBMC Developer
Posts: 6,329
Joined: Aug 2011
Reputation: 144
Location: Karlsruhe
Post: #13
You also have this ancient version 1.2.4 of dbus dev package installed?
find quote
fritsch Offline
Team-XBMC Developer
Posts: 6,329
Joined: Aug 2011
Reputation: 144
Location: Karlsruhe
Post: #14
Try that patch:

Code:
diff --git a/xbmc/powermanagement/linux/LogindUPowerSyscall.cpp b/xbmc/powermanagement/linux/LogindUPowerSyscall.cpp
index d2c2a0d..7269392 100644
--- a/xbmc/powermanagement/linux/LogindUPowerSyscall.cpp
+++ b/xbmc/powermanagement/linux/LogindUPowerSyscall.cpp
@@ -279,12 +279,18 @@ void CLogindUPowerSyscall::InhibitDelayLock()
     return;
   }

+  #if defined(DBUS_TYPE_UNIX_FD)
   if (!dbus_message_get_args(reply, NULL, DBUS_TYPE_UNIX_FD, &m_delayLockFd, DBUS_TYPE_INVALID))
   {
     CLog::Log(LOGWARNING, "LogindUPowerSyscall - failed to get inhibit file descriptor");
     m_delayLockFd = -1;
     return;
   }
+  #else
+    CLog::Log(LOGWARNING, "LogindUPowerSyscall - failed to get inhibit file descriptor");
+    m_delayLockFd = -1;
+    return;
+  #endif

     CLog::Log(LOGDEBUG, "LogindUPowerSyscall - inhibit lock taken, fd %i", m_delayLockFd);
}
(This post was last modified: 2013-08-23 17:33 by fritsch.)
find quote
bbigk Offline
Junior Member
Posts: 8
Joined: Aug 2013
Reputation: 0
Post: #15
I applied the patch but got bunch of this messages:

/xbmc/xbmc/system.h:165:18: warning: extra tokens at end of #ifdef directive
find quote
Post Reply