Ticket #179 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

problems compiling guake 0.4.0

Reported by: paxa Owned by: paxa
Priority: major Milestone: 0.5.0
Component: guake Version: 0.4
Keywords: error compile guake0.4 Cc:

Description

i've downloaded the source from your site and followed the instructions given to compile and install guake but i'm getting errors in make and make install the output of make or make install is the following

globalhotkeys.c: In function \u2018GlobalHotkey_unbind_all\u2019:
globalhotkeys.c:115: error: \u2018Py_ssize_t\u2019 undeclared (first use in this function)
globalhotkeys.c:115: error: (Each undeclared identifier is reported only once
globalhotkeys.c:115: error: for each function it appears in.)
globalhotkeys.c:115: error: expected \u2018;\u2019 before \u2018pos\u2019
globalhotkeys.c:118: error: \u2018pos\u2019 undeclared (first use in this function)
make[3]: *** [globalhotkeys.lo] Error 1
make[3]: Leaving directory `/home/joao/Desktop/guake-0.4.0/src/globalhotkeys'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/joao/Desktop/guake-0.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/joao/Desktop/guake-0.4.0'
make: *** [all] Error 2

the output of make install

globalhotkeys.c: In function \u2018GlobalHotkey_unbind_all\u2019:
globalhotkeys.c:115: error: \u2018Py_ssize_t\u2019 undeclared (first use in this function)
globalhotkeys.c:115: error: (Each undeclared identifier is reported only once
globalhotkeys.c:115: error: for each function it appears in.)
globalhotkeys.c:115: error: expected \u2018;\u2019 before \u2018pos\u2019
globalhotkeys.c:118: error: \u2018pos\u2019 undeclared (first use in this function)
make[2]: *** [globalhotkeys.lo] Error 1
make[2]: Leaving directory `/home/joao/Desktop/guake-0.4.0/src/globalhotkeys'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/joao/Desktop/guake-0.4.0/src'
make: *** [install-recursive] Error 1

help would be appreciated thanks in advance

Attachments

py2.4.patch Download (350 bytes) - added by lincoln 4 years ago.

Change History

  Changed 4 years ago by paxa

  • owner changed from somebody to paxa

  Changed 4 years ago by lincoln

Hello there,

At the first look I think you have just found a bug in guake =P

I think you're trying to compile guake with python < 2.5, and Py_ssize_t was introduced in that version. A quick fix for you is to use python 2.5.

I'll attach a patch, could you apply it and test if it works for me? To do it, just copy the patch to your uncompressed guake dir and execute the following command:

 $ patch -Np1 < py2.4.patch

Thank you!

Changed 4 years ago by lincoln

  Changed 4 years ago by paxa

it compiled, the errors shown have not appeared. now as i try to run guake this is what happens

[root@Calibretto guake-0.4.0]# guake
libnotify-Message: Unable to get session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
  File "/usr/local/lib/guake/guake.py", line 1073, in ?
    main()
  File "/usr/local/lib/guake/guake.py", line 1043, in main
    bus = dbus.SessionBus()
  File "/usr/lib/python2.4/site-packages/dbus/_dbus.py", line 266, in __new__
    return Bus.__new__(cls, Bus.TYPE_SESSION, use_default_mainloop, private)
  File "/usr/lib/python2.4/site-packages/dbus/_dbus.py", line 99, in __new__
    bus._connection = dbus_bindings.bus_get(bus_type, private)
  File "dbus_bindings.pyx", line 1692, in dbus_bindings.bus_get
dbus_bindings.DBusException: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

  Changed 4 years ago by lincoln

I think its not a guake error. Did you try to run guake as a normal user (not root)?

follow-up: ↓ 6   Changed 4 years ago by lincoln

  • status changed from new to closed
  • resolution set to fixed

I'm going to close this bug since the first report problem seems to be fixed (I've just pushed the attached patch). If you think it is still a problem, please reopen this bug.

PS.: If the you're sure that the dbus stuff is a guake problem, please open another bug =D

Thank you!

in reply to: ↑ 5   Changed 4 years ago by pingou

PS.: If the you're sure that the dbus stuff is a guake problem, please open another bug =D

Re-open #186 please :-) Thanks !

Note: See TracTickets for help on using tickets.