Applications(s) failed to load libgtkhotkey.so.1

Bug #292225 reported by Axel von Bertoldi
6
Affects Status Importance Assigned to Milestone
GtkHotkey
Confirmed
High
Mikkel Kamstrup Erlandsen

Bug Description

I have been using libgtkhotkey 0.1.0 in an application for some time with no problems.

Today I a) upgraded to 0.2.0 and b) also tried out winwrangler.

 - ran autogen.sh, make and make install for libgtkhotkey with no problems.
 - ran autogen.sh, make and make install for winwrangler with no problems.
 - ran winwrangler -t and got the following message

src/winwrangler: error while loading shared libraries: libgtkhotkey.so.1: cannot open shared object file: No such file or directory

Checked and libgtkhotkey.so.1 is definitely there in /usr/local/lib.

 - recompiled my application and ran it and also got the above error.

Then, I did a make install on version 0.1.0 of libgtkhotkey and ran winwrangler again and it started, though neither of the keyboard shortcuts did anything.

Will try the deb of libgtkhotkey to see if it works.

Thanks,
axel.

Revision history for this message
Axel von Bertoldi (bertoldia) wrote :

... running hardy...

Revision history for this message
Axel von Bertoldi (bertoldia) wrote :

Runtime and dev debs in the PPA seem to work...

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Thanks for your bug report :-)

Is it maybe possible that you have different versions of gtkhotkey in both /usr/lib and /usr/local/lib? Maybe the linking got messed up at compile time somehow.

Could you paste the output of the following commands?

ls -l /usr/lib/libgtkho*

ls -l /usr/local/lib/libgtkho*

ldd /usr/bin/winwrangler | grep hotkey

Revision history for this message
Axel von Bertoldi (bertoldia) wrote : Re: [Bug 292225] Re: Applications(s) failed to load libgtkhotkey.so.1

I'm pretty sure that wasn't the case. I did not change prefix when i ran
configure, so I assume everything was configured to be installed in
/usr/local/. In any case, I have deleted everything from /usr/local and am
now using your PPM debs.

The outputs of the commands below are as expected (since I'm now using the
debs):

ls -l /usr/lib/libgtkho*
> -rw-r--r-- 1 root root 1200 2008-10-28 16:21 /usr/lib/libgtkhotkey.la
> lrwxrwxrwx 1 root root 21 2008-11-01 11:06 /usr/lib/libgtkhotkey.so ->
> libgtkhotkey.so.1.0.0
> lrwxrwxrwx 1 root root 21 2008-11-01 10:59 /usr/lib/libgtkhotkey.so.1 ->
> libgtkhotkey.so.1.0.0
> -rw-r--r-- 1 root root 39592 2008-10-28 16:21
> /usr/lib/libgtkhotkey.so.1.0.0
>

ls -l /usr/local/lib/libgtkho*
> ls: cannot access /usr/local/lib/libgtkho*: No such file or directory
>

ldd /usr/bin/winwrangler | grep hotkey
> libgtkhotkey.so.1 => /usr/lib/libgtkhotkey.so.1 (0xb7f22000)
>

If it helps, I can uninstall the debs and try installing again from source,
and then running the above commands.

Cheers,
a.

On Sat, Nov 1, 2008 at 12:31 PM, Mikkel Kamstrup Erlandsen <
<email address hidden>> wrote:

> Thanks for your bug report :-)
>
> Is it maybe possible that you have different versions of gtkhotkey in
> both /usr/lib and /usr/local/lib? Maybe the linking got messed up at
> compile time somehow.
>
> Could you paste the output of the following commands?
>
> ls -l /usr/lib/libgtkho*
>
> ls -l /usr/local/lib/libgtkho*
>
> ldd /usr/bin/winwrangler | grep hotkey
>
> --
> Applications(s) failed to load libgtkhotkey.so.1
> https://bugs.launchpad.net/bugs/292225
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Gtk Hotkey Library: New
>
> Bug description:
> I have been using libgtkhotkey 0.1.0 in an application for some time with
> no problems.
>
> Today I a) upgraded to 0.2.0 and b) also tried out winwrangler.
>
> - ran autogen.sh, make and make install for libgtkhotkey with no problems.
> - ran autogen.sh, make and make install for winwrangler with no problems.
> - ran winwrangler -t and got the following message
>
> src/winwrangler: error while loading shared libraries: libgtkhotkey.so.1:
> cannot open shared object file: No such file or directory
>
> Checked and libgtkhotkey.so.1 is definitely there in /usr/local/lib.
>
> - recompiled my application and ran it and also got the above error.
>
> Then, I did a make install on version 0.1.0 of libgtkhotkey and ran
> winwrangler again and it started, though neither of the keyboard shortcuts
> did anything.
>
> Will try the deb of libgtkhotkey to see if it works.
>
> Thanks,
> axel.
>

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

