Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247591 - x11-libs/pixman-0.10.0 - /usr/lib/libgdk-x11-2.0.so: undefined reference to `XineramaQueryScreens'
Summary: x11-libs/pixman-0.10.0 - /usr/lib/libgdk-x11-2.0.so: undefined reference to `...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-19 15:57 UTC by Pieter De Wit
Modified: 2008-11-21 03:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter De Wit 2008-11-19 15:57:09 UTC
Hi Guys,

I have been trying to compile pixman for "years" now and then I came onto the following :

/usr/lib/libgdk-x11-2.0.so: undefined reference to `XineramaQueryScreens'
/usr/lib/libgdk-x11-2.0.so: undefined reference to `XineramaIsActive'
collect2: ld returned 1 exit status
make[2]: *** [composite-test] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-libs/pixman-0.10.0/work/pixman-0.10.0/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/pixman-0.10.0/work/pixman-0.10.0'
make: *** [all] Error 2
 * 
 * ERROR: x11-libs/pixman-0.10.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2926:  Called x-modular_src_compile
 *             environment, line 3712:  Called x-modular_src_make
 *             environment, line 3748:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake 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-libs/pixman-0.10.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/pixman-0.10.0/temp/environment'.
 * 

I found what the problem was using the following commands:

ldd /usr/lib/libgtk-x11-2.0.so
<snip>
        libXinerama.so.1 => not found
</snip>

I then "emerge libXinerama" and retried pixman and all was well. I have done quite a few "emerge -Due world" to try and solve this problem.

I think that pixman should have a dep. on libxinerama ?

Thanks, Pieter 

Reproducible: Always

Steps to Reproduce:
1. emerge pixman
2.
3.

Actual Results:  
Compile failed

Expected Results:  
Compile to complete
Comment 1 Rafał Mużyło 2008-11-19 16:22:06 UTC
As your error states, it's a dep of gtk
and gtk does depend on it, when xinerama useflag
is set. As such, this looks like a problem with your useflags
(probably you set/unset something and revdep-rebuild has missed it or
you failed to run it).
Comment 2 Pieter De Wit 2008-11-19 16:46:21 UTC
Hi Rafal, (I think ?)

You are right, it's not in my useflags, but must it be in the useflags if something depends on it ?

Thanks,

Pieter
Comment 3 Rafał Mużyło 2008-11-20 17:06:48 UTC
Copy/paste, when in doubt.

As for your problem, it looks like at some point xinerama was among
your useflags. During that time, you've compiled gtk+.
Later, for some reason you unset it and unmerged libXinerama
(perhaps incorrect use of depclean).
As such gtk+ got broken.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-20 18:49:13 UTC
Looks like you need to run revdep-rebuild... x11-libs/pixman doesn't depend on Xinerama in any way.
Comment 5 Pieter De Wit 2008-11-21 03:52:37 UTC
Hi Guys,

I ran revdep-rebuild and it tries to rebuild gtk+, at that stage it failed somewhere. I can't remember the point, but I think it also tried to rebuild pixman,cairo and then gtk+.

My point is that surely somewhere between "emerge -Due world" and "revdep-rebuild" one must have picked up that hang on...we need libXinerama.

Maybe a check can be build into revdep-rebuild for this sort of thing ?