cairo-dock-icon-manager.c:75:15: error: storage size of ‘s_aMutexLookupIcon’ isn’t known

Asked by José Filipe

Hi !

Yesterday i updated my system, and cairo dock does not work again :-(

I tried bzr up and compile, but this shows this error
 29%] /home/jfilipe/testes/cairo-dock-core/src/gldit/cairo-dock-icon-manager.c:75:15: error: storage size of ‘s_aMutexLookupIcon’ isn’t known
make[2]: *** [src/gldit/CMakeFiles/gldi.dir/cairo-dock-icon-manager.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Building C object src/gldit/CMakeFiles/gldi.dir/cairo-dock-indicator-manager.c.o
make[1]: *** [src/gldit/CMakeFiles/gldi.dir/all] Error 2
make: *** [all] Error 2

More info
Linux localhost.localdomain 3.3.7-1.fc16.i686.PAE #1 SMP Tue May 22 14:07:22 UTC 2012 i686 i686 i386 GNU/Linux
KDE 4.8.3

It has a any way to fix it ?
Regards

Question information

Revision history for this message
Matthieu Baerts (matttbe) said :
#1

Hello and thank you for this message!

Is it better with this patch? http://pastebin.com/336wuZbd

Revision history for this message
José Filipe (jfilipe) said :
#2

$ cd «path to cairo core»/src/gldit
patch -p1 < /home/jfilipe/Download/matttbe.txt
(Stripping trailing CRs from patch.)
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|=== modified file 'src/gldit/cairo-dock-icon-manager.c'
|--- src/gldit/cairo-dock-icon-manager.c 2012-05-29 23:12:44 +0000
|+++ src/gldit/cairo-dock-icon-manager.c 2012-05-31 17:14:59 +0000
--------------------------
File to patch: cairo-dock-icon-manager.c
patching file cairo-dock-icon-manager.c
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n] y
Hunk #1 FAILED at 72.
patch unexpectedly ends in middle of line
Hunk #2 FAILED at 263.
2 out of 2 hunks FAILED -- saving rejects to file cairo-dock-icon-manager.c.rej

Other way

# bzr patch /home/jfilipe/Download/matttbe.txt
patch unexpectedly ends in middle of line
2 out of 2 hunks FAILED -- saving rejects to file src/gldit/cairo-dock-icon-manager.c.rej
bzr: ERROR: Patch application failed

How do apply patch if its fails in both methods ??
Regards

Revision history for this message
Matthieu Baerts (matttbe) said :
#3