No need to track this any further right now I think. We can keep the report open for a while and see if anybody else encounters similarly looking problems and then take it from there...

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

I am closing this bug since no one has reported similar errors in a good while now.

Changed in gtkhotkey:
status: New → Invalid
Revision history for this message
James (purpleidea) wrote :

Hi, so recent this just became invalid and just now did i find this via google.
I read about your winwrangler app and have been trying to make it run, i have the same problem as above except i'm using gtkhotkey-0.2.1

i feel as somehow i didn't do something correct building the packages (prefix problem?) in any case now it works, maybe the other person did the same as i?

in any case, i like the 2/3 mode, which was why i did all of this.

hth,

james@home:~$ ls -l /usr/lib/libgtkho*
ls: cannot access /usr/lib/libgtkho*: No such file or directory
james@home:~$ ls -l /usr/local/lib/libgtkho*
-rw-r--r-- 1 root root 218552 2009-09-17 22:11 /usr/local/lib/libgtkhotkey.a
-rwxr-xr-x 1 root root 1417 2009-09-17 22:11 /usr/local/lib/libgtkhotkey.la
lrwxrwxrwx 1 root root 21 2009-09-17 22:11 /usr/local/lib/libgtkhotkey.so -> libgtkhotkey.so.1.0.0
lrwxrwxrwx 1 root root 21 2009-09-17 22:11 /usr/local/lib/libgtkhotkey.so.1 -> libgtkhotkey.so.1.0.0
-rwxr-xr-x 1 root root 154689 2009-09-17 22:11 /usr/local/lib/libgtkhotkey.so.1.0.0
james@home:~$ ldd /usr/bin/winwrangler | grep hotkey
ldd: /usr/bin/winwrangler: No such file or directory
james@home:~$ which winwrangler
/usr/local/bin/winwrangler
james@home:~$ ldd `which winwrangler` | grep hotkey
 libgtkhotkey.so.1 => not found
james@home:~$ cd /usr/lib
james@home:/usr/lib$ sudo ln /usr/local/lib/libgtkhotkey.la .
james@home:/usr/lib$ sudo ln /usr/local/lib/libgtkhotkey.so.1.0.0 libgtkhotkey.so
james@home:/usr/lib$ sudo ln /usr/local/lib/libgtkhotkey.so.1.0.0 libgtkhotkey.so.1
james@home:/usr/lib$ cd
james@home:~$ ldd `which winwrangler` | grep hotkey
 libgtkhotkey.so.1 => /usr/lib/libgtkhotkey.so.1 (0xb802b000)
james@home:~$

Changed in gtkhotkey:
status: Invalid → Confirmed
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

James, did you have any other version of gtkhotkey installed prior to this, eg. gtkhotkey-0.1.0?

- and have seen this when compiling other apps against gtkhotkey? I am beggining to think that it might as well be a winwrangler bug...

Revision history for this message
James (purpleidea) wrote :

i feel this is just an autoconf/makefile problem, or maybe i messed up the prefix somehow ?
as seen above, it seems to work, i just had to put different files in different places.
not my speciality, but after i linked them above it seems to work well.

Revision history for this message
Cesar Arguinzones (ceap80) wrote :

I'm having this problem right now.

I downloaded WinWrangler from http://launchpad.net/winwrangler/0.2/0.2.3/+download/winwrangler-0.2.3.tar.gz
The i did apt-cache search , then
sudo apt-get install libwnck-dev, then downloaded from http://launchpad.net/gtkhotkey/0.2/0.2.1/+download/gtkhotkey-0.2.1.tar.gz

For each download a made ./configure, make, sudo make install and yes i did first on gtkhotkey then on winwrangler
My Ubuntu: 8.10

Revision history for this message
atx (tr-chicken) wrote :

I'm having the same problem too.

I'm using same versions and install routine as above.

atx@legebatterie:~$ uname -ar
Linux legebatterie 2.6.27-14-generic #1 SMP Mon Aug 31 13:01:41 UTC 2009 i686 GNU/Linux

atx@legebatterie:~$ cat /etc/issue
Ubuntu 8.10 \n \l

