Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193998 - app-office/openoffice does not build with ibm-jdk
Summary: app-office/openoffice does not build with ibm-jdk
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 215369 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-27 13:57 UTC by Tanktalus
Modified: 2009-01-11 19:46 UTC (History)
3 users (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 Tanktalus 2007-09-27 13:57:15 UTC
Trying to compile ooo on two different machines results in:

Making: ../../unxlngi6.pro/slb/officebean.lib
echo unxlngi6.pro/slo/com_sun_star_comp_beans_LocalOfficeWindow.o unxlngi6.pro/slo/com_sun_star_beans_LocalOfficeWindow.o | xargs -n1 > ../../unxlngi6.pro/slb/officebean.lib
-----------------------------
SHL1FILTERFILE not set!
-----------------------------
dummy file to keep the dependencies for later use.
------------------------------
Making: ../../unxlngi6.pro/lib/libofficebean.so
g++ -Wl,-z,noexecstack -Wl,-z,combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN' -Wl,-zdynsort -shared -L../../unxlngi6.pro/lib -L../lib -L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/unxlngi6/lib -L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solver/680/unxlngi6.pro/lib -L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/unxlngi6/lib -L/opt/ibm-jdk-bin-1.5.0.5a/lib -L/opt/ibm-jdk-bin-1.5.0.5a/jre/bin -L/opt/ibm-jdk-bin-1.5.0.5a/jre/bin/classic -L/opt/ibm-jdk-bin-1.5.0.5a/jre/bin -L/usr/lib -L/usr/lib/mozilla-firefox ../../unxlngi6.pro/slo/officebean_version.o -o ../../unxlngi6.pro/lib/libofficebean.so ../../unxlngi6.pro/slo/com_sun_star_comp_beans_LocalOfficeWindow.o ../../unxlngi6.pro/slo/com_sun_star_beans_LocalOfficeWindow.o -L/opt/ibm-jdk-bin-1.5.0.5a/jre/bin/xawt -ljawt -lmawt -lstdc++ -ldl -lpthread -lm
rm -f ../../unxlngi6.pro/lib/check_libofficebean.so
mv ../../unxlngi6.pro/lib/libofficebean.so ../../unxlngi6.pro/lib/check_libofficebean.so
/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/bin/checkdll.sh -L../../unxlngi6.pro/lib -L../lib -L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/unxlngi6/lib -L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solver/680/unxlngi6.pro/lib -L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/unxlngi6/lib -L/opt/ibm-jdk-bin-1.5.0.5a/lib -L/opt/ibm-jdk-bin-1.5.0.5a/jre/bin -L/opt/ibm-jdk-bin-1.5.0.5a/jre/bin/classic -L/opt/ibm-jdk-bin-1.5.0.5a/jre/bin -L/usr/lib -L/usr/lib/mozilla-firefox ../../unxlngi6.pro/lib/check_libofficebean.so
Checking DLL ../../unxlngi6.pro/lib/check_libofficebean.so ...: ERROR: libmawt.so: cannot open shared object file: No such file or directory
dmake:  Error code 1, while making '../../unxlngi6.pro/lib/libofficebean.so'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/bean/native/unix
make: *** [stamp/build] Error 1
 *
 * ERROR: app-office/openoffice-2.3.0 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   openoffice-2.3.0.ebuild, line 338:   Called die
 *
 * Build failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/openoffice-2.3.0/temp/build.log'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=ibm-jdk-bin-1.5  CLASSPATH="." JAVA_HOME="/opt/ibm-jdk-bin-1.5.0.5a"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""

Note that the JVM seems a bit off:

# eselect java-vm show
Current system-vm
  sun-jdk-1.4
Current user-vm
  (unset)

# emerge --info
Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Timestamp of tree: Thu, 27 Sep 2007 02:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-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 /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo ftp://mirror.datapipe.net/gentoo ftp://gentoo.chem.wisc.edu/gentoo/"
LANG="en_US.utf8"
LINGUAS="en"
MAKEOPTS="-j7"
PKGDIR="/usr/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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/dmcbride/cvs/portdir-mine"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 arts avi bash-completion berkdb bitmap-fonts branding bzlib cairo cdparanoia cdr cli cracklib crypt cups db2 dbus doc dri dvd dvdr dvdread eds emboss encode esd evo exif expat fam ffmpeg fftw firefox flac flash foomaticdb fortran ftp gb gcj gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv imagemagick imap imlib ipv6 isdnlog ithreads jpeg kde kerberos lcms ldap libwww mad mbox midi mikmod milter mime ming mmap mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg openal opengl openmp oss pam pcre pda pdf pdflib perl png posix pppd python qt qt3 qt3support qt4 quicktime readline reflection samba scanner sdl session sockets sox spell spl sse ssl svg tcpd threads tidy tiff truetype truetype-fonts type1-fonts unicode usb vcd vhosts vorbis win32codecs wxwindows x86 xine xml xml2 xorg xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" FOO2ZJS_DEVICES="hp2600n" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always

Steps to Reproduce:
1. emerge --vaD world

Actual Results:  
See above - fail to compile

Expected Results:  
Brand new OOo installation
Comment 1 Tanktalus 2007-10-06 16:45:21 UTC
The problem may be related to the fact I have sun-jre:1.5 and not sun-jdk:1.5 installed.  (I also have ibm-jdk-bin:1.5 installed.) That, despite the fact that I also have sun-jdk:1.4 installed.  When I removed sun-jre:1.5 and installed sun-jdk:1.5, the compile completed.

Thus, the build is broken using sun-jre, so either the build should be able to use ibm-jdk-bin, or the build should check for sun-jdk:1.5 (or greater?) explicitly, but either way it should not allow sun-jre to be used.
Comment 2 Boney McCracker 2007-10-28 04:40:58 UTC
I can confirm this.  Actually, I had a similar, but not same, experience.

This on ppc using ibm-jdk-bin-1.5 (system-vm) and ibm-jdk-bin-1.4 (gen 1 vm).

When oo-2.3.0 went stable, I emerged it successfully and everything built without error. However, when I ran revdep-rebuild, I got this:

Checking dynamic linking consistency...
  broken /usr/lib/openoffice/program/libofficebean.so (requires  libmawt.so)
 done.

I halted the rebuild, since it seems to be working fine (and takes about 36 hours on that old box).  This might just be that libmawt.so needs to be added to the revdep-rebuild LD_LIBRARY_MASK, but I thought it might be related.
Comment 3 Mike Hammill 2007-11-03 13:03:11 UTC
(In reply to comment #2)
I can confirm this as well.  I am also using ibm-jdk-bin-1.5 under ppc32.  OpenOffice seems to run fine nonetheless, but it's a pain to constantly have to stop revdep-rebuild when it wants to rebuild openoffice.  I am now trying to rebuild OpenOffice without java to see if that at least eliminates the message.  (Tell you how it goes in around 24 hours when it's done :-(
Comment 4 Mike Hammill 2007-11-04 19:16:51 UTC
(In reply to comment #3)
Well, as expected, no broken officebean.lib message if compiling openoffice without the java flag.  No big news, but nice for eliminating the revdep problem till the real problem gets fixed.
Comment 5 Boney McCracker 2007-11-04 19:56:34 UTC
(In reply to comment #4)
Good job (24 hours on the dot)!  I think it takes me about 30 hours.

What I did instead was add it to my LD_LIBRARY_MASK variable.  This prevents it from being checked.  Rather than add it to /etc/revdep-rebuild/60-java, which was set up the java-config-2.* ebuild, I created my own temporary /etc/revdep-rebuild/70-openoffice_tempfix containing:

LD_LIBRARY_MASK="libmawt.so"

That way I'll remember to clean it up.
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2008-03-28 10:05:45 UTC
Is this still a relevant problem with 2.4.0?
Comment 7 Tanktalus 2008-04-21 18:06:54 UTC
I just tried to install OOo 2.4.0, and I get the same problem all over again.

This time, what I have installed for Java is:

$ equery l jdk
[ Searching for package 'jdk' in all categories among: ]
 * installed packages
[I--] [ -] dev-java/ibm-jdk-bin-1.5.0.7 (1.5)
[I--] [ ~] dev-java/ibm-jdk-bin-1.6.0.0 (1.6)
[I--] [M ] dev-java/sun-jdk-1.4.2.16 (1.4)
[I--] [  ] dev-java/sun-jdk-1.5.0.15 (1.5)
[I--] [ ~] virtual/jdk-1.5.0 (1.5)
[I--] [  ] virtual/jdk-1.6.0 (1.6)

Apparently, the ebuild tried to use ibm-jdk-bin-1.6.0.0 ... so I'm going to try again after having installed sun-jdk 1.6.  If that works, then my statement isn't just that OOo needs jdk over jre, but that it actually has to be Sun's.
Comment 8 Tanktalus 2008-04-22 02:32:04 UTC
With sun-jdk-1.6 installed, OOo installs fine.

Basically, it seems that OOo needs to use a sun-jdk to compile.  If the ebuild could somehow be altered so that it ignores any jdk other than sun-jdk, that'd be great.  That is, even though I had sun-jdk-1.5, it preferred ibm-jdk-1.6 instead.  It shouldn't do that.  Instead, it should have ignored the ibm-jdk, and fallen back to the sun-jdk-1.5.
Comment 9 Hanno Zysik (geki) 2008-06-11 09:10:44 UTC
For the revdep-rebuild issue just look at this:

# grep ^LDPATH dev-java/sun-jdk/files/sun-jdk-1.5.env 
LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/jre/lib/@PLATFORM@/xawt/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"

# grep ^LDPATH dev-java/ibm-jdk-bin/files/ibm-jdk-bin-1.5.env 
LDPATH="/opt/@P@/jre/bin/:/opt/@P@/jre/bin/classic"

ibm-jdk-bin is missing the xawt path to find libmawt.so at runtime.

Fixed env file for ibm may look like this?
# grep ^LDPATH dev-java/ibm-jdk-bin/files/ibm-jdk-bin-1.5.env
LDPATH="/opt/@P@/jre/bin/:/opt/@P@/jre/bin/classic:/opt/@P@/jre/bin/xawt"

The fix to ibm-jdk-bin-1.5.env could help OOo build already?
Comment 10 Andreas Proschofsky (RETIRED) gentoo-dev 2008-06-11 09:22:14 UTC
CCing java-herd for advice
Comment 11 Tanktalus 2008-06-11 14:17:00 UTC
The change to the title is a bit misleading as sun-jre didn't work, either.

I've not tested any JVMs other than sun-jre, sun-jdk, and ibm-jdk-bin, so I don't know if other JVMs will work.
Comment 12 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-16 20:22:17 UTC
*** Bug 215369 has been marked as a duplicate of this bug. ***
Comment 13 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-16 20:23:01 UTC
Please check if this is still a problem with OOo 3.0
Comment 14 Andreas Proschofsky (RETIRED) gentoo-dev 2009-01-11 19:46:01 UTC
(In reply to comment #13)
> Please check if this is still a problem with OOo 3.0
> 

No feedback, closing