Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143186 - compiling openmotif 2.2.3-r9 fails: ./wmluiltok: error while loading shared libraries: cannot make segment writable for relocation: Permission denied
Summary: compiling openmotif 2.2.3-r9 fails: ./wmluiltok: error while loading shared l...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-08 03:03 UTC by Christian Korff
Modified: 2006-08-08 08:19 UTC (History)
0 users

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 Christian Korff 2006-08-08 03:03:00 UTC
I tried to compile x11-libs/openmotif-2.2.3-r9 but it failed with the mentioned error message.

...
x86_64-pc-linux-gnu-ar cru libwml.a wmlparse.o wml.o wmloutkey.o wmlouth.o wmloutmm.o wmloutp1.o wmlresolve.o wmlsynbld.o wmlutils.o 
x86_64-pc-linux-gnu-ranlib libwml.a
/bin/sh ../../libtool --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=nocona -pipe -I/usr/include/gentoo-multilib/amd64 -fno-strict-aliasing -Wall -Wno-unused -Wno-comment   -o wml  wml.o -L. -lwml 
mkdir .libs
x86_64-pc-linux-gnu-gcc -O2 -march=nocona -pipe -I/usr/include/gentoo-multilib/amd64 -fno-strict-aliasing -Wall -Wno-unused -Wno-comment -o wml wml.o  -L/mnt/sda1/portage/portage/openmotif-2.2.3-r9/work/openMotif-2.2.3/tools/wml -lwml
source='wmluiltok.c' object='wmluiltok.o' libtool=no \
depfile='.deps/wmluiltok.Po' tmpdepfile='.deps/wmluiltok.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../lib -I./../../lib -I./../../include      -O2 -march=nocona -pipe -I/usr/include/gentoo-multilib/amd64 -fno-strict-aliasing -Wall -Wno-unused -Wno-comment -c `test -f 'wmluiltok.c' || echo './'`wmluiltok.c
/bin/sh ../../libtool --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=nocona -pipe -I/usr/include/gentoo-multilib/amd64 -fno-strict-aliasing -Wall -Wno-unused -Wno-comment   -o wmluiltok  wmluiltok.o -lfl 
x86_64-pc-linux-gnu-gcc -O2 -march=nocona -pipe -I/usr/include/gentoo-multilib/amd64 -fno-strict-aliasing -Wall -Wno-unused -Wno-comment -o wmluiltok wmluiltok.o  -lfl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
rm -f UilConst.h        UilKeyTab.h UilSymArTa.h        UilSymArTy.h    UilSymCSet.h    UilSymCtl.h UilSymEnum.h        UilSymGen.h     UilSymNam.h     UilSymRArg.h UilSymReas.h       UilTokName.h    UilUrmClas.h    UilSymChCl.h UilSymChTa.h wml.report wml-uil.mm
./wmluiltok <./Uil.y >tokens.dat
./wmluiltok: error while loading shared libraries: cannot make segment writable for relocation: Permission denied
make[2]: *** [UilConst.h] Error 127
make[2]: Leaving directory `/mnt/sda1/portage/portage/openmotif-2.2.3-r9/work/openMotif-2.2.3/tools/wml'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/sda1/portage/portage/openmotif-2.2.3-r9/work/openMotif-2.2.3/tools'
make: *** [all-recursive] Error 1

!!! ERROR: x11-libs/openmotif-2.2.3-r9 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  openmotif-2.2.3-r9.ebuild, line 84:   Called die

!!! make failed, if you have lesstif installed removed it, compile openmotif and recompile lesstif
!!! If you need support, post the topmost build error, and the call stack if relevant.

According to the Gentoo hardened FAQ ( http://www.gentoo.org/proj/en/hardened/hardenedfaq.xml#paxnoelf ) this happens because of non-PIC librarys.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-08 03:14:17 UTC
Please, always include emerge --info in bug reports.
Comment 2 Christian Korff 2006-08-08 08:05:06 UTC
I didn't include any because i didn't think it's necessary, but here it is

# emerge --info
Portage 2.1-r2 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.14 x86_64)
=================================================================
System uname: 2.6.14 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.15
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/mnt/sda1/portage-distfiles"
FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
PKGDIR="/usr/local/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/mnt/sda1/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa arts avi berkdb bitmap-fonts cddb cli crypt cups dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 hardened imlib ipv6 isdnlog jpeg kde kerberos ldap libcaca linguas_de linguas_en_GB linguas_fr lzw lzw-tiff mng mp3 mpeg ncurses nls nptl ogg opengl pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd tiff truetype-fonts type1-fonts unicode usb vorbis wmf xinerama xml xorg xpm xprint xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-08 08:11:25 UTC
Why are you using hardened use flag without setting a proper hardened profile (which would force USE=pic among others)?

Comment 4 solar (RETIRED) gentoo-dev 2006-08-08 08:19:11 UTC
comment #3 says it all. Closing as INVALID