Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101590 - mysql-4.0.24 text-relocation causes mysql to not emerge
Summary: mysql-4.0.24 text-relocation causes mysql to not emerge
Status: RESOLVED DUPLICATE of bug 42968
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-06 16:10 UTC by Jeremy Huddleston (RETIRED)
Modified: 2005-08-06 16:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-06 16:10:18 UTC
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
Comment 1 Robert Paskowitz (RETIRED) gentoo-dev 2005-08-06 16:16:05 UTC
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 ***