Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 88363
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: solar <solar@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
fix-textrel-libstdc++.so.2.7.2.8.c fix-textrel-libstdc++.so.2.7.2.8.c text/plain solar 2005-04-09 14:54 0000 970 bytes Details
fix-textrel-libg++.so.2.7.2.8.c fix-textrel-libg++.so.2.7.2.8.c text/plain solar 2005-04-09 15:06 0000 961 bytes Details
fix-textrel-libg++.so.2.7.2.8.c fix-textrel-libg++.so.2.7.2.8.c text/plain solar 2005-04-09 16:57 0000 975 bytes Details
fix-textrel-libstdc++.so.2.7.2.8.c fix-textrel-libstdc++.so.2.7.2.8.c text/plain solar 2005-04-09 16:57 0000 988 bytes Details
lib-compat-1.4-r1.ebuild lib-compat-1.4-r1.ebuild text/plain solar 2005-04-09 16:59 0000 1.62 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 88363 depends on: Show dependency tree
Bug 88363 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-04-08 08:29 0000
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 From SpanKY 2005-04-08 08:34:24 0000 -------
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 From solar 2005-04-08 08:57:17 0000 -------
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 From solar 2005-04-09 14:54:22 0000 -------
Created an attachment (id=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 From solar 2005-04-09 14:58:26 0000 -------
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 From solar 2005-04-09 15:06:32 0000 -------
Created an attachment (id=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 From solar 2005-04-09 15:19:12 0000 -------
oh the sum for the other binary file is 55bdc3a03d776dc994ad5dbd4e199175 
/usr/lib/libg++.so.2.7.2.8

------- Comment #7 From solar 2005-04-09 16:57:31 0000 -------
Created an attachment (id=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 From solar 2005-04-09 16:57:55 0000 -------
Created an attachment (id=55810) [details]
fix-textrel-libstdc++.so.2.7.2.8.c

------- Comment #9 From solar 2005-04-09 16:59:02 0000 -------
Created an attachment (id=55811) [details]
lib-compat-1.4-r1.ebuild

Ulgy hacks for ulgy builds.

------- Comment #10 From solar 2005-04-16 08:02:26 0000 -------
I'll run the scripts, repackage the libs and put it in the tree as ~arch -rNEXT
if there are no objections.

------- Comment #11 From SpanKY 2005-12-23 11:31:52 0000 -------
*** Bug 116520 has been marked as a duplicate of this bug. ***

------- Comment #12 From solar 2005-12-25 02:45:06 0000 -------
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 From Mark Loeser 2006-05-15 17:08:26 0000 -------
solar: any progress with this, or should we just make this bug WONTFIX?

------- Comment #14 From solar 2006-05-15 17:36:21 0000 -------
Want me to do the solution from comment #10 ?

------- Comment #15 From Mark Loeser 2006-05-15 17:40:11 0000 -------
(In reply to comment #14)
> Want me to do the solution from comment #10 ?
> 

Sounds good to me.  Thanks :)

------- Comment #16 From solar 2006-05-15 18:33:08 0000 -------
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 From Mark Loeser 2006-05-21 17:04:34 0000 -------
x86 done.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug