Ticket #2611 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Autoaway not workin

Reported by: petteri@… Owned by: asterix
Priority: normal Milestone: 0.11
Component: None Version:
Severity: minor Keywords:
Cc: OS:

Description

I'm using gajim svn on Debian Unstable with Gnome and autoaway is not working.

Attachments

Change History

Changed 2 years ago by asterix

could you go in /usr/lib/gajim, run python, and try import idle

is there any problem ?

Changed 2 years ago by Petteri

Here is some info from the python promt:

>>> import idle
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: ./idle.so: undefined symbol: XScreenSaverAllocInfo
>>>

Changed 2 years ago by junglecow

confirmed for 0.10.1-5 in debian testing

$ ldd /usr/lib/gajim/idle.so 
        linux-gate.so.1 =>  (0xffffe000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7ceb000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7c68000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7c4e000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7c38000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7c13000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7c0b000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7bdb000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7bcc000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7bc4000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7bc1000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb7bb9000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7bb5000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7bac000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7ba6000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7b6d000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7b0b000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7a45000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7a42000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb7a3e000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7a03000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb797c000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb784a000)
        /lib/ld-linux.so.2 (0x80000000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb7825000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb77b9000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb77a4000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7784000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7781000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb775d000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7758000)
$

Changed 2 years ago by asterix

  • milestone set to 0.11

do you have libxss1 installed ? does it work if you have it installed ?

Changed 2 years ago by Petteri

libxss1 is already installed.

Changed 2 years ago by asterix

could you try latest daily package ?

http://gajim.org/downloads.php#debian

Changed 2 years ago by Petteri

I already have the newest daily package in use.

Changed 2 years ago by junglecow

$ ( for F in /usr/lib/*.so; do strings "$F" | awk -v f="$F" '/XScreenSaverAllocInfo/{print f" "$0}'; done )
/usr/lib/libXss.so XScreenSaverAllocInfo
$

The problem is not that libXss is not installed, the problem is that idle.so is not linked against this library in the first place (as ldd clearly shows).

(Aside, I wonder if idle.so really needs to be linked against all those other libraries.)

Changed 2 years ago by junglecow

Okay, I just downloaded and unpacked the latest daily package. I don't have time to figure out how to install this now, but I ran ldd on it and this is the result:

$ ldd gajim/usr/lib/gajim/idle.so 
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7de8000)
        /lib/ld-linux.so.2 (0x80000000)
$

Again, not linked against Xss.

Changed 2 years ago by asterix

in fact make doesn't build .so file, only .la

and make install install a bad .so file and a .la file

Changed 2 years ago by junglecow

make does build the .so file, it's in src/common/.libs/, and yes, it is bad.

It seems the XSCREENSAVER_LIBS macro isn't defined anywhere. However, saying XSCREENSAVER_LIBS=Xss in src/common/Makefile.am causes make to complain that it doesn't know how to build Xss. Clearly I have no idea what I'm doing here; someone familiar with autotools should have a look at it.

I ended up building it simply with

  gcc -shared -I/usr/include/python2.4 idle.c -lXss -o idle.so

and it's now working for me.

Changed 2 years ago by junglecow

Workaround for this bug, verified for Debian package of 0.10.1 as well as SVN:

All done, idle should now work as expected.

Changed 2 years ago by asterix

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

(In [7396]) [dkirov] idle module is not correctly build (linked to xss lib) and loaded from .libs folder for svn users. fixes #2611

Add/Change #2611 (Autoaway not workin)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.