x11-wm/compiz-0.7.2 XGetXCBConnection Error [Solved]

Compiz, KDE, Gnome, Fluxbox, etc...

Moderator: Moderators

x11-wm/compiz-0.7.2 XGetXCBConnection Error [Solved]

Postby DontPanic » Thu Mar 13, 2008 22:54

I ran into an error building x11-wm/compiz-0.7.2 on my system.
Code: Select all
display.o: In function `addDisplay':
display.c:(.text+0x2308): undefined reference to `XGetXCBConnection'
collect2: ld returned 1 exit status

You probably haven't run into this if you are using Wolfden's upgrade method. This error crops up using the x11-wm/compiz-0.7.2 from the Sabayon overlay.

But in case there is anybody else out there who updates compiz from the Sabayon overlay, and has similar problems as me, here's what I found.

The problem appears to be related with one of the libraries being linked, and, in my case, my binary nVidia drivers. Since I have an nVidia video card, I had to switch opengl away from the nVidia card during the build step. I was then able to switch back to the nVidia drivers after the emerge was complete.

Code: Select all
eselect opengl set xorg-x11
emerge -av x11-wm/compiz
....[emerging building]...
eselect opengl set nvidia

We had a discussion going on about this issue on the Gentoo forums (sabayon overlay : can't compil x11-wm/compiz-0.7.2) which presented another way to solve this problem also.
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU [email protected] 2.66GHz
nVidia GeForce 7600 GS
Old Dear Hen
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA

Re: x11-wm/compiz-0.7.2 XGetXCBConnection Error [Solved]

Postby rand.a » Sun Mar 16, 2008 17:23

Ah, so thats why.... Thanks for the info
Growing Hen
Posts: 163
Joined: Fri Mar 23, 2007 20:08
Location: Shelton, WA

Re: x11-wm/compiz-0.7.2 XGetXCBConnection Error [Solved]

Postby sprig » Mon Mar 24, 2008 14:53

and if you have an intel card?...

nevermind - I now see another fix in the upper part of the gentoo thread...
Young Hen
Posts: 24
Joined: Mon Jun 04, 2007 19:05

Re: x11-wm/compiz-0.7.2 XGetXCBConnection Error [Solved]

Postby Eden » Fri Mar 28, 2008 1:49

this still isnt working for me.

I set opengl to xorg-x11, recompiled libX11 with xcb support, but i get the error as above. :?


libX11, cairo & mesa all need to be compiled with xcb support, then switch opengl to xorg-x11 and emerge compiz

Growing Hen
Posts: 176
Joined: Fri May 18, 2007 16:44
Location: Scotland, UK

Re: x11-wm/compiz-0.7.2 XGetXCBConnection Error [Solved]

Postby sprig » Fri Mar 28, 2008 15:16

I suggest simply adding the xcb useflag, then emerge -avND world, then revdep-rebuild -- -av and then emerge -avuD compiz.
Young Hen
Posts: 24
Joined: Mon Jun 04, 2007 19:05

Return to 3D Desktops and Window Managers

Who is online

Users browsing this forum: No registered users and 2 guests