Bug 5998 - fix text relocations in i386 mysql.so
: fix text relocations in i386 mysql.so
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Platform Support
: 7.0
: PC RedHat Linux
: P2 normal (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-02 04:30 UTC by Robin Bowes
Modified: 2007-11-07 08:56 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Bowes 2007-11-02 04:30:43 UTC
The current version of mysql.so in /trunk/server/CPAN/arch/5.8/i386-linux-thread-multi/auto/DBD/mysql/ is built wrongly and contains Text Relocations.

More information here: http://people.redhat.com/drepper/textrelocs.html

Here's how to check (eu-readelf comes with the elfutils package):

# eu-readelf -d trunk/server/CPAN/arch/5.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so | grep TEXTREL
  TEXTREL

The x86_64 version doesn't have this problem:

# eu-readelf -d trunk/server/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so | grep TEXTREL


Can we get the i386 mysql.so rebuilt the same way that the x86_64 module was built? This is will prevent any selinux issues.

R.
Comment 1 Mark Miksis 2007-11-02 12:02:32 UTC
It turns out that on i386, Expat.so and GD.so have the same problem. If I download DBD::mysql and XML::Parser::Expat from svn/vendor, GD from CPAN, and compile them with the defaults, they do not have TEXTREL. If I replace all 3 files under CPAN/arch/5.8/i386-linux-thread-multi/auto, I can happily run with SELinux enabled.
Comment 2 Robin Bowes 2007-11-02 13:32:14 UTC
Yes, that's right.

The fix is to rebuild all the modules under the CPAN tree in the same way that yhe x86_64 modules were built recently (about 3 weeks ago).

Andy - over to you!! :)
Comment 3 Mark Miksis 2007-11-02 17:26:14 UTC
I just wanted to point out that it only seems to be those three.
Comment 4 Mark Miksis 2007-11-05 07:35:54 UTC
Andy, can you please comment on this one?
Comment 5 Andy Grundman 2007-11-05 07:43:22 UTC
Ugh... will look at this later today.
Comment 6 Andy Grundman 2007-11-06 14:20:55 UTC
Hopefully fixed in change 14432.  The eu-findtextrel tool says they are all clean.
Comment 7 Mark Miksis 2007-11-07 08:56:04 UTC
Looks good.  Thanks Andy.