Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 88438

Summary: gzip: error while loading shared libraries: cannot make segment writable for relocation: Permission denied
Product: Gentoo Linux Reporter: Didier Conchaudron <didier>
Component: Current packagesAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Didier Conchaudron 2005-04-09 01:41:17 UTC
I run 2.6.7-hardened-r9 and each time I use Gzip I got this message, for example:
# emerge vim

[...]

>>> Unpacking vim-6.3-lang.tar.gz to /var/tmp/portage/vim-core-6.3.068/work
gzip: error while loading shared libraries: cannot make segment writable for relocation: Permission denied
tar: Child returned status 127
tar: Error exit delayed from previous errors

!!! ERROR: app-editors/vim-core-6.3.068 failed.
!!! Function unpack, Line 375, Exitcode 2
!!! failure unpacking vim-6.3-lang.tar.gz

I got the same problem at boot while gentoo is loading keymap...so it's a bit of a problem :-/

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Maybe the hardened kernel is responsible of this problem.
Comment 1 solar (RETIRED) gentoo-dev 2005-04-09 06:56:04 UTC
user error

You either enabled PAX_NOELFRELOCS in your kernel or did not enable the pic USE flag on gzip.
Comment 2 Didier Conchaudron 2005-04-11 14:22:59 UTC
ok in fact you're right solar, it was me :-/

this bug can be close now.
Comment 3 Adam Mondl (RETIRED) gentoo-dev 2005-04-21 18:41:07 UTC
Closed from comment #2