Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88363 - <=sys-libs/lib-compat-1.4 - Q/A problems.
Summary: <=sys-libs/lib-compat-1.4 - Q/A problems.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 116520 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-08 08:29 UTC by solar (RETIRED)
Modified: 2006-05-21 17:04 UTC (History)
3 users (show)

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


Attachments
fix-textrel-libstdc++.so.2.7.2.8.c (fix-textrel-libstdc++.so.2.7.2.8.c,970 bytes, text/plain)
2005-04-09 14:54 UTC, solar (RETIRED)
Details
fix-textrel-libg++.so.2.7.2.8.c (fix-textrel-libg++.so.2.7.2.8.c,961 bytes, text/plain)
2005-04-09 15:06 UTC, solar (RETIRED)
Details
fix-textrel-libg++.so.2.7.2.8.c (fix-textrel-libg++.so.2.7.2.8.c,975 bytes, text/plain)
2005-04-09 16:57 UTC, solar (RETIRED)
Details
fix-textrel-libstdc++.so.2.7.2.8.c (fix-textrel-libstdc++.so.2.7.2.8.c,988 bytes, text/plain)
2005-04-09 16:57 UTC, solar (RETIRED)
Details
lib-compat-1.4-r1.ebuild (lib-compat-1.4-r1.ebuild,1.62 KB, text/plain)
2005-04-09 16:59 UTC, solar (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description solar (RETIRED) gentoo-dev 2005-04-08 08:29:57 UTC
problem 1)
 lib-compat uses virtual/libc when it's a binary package thats built for glibc.
 using a virtual here is wrong.

problem 2)

solar@simple lib-compat $ scanelf -a  $(epm -q -l lib-compat)|grep TEXT
 TYPE    PAX   STK/REL TEXTREL RPATH  FILE
ET_DYN  PeMRxS --- --- TEXTREL   -   /usr/lib/libg++.so.2.7.2.8
ET_DYN  PeMRxS --- --- TEXTREL   -   /usr/lib/libstdc++.so.2.7.2.8
ET_DYN  PeMRxS --- --- TEXTREL   -   /usr/lib/libstdc++.so.2.7.2
ET_DYN  PeMRxS --- --- TEXTREL   -   /usr/lib/libg++.so.2.7.2

These 4 libs have TEXTREL's this more or less breaks policy as chances are it means those libs are not fully pic aware. This will result in every binary linked to it to have text relocations as well.

solution who ever makes this bins needs to compile with -fPIC and ensure that the libs are free of text relocations.
Comment 1 SpanKY gentoo-dev 2005-04-08 08:34:24 UTC
i'm pretty sure we steal most of those libs from other distros

they exist for binary-only packages ... nothing new will link against them
Comment 2 solar (RETIRED) gentoo-dev 2005-04-08 08:57:17 UTC
I was afraid of that seeing at there are a few program headers which have been gentoo defaults for a very long time that are missing.

In anycase problem #1 should be addressed.
Comment 3 solar (RETIRED) gentoo-dev 2005-04-09 14:54:22 UTC
Created attachment 55799 [details]
fix-textrel-libstdc++.so.2.7.2.8.c

For sys-libs/lib-compat-1.4  +sdl with the md5sum of
9da40b0dd71ba28d6ff4a7d0de1df86b
Comment 4 solar (RETIRED) gentoo-dev 2005-04-09 14:58:26 UTC
These two libs are actually false positives with the textrels. So thats 2x bad Q/A
The first attached program corrects it.

The same holds true for the libg++.so.2.7.2.8 and I'll attach a fixit program for it also in a few mins.
Comment 5 solar (RETIRED) gentoo-dev 2005-04-09 15:06:32 UTC
Created attachment 55800 [details]
fix-textrel-libg++.so.2.7.2.8.c

pimpage!

The way both of these work is to take the DT_TEXTREL sections and change them
to be DT_NULL. We can get away with this on these two libs as the DT_TEXTREL is
the 
last section in the dynamic section.

Both programs dump output to /root/libname or ./libname~ if we don't have write
permision in /root/
Comment 6 solar (RETIRED) gentoo-dev 2005-04-09 15:19:12 UTC
oh the sum for the other binary file is 55bdc3a03d776dc994ad5dbd4e199175  /usr/lib/libg++.so.2.7.2.8
Comment 7 solar (RETIRED) gentoo-dev 2005-04-09 16:57:31 UTC
Created attachment 55809 [details]
fix-textrel-libg++.so.2.7.2.8.c

Updated ones that work with the unstripped versions in the x86/ subdir.
Comment 8 solar (RETIRED) gentoo-dev 2005-04-09 16:57:55 UTC
Created attachment 55810 [details]
fix-textrel-libstdc++.so.2.7.2.8.c
Comment 9 solar (RETIRED) gentoo-dev 2005-04-09 16:59:02 UTC
Created attachment 55811 [details]
lib-compat-1.4-r1.ebuild

Ulgy hacks for ulgy builds.
Comment 10 solar (RETIRED) gentoo-dev 2005-04-16 08:02:26 UTC
I'll run the scripts, repackage the libs and put it in the tree as ~arch -rNEXT if there are no objections.
Comment 11 SpanKY gentoo-dev 2005-12-23 11:31:52 UTC
*** Bug 116520 has been marked as a duplicate of this bug. ***
Comment 12 solar (RETIRED) gentoo-dev 2005-12-25 02:45:06 UTC
I never repackaged the bins. 
It's been said a few times that those libs need to be just compiled properly on a gentoo systems.
Comment 13 Mark Loeser (RETIRED) gentoo-dev 2006-05-15 17:08:26 UTC
solar: any progress with this, or should we just make this bug WONTFIX?
Comment 14 solar (RETIRED) gentoo-dev 2006-05-15 17:36:21 UTC
Want me to do the solution from comment #10 ?
Comment 15 Mark Loeser (RETIRED) gentoo-dev 2006-05-15 17:40:11 UTC
(In reply to comment #14)
> Want me to do the solution from comment #10 ?
> 

Sounds good to me.  Thanks :)
Comment 16 solar (RETIRED) gentoo-dev 2006-05-15 18:33:08 UTC
lib-compat-1.4.1 pushed to the tree.
I yanked all the stable markings from the other non x86 arches but really 
those could be marked as stable right away.
But to keep things peachy with the arch teams I marked them ~arch

x86 team mark stable when you are happy (no rush).
Comment 17 Mark Loeser (RETIRED) gentoo-dev 2006-05-21 17:04:34 UTC
x86 done.