| Summary: | app-office/openoffice does not build with ibm-jdk | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Tanktalus |
| Component: | Current packages | Assignee: | Gentoo Office Team <office> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | brendlerjg, java, lauranger |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Tanktalus
2007-09-27 13:57:15 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. 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. (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 :-( (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. (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. Is this still a relevant problem with 2.4.0? 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. 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. 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?
CCing java-herd for advice 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. *** Bug 215369 has been marked as a duplicate of this bug. *** Please check if this is still a problem with OOo 3.0 (In reply to comment #13) > Please check if this is still a problem with OOo 3.0 > No feedback, closing |