> Perhaps you used the wrong -p or --strip option?
Yes, you used the wrong -p option ;)
In the patch, you can see that this file will be modified: src/gldit/cairo-dock-icon-manager.c
The -p option strip the smallest prefix containing X leading slashes from each file name found in the patch file. So if you use -p1, it will try to modify this file: gldit/cairo-dock-icon-manager.c (which doesn't exist in src/gldit)

If you want to apply this patch, you've to launch these commands:
    $ cd «path to cairo core»/
    $ patch -p0 < /home/jfilipe/Download/matttbe.txt
(or cd src/gldit && patch -p2 < (...))

But it's strange that bzr patch failed... Can you launch these commands from cairo-dock-core:
  $ bzr status ## <= no file should be modified. If yes, launch this command:
  $ bzr revert

Revision history for this message
José Filipe (jfilipe) said :
#4

i had take exacty as you say, but the error on make persists, since after a bzr up :-(

Revision history for this message
Matthieu Baerts (matttbe) said :
#5

Strange.

Can you post the output of these commands launched from a terminal?
   $ cd /home/jfilipe/testes/cairo-dock-core/
   $ bzr status
   $ bzr revert ## will revert all changes that you've made.

Revision history for this message
José Filipe (jfilipe) said :
#6

zr status
bzr: ERROR: Connection error: while sending POST /~cairo-dock-team/cairo-dock-core/cairo-dock/.bzr/smart: [Errno 110] Connection timed out

bzr revert
bzr: ERROR: Connection error: while sending POST /~cairo-dock-team/cairo-dock-core/cairo-dock/.bzr/smart: [Errno 110] Connection timed out

One question, how do i get a clean version of one specified file, to clear for example patches aplyed ?

Revision history for this message
Matthieu Baerts (matttbe) said :
#7

About the error, can you retry in a few minutes/hours?

> One question, how do i get a clean version of one specified file, to clear for example patches aplyed ?
Simply by using 'bzr revert' with or without a file:
    $ bzr revert [/path/to/a/file]

Revision history for this message
José Filipe (jfilipe) said :
#8

Thanks, i had compiled core with sucess ! loool

But plug-ins no :-(

home/jfilipe/testes/cairo-dock-plug-ins/Dbus/src/applet-struct.h:108:39: fatal error: libdbusmenu-gtk3/menuitem.h: No such file or directory
compilation terminated.
In file included from /home/jfilipe/testes/cairo-dock-plug-ins/Dbus/src/applet-config.c:23:0:
/home/jfilipe/testes/cairo-dock-plug-ins/Dbus/src/applet-struct.h:108:39: fatal error: libdbusmenu-gtk3/menuitem.h: No such file or directory
compilation terminated.
make[2]: *** [Dbus/src/CMakeFiles/cd-Dbus.dir/applet-init.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target python_pyc
make[2]: *** [Dbus/src/CMakeFiles/cd-Dbus.dir/applet-config.c.o] Error 1
make[1]: *** [Dbus/src/CMakeFiles/cd-Dbus.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 17%] Built target python_pyc
make: *** [all] Error 2

Revision history for this message
Matthieu Baerts (matttbe) said :
#9

With the latest version too?
What's the output of:
    $ bzr update
    $ bzr status
    $ bzr revert
    $ bzr update

Revision history for this message
José Filipe (jfilipe) said :
#10

 bzr update
 M quick-browser/src/applet-menu.c
All changes applied successfully.
Updated to revision 2413 of branch http://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-plug-ins/plug-ins
[root@localhost cairo-dock-plug-ins]# bzr status
modified:
  shortcuts/src/applet-bookmarks.c
  shortcuts/src/applet-drives.c
unknown:
  patch.txt
  shortcuts/src/applet-bookmarks.c.orig
  shortcuts/src/applet-bookmarks.c.rej
  shortcuts/src/applet-drives.c.orig
  shortcuts/src/applet-drives.c.rej
[root@localhost cairo-dock-plug-ins]# bzr revert
 M shortcuts/src/applet-bookmarks.c
 M shortcuts/src/applet-drives.c
[root@localhost cairo-dock-plug-ins]# bzr update
Tree is up to date at revision 2413 of branch http://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-plug-ins/plug-ins

Revision history for this message
Matthieu Baerts (matttbe) said :
#11

It's certainly not a good idea to launch bzr commands as root but now are your able to compile it?
  $ cd /home/jfilipe/testes/cairo-dock-plug-ins/
  $ rm -rf build/
  $ mkdir build
  $ cd build
  $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  $ make
  # make install

Revision history for this message
José Filipe (jfilipe) said :
#12

i had take what you describe, but the bug persists :-(
Thanks

Revision history for this message
Matthieu Baerts (matttbe) said :
#13

Hello,

I think I found what's the problem :)
Can you try with the latest rev of Cairo-Dock Plug-Ins on BZR? (rev 2419)

  $ cd /home/jfilipe/testes/cairo-dock-plug-ins/
  $ rm -rf build/ && mkdir build && cd build
  $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  $ make
  # make install

Revision history for this message
José Filipe (jfilipe) said :
#14

Thanks, it had resulted ;-)

A make warnings
/usr/include/glib-2.0/gobject/gtype.h:698:6: note: expected ‘gpointer’ but argument is of type ‘const char *’
/home/jfilipe/testes/cairo-dock-plug-ins/build/Dbus/interfaces/vala/src/CDApplet.c: In function ‘cairo_dock_applet_isub_applet_get_type’:
/home/jfilipe/testes/cairo-dock-plug-ins/build/Dbus/interfaces/vala/src/CDApplet.c:2450:3: warning: passing argument 3 of ‘g_type_set_qdata’ discards ‘const’ qualifier from pointer target type [enabled by default]
/usr/include/glib-2.0/gobject/gtype.h:698:6: note: expected ‘gpointer’ but argument is of type ‘const char *’

To core i had to revert a file
bzr revert src/gldit/cairo-dock-icon-manager.c

Bye

Can you help with this problem?

Provide an answer of your own, or ask José Filipe for more information if necessary.

To post a message you must log in.