Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sabayon overlay : can't compil x11-wm/compiz-0.7.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Mon Mar 10, 2008 3:22 pm    Post subject: sabayon overlay : can't compil x11-wm/compiz-0.7.2 Reply with quote

I try to update my system and it fails :
Code:

mv -f .deps/fragment.Tpo .deps/fragment.Po
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -I/usr/include/startup-notification-1.0 -I../include -I../include -DPLUGINDIR=\"/usr/lib64/compiz\" -DIMAGEDIR=\"/usr/share/compiz\" -DMETADATADIR=\"/usr/share/compiz\"    -march=native -mtune=native -O2 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -D_FORTIFY_SOURCE=2 -MT metadata.o -MD -MP -MF .deps/metadata.Tpo -c -o metadata.o metadata.c
mv -f .deps/cursor.Tpo .deps/cursor.Po
mv -f .deps/match.Tpo .deps/match.Po
mv -f .deps/metadata.Tpo .deps/metadata.Po
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=native -mtune=native -O2 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -D_FORTIFY_SOURCE=2 -export-dynamic  -o compiz main.o privates.o object.o core.o texture.o display.o screen.o window.o event.o paint.o option.o plugin.o session.o fragment.o matrix.o cursor.o match.o metadata.o -lxcb -lXcomposite -lXdamage -lXfixes -lXrandr -lXinerama -lSM -lICE -lxslt -lz -lm -lxml2 -lstartup-notification-1   -lGL -lm
mkdir .libs
x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -D_FORTIFY_SOURCE=2 -o compiz main.o privates.o object.o core.o texture.o display.o screen.o window.o event.o paint.o option.o plugin.o session.o fragment.o matrix.o cursor.o match.o metadata.o -Wl,--export-dynamic  /usr/lib64/libxcb.so /usr/lib64/libXcomposite.so /usr/lib64/libXdamage.so /usr/lib64/libXfixes.so /usr/lib64/libXrandr.so /usr/lib64/libXrender.so /usr/lib64/libXinerama.so /usr/lib64/libxslt.so /usr/lib64/libxml2.so -lz /usr/lib64/libstartup-notification-1.so -L/usr/lib64 /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so /usr/lib64/libGL.so /usr/lib64/libX11.so /usr/lib64/libXext.so -ldl -lm
display.o: In function `addDisplay':
display.c:(.text+0x2308): undefined reference to `XGetXCBConnection'
collect2: ld returned 1 exit status
make[2]: *** [compiz] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-wm/compiz-0.7.2/work/compiz-0.7.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-wm/compiz-0.7.2/work/compiz-0.7.2'
make: *** [all] Error 2


Any idea what I shall do ?
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Mon Mar 10, 2008 3:27 pm    Post subject: Reply with quote

Oops, stupid me : gcc-4.3 was in use... I'll try again with gcc-4.2.3 and in case that's also fails, I'll report... Sorry.
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Mon Mar 10, 2008 4:53 pm    Post subject: Reply with quote

I got the same exact error using gcc-4.2.3...
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon Mar 10, 2008 7:02 pm    Post subject: Reply with quote

Quote:
display.o: In function `addDisplay':
display.c:(.text+0x2308): undefined reference to `XGetXCBConnection'
collect2: ld returned 1 exit status
make[2]: *** [compiz] Error 1


read your error messages properly & try to recompile the whole compiz stuff without xcb :idea: :wink:

Code:
USE="-xcb" emerge compiz-fusion


or whatever
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Mon Mar 10, 2008 7:58 pm    Post subject: Reply with quote

Code:

emerge -va1 x11-wm/compiz x11-plugins/compiz-fusion-plugins-main x11-wm/emerald x11-libs/libcompizconfig dev-python/compizconfig-python x11-plugins/compiz-fusion-plugins-extra x11-apps/ccsm x11-wm/compiz-fusion

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] x11-wm/compiz-0.7.2 [0.6.2-r1] USE="dbus svg -debug% -gnome -kde -kde4% (-fuse%) (-gtk%*)" 0 kB [1]
[ebuild     U ] x11-plugins/compiz-fusion-plugins-main-0.7.2 [0.6.0] USE="jpeg%*" 0 kB [1]
[ebuild     U ] x11-libs/libcompizconfig-0.7.2 [0.6.0] 0 kB [1]
[ebuild     U ] x11-wm/emerald-0.7.2 [0.5.2] USE="-debug%" 0 kB [1]
[ebuild     U ] dev-python/compizconfig-python-0.7.2 [0.6.0.1] 0 kB [1]
[ebuild     U ] x11-plugins/compiz-fusion-plugins-extra-0.7.2 [0.6.0] 0 kB [1]
[ebuild     U ] x11-apps/ccsm-0.7.2 [0.6.0] 0 kB [1]
[ebuild     U ] x11-wm/compiz-fusion-0.7.2 [0.6.0] USE="-gnome -kde (-unsupported%)" 0 kB [1]

Total: 8 packages (8 upgrades), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/sabayon


I am a little lost here with your -xcb (which by the way isn't set here, I try to add it in order to see if that help the compilation after a emerge world -uDvaN &&revdep-rebuild, no that don't fix it...).

Just to be sure, `USE="-xcb" emerge compiz-fusion` fails exactly the same way.
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 322
Location: SouthEast U.S.A.

PostPosted: Wed Mar 12, 2008 12:04 am    Post subject: Reply with quote

I'm having trouble with this also.

I have a Gentoo build that I've hopped up with Sabayon overlay packages, and I also have several Sabayon installations.

x11-wm/compiz-0.7.2 from the Sabayon overlay builds OK on my Sabayon 3.5 beta install (with gcc-4.2.3), but I'm running into the same troubles as in the OP in my Gentoo-based build and in my older Sabayon 3.4-f mini-CD builds.

So far, I haven't been able to discern the difference between the Sabayon 3.5 beta where is builds OK and the other installations where I have trouble.

If I find anything, I'll post it over here.
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Wed Mar 12, 2008 12:58 am    Post subject: Reply with quote

compiz-fusion requires xcb.

Do a revdep-rebuild and see if it goes away.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
hirakendu
Guru
Guru


Joined: 24 Jan 2007
Posts: 386
Location: san diego

PostPosted: Wed Mar 12, 2008 7:54 am    Post subject: Reply with quote

I installed compiz-fusion by just renaming the 0.6 ebuild in portage. I too had got a missing xcb library message, but at the very beginning while configuring itself. I re-emerged libX11 with USE=xcb (and also mesa and cairo). After that, all was fine :) :
Code:
USE=xcb emerge libX11 cairo mesa


PS : The next few glitch(es) you'll run into - java doesn't behave nicely with xcb. (All java applets will show up blank?). So also do :
Code:
CFLAGS="${CFLAGS} -DNDEBUG" emerge -a1v xcb libxcb

(This was taken from gentoo wiki. I in fact edited my ebuilds itself :p.) Also, I got a glitch with matlab (perhaps again java related), so I had to set the env variable AWT_TOOLKIT=MToolkit :
Code:
echo export AWT_TOOLKIT=MToolkit >> /etc/bash/bashrc

_________________
Helium Sources || Gentoo Minimal Livecd
Back to top
View user's profile Send private message
pawstar
n00b
n00b


Joined: 08 Dec 2007
Posts: 9

PostPosted: Wed Mar 12, 2008 8:05 am    Post subject: Reply with quote

I did have the xcb flag set from the beginning, but I got the same error. I solved this problem with a hack: since I am running on amd64 I did

mv /usr/lib64/libX11.so /usr/lib64/libX11.so.bak
ln -s /usr/lib64/libX11-xcb.so /usr/lib64/libX11.so

and it emerged compiz without that error.

Cheers!
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 322
Location: SouthEast U.S.A.

PostPosted: Wed Mar 12, 2008 3:53 pm    Post subject: Reply with quote

I stumbled on a different way to get x11-wm/compiz-0.7.2 to compile without the "undefined reference to `XGetXCBConnection'" error.

I was systematically going through the linked libraries, and comparing them to a system I have where x11-wm/compiz-0.7.2 is compiling, and one difference was that on the working system, /usr/lib/libGL.so was linked to the mesa package (/usr/lib/opengl/xorg-x11/lib/libGL.so). On the systems that were giving me the XGetXCBConnection error, /usr/lib/libGL.so was linked to the nVidia binary package.

