PDA

View Full Version : compiz-fusion-plugins-main 0.6.2 failed to compile


ivan_q
January 17th, 2008, 06:37 PM
I have very strange problem, nowhere in the google i couldn't find the answer.

I'm trying to emerge compiz-fusion, and almost everything is fine. It crashes at compiling compiz-fusion-plugins-main, at compiling vpswitch (viewport switch) ... here is log :
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/libxml2 -I/usr/include/startup-notification-1.0 -I/usr/include/compiz -DDATADIR=\"/usr/share/compiz\" -DLIBDIR=\"/usr/lib\" -DLOCALEDIR=\"/usr/share/locale\" -DIMAGEDIR=\"/usr/share/compiz\" -O2 -march=i686 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT vpswitch.lo -MD -MP -MF .deps/vpswitch.Tpo -c vpswitch.c -fPIC -DPIC -o .libs/vpswitch.o
vpswitch.c:39: error: 'XK_0' undeclared here (not in a function)
vpswitch.c:39: error: 'XK_1' undeclared here (not in a function)
vpswitch.c:39: error: 'XK_2' undeclared here (not in a function)
vpswitch.c:39: error: 'XK_3' undeclared here (not in a function)
vpswitch.c:39: error: 'XK_4' undeclared here (not in a function)
vpswitch.c:39: error: 'XK_5' undeclared here (not in a function)
vpswitch.c:39: error: 'XK_6' undeclared here (not in a function)
vpswitch.c:39: error: 'XK_7' undeclared here (not in a function)
vpswitch.c:39: error: 'XK_8' undeclared here (not in a function)
vpswitch.c:39: error: 'XK_9' undeclared here (not in a function)
vpswitch.c:41: error: 'XK_KP_0' undeclared here (not in a function)
vpswitch.c:41: error: 'XK_KP_1' undeclared here (not in a function)
vpswitch.c:41: error: 'XK_KP_2' undeclared here (not in a function)
vpswitch.c:41: error: 'XK_KP_3' undeclared here (not in a function)
vpswitch.c:41: error: 'XK_KP_4' undeclared here (not in a function)
vpswitch.c:42: error: 'XK_KP_5' undeclared here (not in a function)
vpswitch.c:42: error: 'XK_KP_6' undeclared here (not in a function)
vpswitch.c:42: error: 'XK_KP_7' undeclared here (not in a function)
vpswitch.c:42: error: 'XK_KP_8' undeclared here (not in a function)
vpswitch.c:42: error: 'XK_KP_9' undeclared here (not in a function)
vpswitch.c:44: error: 'XK_KP_Insert' undeclared here (not in a function)
vpswitch.c:44: error: 'XK_KP_End' undeclared here (not in a function)
vpswitch.c:44: error: 'XK_KP_Down' undeclared here (not in a function)
vpswitch.c:44: error: 'XK_KP_Next' undeclared here (not in a function)
vpswitch.c:44: error: 'XK_KP_Left' undeclared here (not in a function)
vpswitch.c:45: error: 'XK_KP_Begin' undeclared here (not in a function)
vpswitch.c:45: error: 'XK_KP_Right' undeclared here (not in a function)
vpswitch.c:45: error: 'XK_KP_Home' undeclared here (not in a function)
vpswitch.c:45: error: 'XK_KP_Up' undeclared here (not in a function)
vpswitch.c:45: error: 'XK_KP_Prior' undeclared here (not in a function)
make[3]: *** [vpswitch.lo] Błąd 1
make[3]: Leaving directory `/var/tmp/portage/x11-plugins/compiz-fusion-plugins-main-0.6.0/work/compiz-fusion-plugins-main-0.6.0/src/vpswitch'
make[2]: *** [all-recursive] Błąd 1
make[2]: Leaving directory `/var/tmp/portage/x11-plugins/compiz-fusion-plugins-main-0.6.0/work/compiz-fusion-plugins-main-0.6.0/src'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/var/tmp/portage/x11-plugins/compiz-fusion-plugins-main-0.6.0/work/compiz-fusion-plugins-main-0.6.0'
make: *** [all] Błąd 2
*
* ERROR: x11-plugins/compiz-fusion-plugins-main-0.6.0 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* compiz-fusion-plugins-main-0.6.0.ebuild, line 24: Called die
* The specific snippet of code:
* emake || die "make failed"
* The die message:
* make failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-plugins/compiz-fusion-plugins-main-0.6.0/temp/build.log'.
*

I had to skip few ebuilds (i didn't installed those) :

x11-plugins/compiz-fusion-plugins-main
x11-plugins/compiz-fusion-plugins-extra
x11-plugins/compiz-fusion-plugins-unsupported
x11-libs/compizconfig-backend-gconf
x11-libs/compizconfig-backend-kconfig
x11-wm/compiz-fusion

And i can run now compiz-start, and everything works (yes - it works fine), but it would be very nice to have few more plugins - i have only few basics :(

Can somebody help me ?


btw : for those that dont know - I'm working on getoo, and "x11-wm/compiz-fusion" is just a dummy package, installed especially to satisfy all dependences, so it's not necessary.

taipan
January 17th, 2008, 08:37 PM
This is an old thread that deals with X-Effects overlays, but the symptoms sound a lot like your's...

http://forums.gentoo.org/viewtopic-t-569139-start-0.html

It sounds like you might need to update Xorg-X11 to get the headers & libs that Compiz-Fusion needs to build against (although the ebuilds ought to check that).

What are you running at the moment?

By the way, i think the thread-title should be "0.6.0" - "0.6.2" only applies to Compiz itself. ;)

ralfeus
February 12th, 2008, 09:15 AM
I added
#include <X11/keysym.h>
to vpswitch/vpswitch.c
Then file was compiled. But still I didn't figure out how to create and apply a patch to the package :-)

ralfeus
February 12th, 2008, 10:16 AM
Well, if it matters my steps without applying patch were following:
ebuild /usr/portage/x11-plugins/compiz-fusion-plugins-main/compiz-fusion-plugins-main-0.6.0.ebuild unpack
vim /var/tmp/portage/x11-plugins/compiz-fusion-plugins-main-0.6.0/work/compiz-fusion-plugins-main-0.6.0/src/vpswitch/vpswitch.c

add #include <X11/keysym.h>

ebuild /usr/portage/x11-plugins/compiz-fusion-plugins-main/compiz-fusion-plugins-main-0.6.0.ebuild compile
ebuild /usr/portage/x11-plugins/compiz-fusion-plugins-main/compiz-fusion-plugins-main-0.6.0.ebuild install
ebuild /usr/portage/x11-plugins/compiz-fusion-plugins-main/compiz-fusion-plugins-main-0.6.0.ebuild qmerge
ebuild /usr/portage/x11-plugins/compiz-fusion-plugins-main/compiz-fusion-plugins-main-0.6.0.ebuild clean

These steps installed x11-plugins/compiz-fusion-plugins-main. Now I'm emerging compiz-fusion-plugins-extra, so I'm don't know yet if I'll have any other problems. But compiz-fusion-plugins-main was emerged successfully. It possible to expect same problem with compiz-fusion-plugins-extra accorging to taipan's post. Then I suppose to do same thing.

Yes, compiz-fusion-plugins-extra had same problem. I did same thing. With same result :-)