1 |
Hello, |
2 |
I'm having problems with mysql: |
3 |
|
4 |
resolveip: error while loading shared libraries: cannot make segment |
5 |
writable for relocation: Permission denied |
6 |
|
7 |
ldd `which resolveip` |
8 |
libstdc++.so.5 => |
9 |
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5 (0x23d21000) |
10 |
libgcc_s.so.1 => |
11 |
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x23e6e000) |
12 |
libc.so.6 => /lib/libc.so.6 (0x23e81000) |
13 |
libpthread.so.0 => /lib/libpthread.so.0 (0x23f99000) |
14 |
libz.so.1 => /lib/libz.so.1 (0x23fab000) |
15 |
libcrypt.so.1 => /lib/libcrypt.so.1 (0x23fbf000) |
16 |
libnsl.so.1 => /lib/libnsl.so.1 (0x23fed000) |
17 |
libm.so.6 => /lib/libm.so.6 (0x24003000) |
18 |
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x23d0a000) |
19 |
|
20 |
I'm trying to recompile mysql, but: |
21 |
|
22 |
make[5]: Entering directory |
23 |
`/var/tmp/portage/mysql-4.0.20-r1/work/mysql-4.0.20/sql' |
24 |
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" |
25 |
-DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" |
26 |
-DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I./../include |
27 |
-I./../regex -I. -I../include -I. -O3 -DDBUG_OFF -march=pentium2 -O3 |
28 |
-pipe -fomit-frame-pointer -ffast-math -fforce-addr -falign-functions=4 |
29 |
-ftracer -fstack-protector-all -felide-constructors -fno-exceptions |
30 |
-fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -c |
31 |
-I../innobase/include -I./../include -I./../regex -I. -I../include -I. |
32 |
gen_lex_hash.cc |
33 |
/bin/sh ../libtool --preserve-dup-deps --mode=link g++ -O3 -DDBUG_OFF |
34 |
-march=pentium2 -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr |
35 |
-falign-functions=4 -ftracer -fstack-protector-all -felide-constructors |
36 |
-fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions |
37 |
-fno-rtti -rdynamic -o gen_lex_hash gen_lex_hash.o ../isam/libnisam.a |
38 |
../merge/libmerge.a ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a |
39 |
../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a |
40 |
../regex/libregex.a ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl |
41 |
-lm -lpthread |
42 |
mkdir .libs |
43 |
g++ -O3 -DDBUG_OFF -march=pentium2 -O3 -pipe -fomit-frame-pointer |
44 |
-ffast-math -fforce-addr -falign-functions=4 -ftracer |
45 |
-fstack-protector-all -felide-constructors -fno-exceptions -fno-rtti |
46 |
-fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o |
47 |
gen_lex_hash gen_lex_hash.o ../isam/libnisam.a ../merge/libmerge.a |
48 |
../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a |
49 |
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a |
50 |
../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm -lpthread |
51 |
make[5]: Leaving directory |
52 |
`/var/tmp/portage/mysql-4.0.20-r1/work/mysql-4.0.20/sql' |
53 |
./gen_lex_hash > lex_hash.h |
54 |
./gen_lex_hash: error while loading shared libraries: cannot make segment |
55 |
writable for relocation: Permission denied |
56 |
make[4]: *** [lex_hash.h] Error 127 |
57 |
make[4]: *** Waiting for unfinished jobs.... |
58 |
make[4]: Leaving directory |
59 |
`/var/tmp/portage/mysql-4.0.20-r1/work/mysql-4.0.20/sql' |
60 |
make[3]: *** [all-recursive] Error 1 |
61 |
make[3]: Leaving directory |
62 |
`/var/tmp/portage/mysql-4.0.20-r1/work/mysql-4.0.20/sql' |
63 |
make[2]: *** [all] Error 2 |
64 |
make[2]: Leaving directory |
65 |
`/var/tmp/portage/mysql-4.0.20-r1/work/mysql-4.0.20/sql' |
66 |
make[1]: *** [all-recursive] Error 1 |
67 |
make[1]: Leaving directory |
68 |
`/var/tmp/portage/mysql-4.0.20-r1/work/mysql-4.0.20' |
69 |
make: *** [all] Error 2 |
70 |
|
71 |
!!! ERROR: dev-db/mysql-4.0.20-r1 failed. |
72 |
!!! Function src_compile, Line 163, Exitcode 2 |
73 |
!!! compile problem |
74 |
|
75 |
|
76 |
What can I do? |
77 |
|
78 |
-- |
79 |
gentoo-hardened@g.o mailing list |