After issuing the command "eselect opengl set xorg-x11", compiz started compiling without the XGetXCBConnection error.

I've yet to determine if this will give me problems using the nVidia opengl drivers.
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Wed Mar 12, 2008 5:25 pm    Post subject: Reply with quote

pawstar wrote:
I did have the xcb flag set from the beginning, but I got the same error. I solved this problem with a hack: since I am running on amd64 I did

mv /usr/lib64/libX11.so /usr/lib64/libX11.so.bak
ln -s /usr/lib64/libX11-xcb.so /usr/lib64/libX11.so

and it emerged compiz without that error.

Cheers!


Tremendous, that did it for me also :-)

Thank you very much.
Back to top
View user's profile Send private message
silviogerli
n00b
n00b


Joined: 13 Mar 2008
Posts: 2

PostPosted: Thu Mar 13, 2008 7:51 am    Post subject: Reply with quote

I've the same problem.

Dont Panic wrote:
After issuing the command "eselect opengl set xorg-x11", compiz started compiling without the XGetXCBConnection error.

I've yet to determine if this will give me problems using the nVidia opengl drivers.


Did you get the test resetting nvidia opegl?

eselect opengl set nvidia

It seems to me the cleaner solution, not to mess up with the libraries.

No one knows if Sabayon overlays mantainers are managing this bug?
Back to top
View user's profile Send private message
wolfden
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2004
Posts: 102
Location: Midwest

PostPosted: Thu Mar 13, 2008 11:30 am    Post subject: Reply with quote

have to submit the bug before it can be looked at
http://bugs.sabayonlinux.org/
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 322
Location: SouthEast U.S.A.

PostPosted: Thu Mar 13, 2008 1:14 pm    Post subject: Reply with quote

silviogerli wrote:
I've the same problem.

Dont Panic wrote:
After issuing the command "eselect opengl set xorg-x11", compiz started compiling without the XGetXCBConnection error.

I've yet to determine if this will give me problems using the nVidia opengl drivers.


Did you get the test resetting nvidia opegl?

eselect opengl set nvidia

It seems to me the cleaner solution, not to mess up with the libraries.


Sorry being slow to report back. I wanted to test this on a few of my installations to make sure the result were consistent.

On my systems, compiz-0.7.2 (and the other 0.7.2 related upgrades) seemed to be working OK once I reset opengl to nvidia ("eselect opengl set nvidia") after building the packages with "eselect opengl set xorg-x11". Sometimes I had to re-run the accel-manager application and fiddle with the compiz settings, but this seemed like it was mostly due to messing up things while playing around with attempts at other solutions the original problem.

Naturally, compiz didn't work at all with opengl left at the xorg-x11 setting.

silviogerli wrote:
No one knows if Sabayon overlays mantainers are managing this bug?


I've been keeping an eye on the Sabayon forums, and I haven't seen any reports of this specific problem over there. Many Sabayon users use a different approach to keep compiz updated directly from desktop-effects (See How to Update Compiz Fusion). For myself, I like to use the Sabayon overlay since, up until now, it involved less work.
Back to top
View user's profile Send private message
pawstar
n00b
n00b


Joined: 08 Dec 2007
Posts: 9

PostPosted: Fri Mar 14, 2008 2:32 am    Post subject: Reply with quote

silviogerli wrote:
I've the same problem.

Dont Panic wrote:
After issuing the command "eselect opengl set xorg-x11", compiz started compiling without the XGetXCBConnection error.

I've yet to determine if this will give me problems using the nVidia opengl drivers.


Did you get the test resetting nvidia opegl?

eselect opengl set nvidia

It seems to me the cleaner solution, not to mess up with the libraries.

No one knows if Sabayon overlays mantainers are managing this bug?


Hence why I call what I did a "hack". The problem that I see in your method is that its nvidia specific. I have an ati card which means that I don't have anything related to nvidia.
Back to top
View user's profile Send private message
unz
l33t
l33t


Joined: 28 Jul 2004
Posts: 819
Location: Roma, Italia

