Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217935 - perl-tk links wrong libX11.so from /usr/X11R6/lib
Summary: perl-tk links wrong libX11.so from /usr/X11R6/lib
Status: RESOLVED DUPLICATE of bug 385621
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Interix
: High normal (vote)
Assignee: Markus Duft (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 12:01 UTC by Markus Duft (RETIRED)
Modified: 2011-10-10 18:19 UTC (History)
1 user (show)

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 Markus Duft (RETIRED) gentoo-dev 2008-04-16 12:01:11 UTC
it seems that perl-tk is not quite prefix-aware right now, and catches the wrong libX11, maybe other things too.

Reproducible: Always

Steps to Reproduce:
1. compile perl-tk
2. ldd /opt/gentoo.system/usr/lib/perl5/vendor_perl/5.8.8/i586-interix/auto/Tk/Tk.so (of course this is my path only...)

Actual Results:  
everything seems to work, but revdep-rebuild wants to rebuild perl-tk all the time :)
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-04-16 18:35:34 UTC
(In reply to comment #0)
> it seems that perl-tk is not quite prefix-aware right now, and catches the
> wrong libX11, maybe other things too.

hmm.

%% ldd $EPREFIX/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Tk/Tk.so 

        libX11.so.6 => /home/jolexa/portage/linux-32/usr/lib/libX11.so.6 (0x009e7000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x00e46000)
        libm.so.6 => /lib/tls/libm.so.6 (0x00872000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00111000)
        libXau.so.6 => /home/jolexa/portage/linux-32/usr/lib/libXau.so.6 (0x0023d000)
        libXdmcp.so.6 => /home/jolexa/portage/linux-32/usr/lib/libXdmcp.so.6 (0x00589000)
        libdl.so.2 => /lib/libdl.so.2 (0x00241000)
        /lib/ld-linux.so.2 (0x00538000)

Looks ok to me..interix only issue? is that possible?
Comment 2 Markus Duft (RETIRED) gentoo-dev 2008-04-17 06:18:18 UTC
strange... i don't think it's interix only, but setup only. since interix has a rather old setup (i.e. X11 libs in /usr/X11R{5,6}/lib) maybe this is the problem. no matter how often i rebuild perl-tk, i always get this:

(2) mduft portage $ ldd /opt/gentoo.system/usr/lib/perl5/vendor_perl/5.8.8/i586-linux/auto/Tk/Tk.so 
       libX11.so.5.2 => /usr/X11R6/lib/libX11.so.5.2 (0x778c0000)
       libm.so.5.2 => /usr/lib/libm.so.5.2 (0x77c30000)
       libc.so.5.2 => /usr/lib/libc.so.5.2 (0x77d80000)

hmmm... also yours has a lot more deps than mine, ...
Comment 3 Fabian Groffen gentoo-dev 2008-04-17 07:57:04 UTC
gentoo (and others) don't do /usr/X11R6 any more, so if there is some hardcoded searchpath for /usr/X11R6 it simply doesn't match for most systems, whereas it does on Interix (and iirc also Darwin with X11 dev packages installed).

So, hunt down the configure/makefile scripts for X11R6!
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-16 19:26:28 UTC
X11R6 is scattered throughout the source dir. A simple grep turned up 26 references. 

mduft, hope you don't mind me assigning this to you. ;-) Sounds like it should go UPSTREAM anyway??
Comment 5 Fabian Groffen gentoo-dev 2009-10-25 09:43:15 UTC
just fix this, or assign back to the herd, because this will be a problem on OSX too (it also has /usr/X11R6/lib)
Comment 6 Fabian Groffen gentoo-dev 2011-10-10 18:19:55 UTC
I believe the config fixes from bug #385621 also solve this problem.

% scanmacho --needed /Library/Gentoo/var/tmp/portage/dev-perl/perl-tk-804.29.0/image/Library/Gentoo/usr/lib/perl5/vendor_perl/5.12.3/x86_64-darwin/auto/Tk/Tk.bundle
ARCH   TYPE   NEEDED FILE 
x86_64 MH_BUNDLE /Library/Gentoo/usr/lib/libXft.2.dylib,/Library/Gentoo/usr/lib/libX11.6.dylib,/Library/Gentoo/usr/lib/libfontconfig.1.dylib,/usr/lib/libSystem.B.dylib /Library/Gentoo/var/tmp/portage/dev-perl/perl-tk-804.29.0/image/Library/Gentoo/usr/lib/perl5/vendor_perl/5.12.3/x86_64-darwin/auto/Tk/Tk.bundle

*** This bug has been marked as a duplicate of bug 385621 ***