atx@legebatterie:~$ winwrangler
winwrangler: error while loading shared libraries: libgtkhotkey.so.1: cannot open shared object file: No such file or directory

atx@legebatterie:~$ ls -l /usr/lib/libgtkho*
ls: Zugriff auf /usr/lib/libgtkho* nicht möglich: No such file or directory
atx@legebatterie:~$ ls -l /usr/local/lib/libgtkho*
-rw-r--r-- 1 root root 218564 2009-09-19 10:54 /usr/local/lib/libgtkhotkey.a
-rwxr-xr-x 1 root root 1417 2009-09-19 10:54 /usr/local/lib/libgtkhotkey.la
lrwxrwxrwx 1 root root 21 2009-09-19 10:54 /usr/local/lib/libgtkhotkey.so -> libgtkhotkey.so.1.0.0
lrwxrwxrwx 1 root root 21 2009-09-19 10:54 /usr/local/lib/libgtkhotkey.so.1 -> libgtkhotkey.so.1.0.0
-rwxr-xr-x 1 root root 154689 2009-09-19 10:54 /usr/local/lib/libgtkhotkey.so.1.0.0
atx@legebatterie:~$ ldd `which winwrangler` | grep hotkey
 libgtkhotkey.so.1 => not found

Revision history for this message
atx (tr-chicken) wrote :

hmmm... symlinked lib:

atx@legebatterie:~$ sudo ln -s /usr/local/lib/libgtkhotkey.so.1 /usr/lib/
atx@legebatterie:~$ ldd `which winwrangler` | grep hotkey
 libgtkhotkey.so.1 => /usr/lib/libgtkhotkey.so.1 (0xb7fcb000)

atx@legebatterie:~$ winwrangler -d
(winwrangler:20740): GtkHotkey-DEBUG: Listener Type: GtkHotkeyX11Listener
Preparing to bind <Ctrl><Super>1
Got accel 49, 33554436
Got keycode 10
Got modmask 68
(winwrangler:20740): WinWrangler-DEBUG: Bound hotkey <Ctrl><Super>1 for 'expand'
Preparing to bind <Ctrl><Super>2
Got accel 50, 33554436
Got keycode 11
Got modmask 68
(winwrangler:20740): WinWrangler-DEBUG: Bound hotkey <Ctrl><Super>2 for 'tile'
Preparing to bind <Ctrl><Super>3
Got accel 51, 33554436
Got keycode 12
Got modmask 68
(winwrangler:20740): WinWrangler-DEBUG: Bound hotkey <Ctrl><Super>3 for 'twothirds'

But nothing happens when I press: <Ctrl><Super> {1,2,3} :(

Got Event! 2, -1
Got KeyPress! keycode: 12, modifiers: 84
Calling handler for '<Ctrl><Super>3'...
WinWrangler-Message: Hotkey <Ctrl><Super>3 for 'twothirds' activated
(winwrangler:20740): WinWrangler-DEBUG: Calculated desktop bounds (0, 24), (1920, 1176)
Got Event! 28, -1
Got Event! 3, -1
Got KeyRelease!

Revision history for this message
atx (tr-chicken) wrote :

Sorry, used hardlinks like James wrote on 2009-09-18 and now its working fine!

its still a little bit tricky for users, which are too hasty and didnt read carefully ;)

all in all, nice to have!

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

The good news is that I can reproduce this myself now. It happens when configure is run without args for both winwrangler and gtkhotkey. Now we just need to figure out why.

If configure is run (for both apps) with --prefix=/usr everything is fine and dandy.

@atx comment #12, I don't think the problems you see are related to this. Note that WW wont touch your maximized or minimized windows. Try having three normal Nautilus windows around when you trigger WW. From your log it appears everything is "in ordnung".

Changed in gtkhotkey:
importance: Undecided → High
assignee: nobody → Mikkel Kamstrup Erlandsen (kamstrup)
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

If I run WW with everything installed under /usr/local with LD_LIBRARY_PATH set like below everything is working:

LD_LIBRARY_PATH=/usr/local/lib winwrangler

as will 'ldd' also tell you:

LD_LIBRARY_PATH=/usr/local/lib ldd /usr/local/bin/winwrangler
 ...
 libgtkhotkey.so.1 => /usr/local/lib/libgtkhotkey.so.1 (0xb7eb7000)
 ...

I must be frank and admit that I am not sure whether or not this is actually the expected behavior. I mean; are libraries in /usr/local/lib linked by default?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.