PostPosted: Fri Mar 14, 2008 7:10 am    Post subject: Reply with quote

Dont Panic wrote:
I stumbled on a different way to get x11-wm/compiz-0.7.2 to compile without the "undefined reference to `XGetXCBConnection'" error.

I was systematically going through the linked libraries, and comparing them to a system I have where x11-wm/compiz-0.7.2 is compiling, and one difference was that on the working system, /usr/lib/libGL.so was linked to the mesa package (/usr/lib/opengl/xorg-x11/lib/libGL.so). On the systems that were giving me the XGetXCBConnection error, /usr/lib/libGL.so was linked to the nVidia binary package.

After issuing the command "eselect opengl set xorg-x11", compiz started compiling without the XGetXCBConnection error.

I've yet to determine if this will give me problems using the nVidia opengl drivers.


Same problem with ati.
I did
Code:

eselect opengl set xorg-x11
emerge compiz
eselect opengl set ati

It works on ati x1400 with the latest fgrlx drivers, no problems.
_________________
Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/
Back to top
View user's profile Send private message
pawstar
n00b
n00b


Joined: 08 Dec 2007
Posts: 9

PostPosted: Fri Mar 14, 2008 7:33 am    Post subject: Reply with quote

unz wrote:
Dont Panic wrote:
I stumbled on a different way to get x11-wm/compiz-0.7.2 to compile without the "undefined reference to `XGetXCBConnection'" error.

I was systematically going through the linked libraries, and comparing them to a system I have where x11-wm/compiz-0.7.2 is compiling, and one difference was that on the working system, /usr/lib/libGL.so was linked to the mesa package (/usr/lib/opengl/xorg-x11/lib/libGL.so). On the systems that were giving me the XGetXCBConnection error, /usr/lib/libGL.so was linked to the nVidia binary package.

After issuing the command "eselect opengl set xorg-x11", compiz started compiling without the XGetXCBConnection error.

I've yet to determine if this will give me problems using the nVidia opengl drivers.


Same problem with ati.
I did
Code:

eselect opengl set xorg-x11
emerge compiz
eselect opengl set ati

It works on ati x1400 with the latest fgrlx drivers, no problems.


Alright good to know.
Back to top
View user's profile Send private message
silviogerli
n00b
n00b


Joined: 13 Mar 2008
Posts: 2

PostPosted: Fri Mar 14, 2008 2:17 pm    Post subject: Reply with quote

pawstar wrote:
Hence why I call what I did a "hack". The problem that I see in your method is that its nvidia specific. I have an ati card which means that I don't have anything related to nvidia.


It doesn't depend on nvidia, I think it is an error in Sabayon Ebuild.

you can do the same with ati (set opengl for x11, compile and than reset opegl on ati).
Back to top
View user's profile Send private message
shwouchk
n00b
n00b


Joined: 05 Jul 2004
Posts: 22

PostPosted: Mon Mar 24, 2008 1:51 pm    Post subject: Reply with quote

unfortunately I use Intel so this method is unapplicable - any ideas?

[edit]
nevermind - I saw only the lower half of the thread first...
Back to top
View user's profile Send private message
unK
l33t
l33t


Joined: 06 Feb 2007
Posts: 769

PostPosted: Mon Mar 24, 2008 3:37 pm    Post subject: Reply with quote

Actually compiz can be build without xcb. You just have to remove libxcb from dependencies and apply to compiz source this patch -> compiz-drop-xcb.patch

EDIT: Or better:

1. Add to IUSE xcb flag.

2. Change in DEPENDS line
Code:
x11-libs/libxcb

to
Code:
xcb? ( x11-libs/libxcb )

and add to src_unpack() before eautoreconf command this:
Code:
   if ! use xcb; then
      epatch "${FILESDIR}"/${PN}-drop-xcb.patch
   fi

_________________
ncmpcpp - featureful ncurses based MPD client inspired by ncmpc
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 322
Location: SouthEast U.S.A.

PostPosted: Mon Mar 24, 2008 5:05 pm    Post subject: Reply with quote

unK wrote:
Actually compiz can be build without xcb.


That's an interesting trick. Does it affect compiz or opengl as far as you can tell (speed up/slow down/other)?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum