Bugzilla – Bug 5998
fix text relocations in i386 mysql.so
Last modified: 2007-11-07 08:56:04 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.
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.
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!! :)
I just wanted to point out that it only seems to be those three.
Andy, can you please comment on this one?
Ugh... will look at this later today.
Hopefully fixed in change 14432. The eu-findtextrel tool says they are all clean.
Looks good. Thanks Andy.