mysql creates a binary with text relocation and executes it immediately before it can be given paxctl -m. Hardened kernels with CONFIG_PAX_NOELFRELOCS, therefore won't be able to emerge this package. make all-recursive make[1]: Entering directory `/var/tmp/portage/mysql-4.0.24/work/mysql-4.0.24/sql' Making all in share make[2]: Entering directory `/var/tmp/portage/mysql-4.0.24/work/mysql-4.0.24/sql/share' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/mysql-4.0.24/work/mysql-4.0.24/sql/share' make[2]: Entering directory `/var/tmp/portage/mysql-4.0.24/work/mysql-4.0.24/sql' make gen_lex_hash make[3]: Entering directory `/var/tmp/portage/mysql-4.0.24/work/mysql-4.0.24/sql' i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../bdb/build_unix -I./../include -I./../regex -I. -I../include -I. -O3 -DDBUG_OFF -O2 -march=pentium4 -fomit-frame-pointer -pipe -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -c -I../bdb/build_unix -I./../include -I./../regex -I. -I../include -I. gen_lex_hash.cc /bin/sh ../libtool --preserve-dup-deps --mode=link i686-pc-linux-gnu-g++ -O3 -DDBUG_OFF -O2 -march=pentium4 -fomit-frame-pointer -pipe -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o gen_lex_hash gen_lex_hash.o ../isam/libnisam.a ../merge/libmerge.a ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm -lpthread i686-pc-linux-gnu-g++ -O3 -DDBUG_OFF -O2 -march=pentium4 -fomit-frame-pointer -pipe -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o gen_lex_hash gen_lex_hash.o ../isam/libnisam.a ../merge/libmerge.a ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm -lpthread /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. make[3]: Leaving directory `/var/tmp/portage/mysql-4.0.24/work/mysql-4.0.24/sql' ./gen_lex_hash > lex_hash.h ./gen_lex_hash: error while loading shared libraries: cannot make segment writable for relocation: Permission denied make[2]: *** [lex_hash.h] Error 127 make[2]: Leaving directory `/var/tmp/portage/mysql-4.0.24/work/mysql-4.0.24/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mysql-4.0.24/work/mysql-4.0.24/sql' make: *** [all] Error 2
42968 in my opinion should not be closed yet, since the fixed packages are not stable. *** This bug has been marked as a duplicate of 42968 ***