Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49984 - compiling openoffice-ximian-1.1.54 exits with error under hardened-dev-sources-2.6.5-r3
Summary: compiling openoffice-ximian-1.1.54 exits with error under hardened-dev-source...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 49985 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-04 09:19 UTC by Markus Dittrich
Modified: 2004-08-23 07:18 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 Markus Dittrich 2004-05-04 09:19:20 UTC
Compiling openoffice-ximian-1.1.54 exits with error running the  hardened-dev-sources-2.6.5-r3 kernel. The package compiles fine
when using vanilla sources 2.6.5. 
Here's the relevant output at the point were the compilation fails
(about 1 hour into the compile on my P4 1.8Ghz)

------------------------------------------- SNIP ---------------------------------------------------------------

rm -f /var/tmp/portage/openoffice-ximian-1.1.54/work/oo_1.1.1_src/icu/unxlngi4.pro/misc/build/icu/source/data/out/libicudata.so && ln -s libicudata.so.22.0 /var/tmp/portage/openoffice-ximian-1.1.54/work/oo_1.1.1_src/icu/unxlngi4.pro/misc/build/icu/source/data/out/libicudata.so
gmake[2]: Leaving directory `/var/tmp/portage/openoffice-ximian-1.1.54/work/oo_1.1.1_src/icu/unxlngi4.pro/misc/build/icu/source/data'
LD_LIBRARY_PATH=../common:../i18n:../tools/toolutil:../layout:../extra/ustdio:../tools/ctestfw:../data/out:../data:../stubdata/:$LD_LIBRARY_PATH ../tools/pkgdata/pkgdata -O ../data/icupkg.inc -d /var/tmp/portage/openoffice-ximian-1.1.54/work/oo_1.1.1_src/icu/unxlngi4.pro/misc/build/icu/source/data/out -T ../test/testdata/out/build -d ../test/testdata/out -s ../test/testdata/out/build -p testdata -m common ../test/testdata/out/build/testdata.lst
../tools/pkgdata/pkgdata: error while loading shared libraries: ../data/out/libicudata.so.22: cannot make segment writable for relocation: Permission denied
make[1]: *** [packagetest] Error 127
make[1]: Leaving directory `/var/tmp/portage/openoffice-ximian-1.1.54/work/oo_1.1.1_src/icu/unxlngi4.pro/misc/build/icu/source/data'
make: *** [all-recursive] Error 2
dmake:  Error code 2, while making './unxlngi4.pro/misc/build/so_built_so_icu'
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-ximian-1.1.54/work/oo_1.1.1_src/icu

!!! ERROR: app-office/openoffice-ximian-1.1.54 failed.
!!! Function src_compile, Line 356, Exitcode 1
!!! Build failed!





Reproducible: Always
Steps to Reproduce:
1. Boot into kernel hardened-dev-sources-2.6.5-r3
2. ACCEPT_KEYWORDS="~x86" sudo emerge openoffice-ximian
3.

Actual Results:  
Build fails with the error message given above. Probably due to PAX refusing a
binary
generated during compile access to shared libraries. Unfortunately no PAX/grsec
logs are generated in my current setup.

Expected Results:  
Compiled openoffice-ximian properly.

My kernel is named 2.6.5-frodo3, which is basically hardened-dev-sources-2.6.5-r3
with Con's cfq scheduler and orinoco-cs patches, nothing else. I have confirmed that
the same happens for pure hardened-dev-sources-2.6.5-r3 as well.

[markus@biohazard] sudo emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-frodo3)
=================================================================
System uname: 2.6.5-frodo3 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -mcpu=pentium4 -funroll-loops -fprefetch-loop-arrays
-pipe -ffast-math -mfpmath=sse -mmmx -msse2 -fomit-frame-pointer
-falign-functions=4 -fstack-protector -fforce-addr"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -mcpu=pentium4 -funroll-loops
-fprefetch-loop-arrays -pipe -ffast-math -mfpmath=sse -mmmx -msse2
-fomit-frame-pointer -falign-functions=4 -fstack-protector -fforce-addr
-finline-functions"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm avi berkdb cdr crypt cups directfb encode esd foomaticdb gdbm
ggi gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mpeg nas
ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-05-04 11:39:06 UTC
*** Bug 49985 has been marked as a duplicate of this bug. ***
Comment 2 Andreas Proschofsky (RETIRED) gentoo-dev 2004-08-21 12:46:53 UTC
is this still valid? 
Comment 3 Markus Dittrich 2004-08-23 07:18:22 UTC
Nope, we can get rid of this entry.The new hardened-gcc toolchain has 
taken care of the issues regarding the loading of shared libraries. I am currently using

gcc version 3.3.4 20040623 (Gentoo Hardened Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)

However, openoffice (up to version 1.3.0) still doesn't compile using hardened-gcc since there is a problem with pthreads symbols. Once I have
time to attempt another compilation I will file a bug if none exists. 
Thanks.