View previous topic :: View next topic |
Author |
Message |
overshoot n00b
Joined: 19 May 2002 Posts: 62 Location: Socorro, NM
|
Posted: Fri Apr 15, 2005 9:21 pm Post subject: Compiling OpenOffice.org 2.0 Beta |
|
|
OK, maybe it's just me but this turkey is the hardest mess to compile from source that I've ever encountered. No, I'm not using gcc 3.4.x either -- 3.3.5 actually.
For one thing, the download tarball (1.9.91) is incomplete. By the time I get all of the missing stuff checked out of CVS I'm actually better off just doing a CVS checkout. Then it turns out that no matter what you try to do with the configuration options you end up with compile errors. The most recent is an ambiguous string-type conversion in ./tools/ but it seems as though no matter what I do for config it ends up barfing one way or another.
Has anyone actually managed to build 1.9.x from source?
If you have, what kind of bribe will it take to get the secret from you? |
|
Back to top |
|
|
black hole sun Apprentice
Joined: 14 Aug 2004 Posts: 245
|
Posted: Sun Apr 17, 2005 9:54 pm Post subject: |
|
|
Hah, yeah it's extremely difficult, but it is doable.
What I did was grab a build script off of ooo.ximian.com. Then it takes just three commands; ./download && make and some other one that installs things, forget what it is right now. I actually managed to build it with gcc 3.4.3 and glibc2.3.4
you will need to manually fix the dependencies though to make the configure script work, and you'll need a lot of the Gnome packages, as well as JDK 1.4.2.
Also, configure expects certain things to be in strange places - for example, it wants ant to be in /usr/share/ant and NOT in /opt.
Come back here for any help you need, be sure to give me exact error messages. _________________ Running Slackware Linux (I no longer use Gentoo, but I still like this forum ) |
|
Back to top |
|
|
overshoot n00b
Joined: 19 May 2002 Posts: 62 Location: Socorro, NM
|
Posted: Mon Apr 18, 2005 10:17 pm Post subject: |
|
|
black hole sun wrote: | Hah, yeah it's extremely difficult, but it is doable.
Come back here for any help you need, be sure to give me exact error messages. |
The kind of stuff that happens with the Ximian version:
=============
Building project beanshell
=============
/local/OOo_2.0bc_src/build/src680-m92/beanshell
++++++++++++++++++++++++++++++++++++
ERROR!
Could not detect compiler version!
Please extend tg_compv.mk in
solenv/inc.
++++++++++++++++++++++++++++++++++++
g++ -dumpversion returns
3.3.5-20050130
++++++++++++++++++++++++++++++++++++
dmake: Error code 255, while making 'compiler_version_error'
'---* tg_merge.mk *---'
ERROR: Error 65280 occurred while making /local/OOo_2.0bc_src/build/src680-m92/beanshell
make: *** [stamp/build] Error 1 |
|
Back to top |
|
|
black hole sun Apprentice
Joined: 14 Aug 2004 Posts: 245
|
Posted: Tue Apr 19, 2005 5:02 pm Post subject: |
|
|
/ooo-build/build/src680-m92/solenv/bin/getcompver.awk
Change the end paragraph to this;
Code: | END {
if ( num == "true" ) {
CCversion = "3.3.5-20050130"
tokencount = split (CCversion,vertoken,".")
for ( i = 1 ; i <= tokencount ; i++ ) {
printf ("%04d",vertoken[i] )
}
} else
print CCversion
} |
and see what happens. THis is of course assuming you have gcc 3.3.5-20050130 installed; do a gcc-config -l for me _________________ Running Slackware Linux (I no longer use Gentoo, but I still like this forum ) |
|
Back to top |
|
|
overshoot n00b
Joined: 19 May 2002 Posts: 62 Location: Socorro, NM
|
Posted: Tue Apr 19, 2005 10:22 pm Post subject: |
|
|
Now it's Java compile errors. Looks like Base64 isn't being set in the classpath even though it's required:
javac -classpath ".:../../unxlngi4.pro/class:/opt/blackdown-jdk-1.4.2.01/jre/lib/rt.jar:.:/local/OOo_2.0bc_src/build/src680-m92/solver/680/unxlngi4.pro/bin/ridl.jar:/local/OOo_2.0bc_src/build/src680-m92/solver/680/unxlngi4.pro/bin/unoil.jar:/local/OOo_2.0bc_src/build/src680-m92/solver/680/unxlngi4.pro/bin/jurt.jar:/local/OOo_2.0bc_src/build/src680-m92/solver/680/unxlngi4.pro/bin/juh.jar:/local/OOo_2.0bc_src/build/src680-m92/solver/680/unxlngi4.pro/bin/xalan.jar" -d ../../unxlngi4.pro/class XSLTFilter.java XSLTransformer.java XSLTFilterOLEExtracter.java Base64.java XSLTXalanOLEExtracter.java
XSLTFilterOLEExtracter.java:61: '.' expected
import Base64;
^
1 error
dmake: Error code 1, while making '../../unxlngi4.pro/misc/XSLTFilter_dummy.java'
'---* tg_merge.mk *---'
ERROR: Error 65280 occurred while making /local/OOo_2.0bc_src/build/src680-m92/filter/source/xsltfilter
make: *** [stamp/build] Error 1
This is just unprofessional. Doesn't anyone actually do build tests any more? |
|
Back to top |
|
|
black hole sun Apprentice
Joined: 14 Aug 2004 Posts: 245
|
Posted: Wed Apr 20, 2005 4:22 am Post subject: |
|
|
OpenOffice builds require a very specific set of software.
That said, you cant use blackdown. You need the official j2sdk 1.4.2 version _NOT_ 1.5.x. Im not sure if there's a binary for it, there should be - either way, unmerge the blackdown and merge the official BINARY (if you can because the j2sdk takes a LONG time to compile) else just compile the 1.4.x j2sdk..
And trust me- i feel your pain. I had the same thoughts at one point, but, I toughed it out and now I've got this::
http://img212.echo.cx/my.php?image=snapshot19tn.png
_________________ Running Slackware Linux (I no longer use Gentoo, but I still like this forum ) |
|
Back to top |
|
|
overshoot n00b
Joined: 19 May 2002 Posts: 62 Location: Socorro, NM
|
Posted: Wed Apr 20, 2005 6:02 pm Post subject: |
|
|
Quote: | That said, you cant use blackdown. You need the official j2sdk 1.4.2 version _NOT_ 1.5.x. Im not sure if there's a binary for it, there should be - either way, unmerge the blackdown and merge the official BINARY (if you can because the j2sdk takes a LONG time to compile) else just compile the 1.4.x j2sdk..
|
??? Why unmerge blackdown? It's unlinked:OOo_2.0bc_src $ echo $JAVA_HOME
/opt/sun-jdk-1.4.2.08
Makes no difference, though:
javac -classpath ".:../../unxlngi4.pro/class:/opt/sun-jdk-1.4.2.08/jre/lib/rt.jar:.:/local/OOo_2.0bc_src/build/src680-m92/solver/680/unxlngi4.pro/bin/ridl.jar:/local/OOo_2.0bc_src/build/src680-m92/solver/680/unxlngi4.pro/bin/unoil.jar:/local/OOo_2.0bc_src/build/src680-m92/solver/680/unxlngi4.pro/bin/jurt.jar:/local/OOo_2.0bc_src/build/src680-m92/solver/680/unxlngi4.pro/bin/juh.jar:/local/OOo_2.0bc_src/build/src680-m92/solver/680/unxlngi4.pro/bin/xalan.jar" -d ../../unxlngi4.pro/class XSLTFilter.java XSLTransformer.java XSLTFilterOLEExtracter.java Base64.java XSLTXalanOLEExtracter.java
XSLTFilterOLEExtracter.java:61: '.' expected
import Base64;
^
1 error
dmake: Error code 1, while making '../../unxlngi4.pro/misc/XSLTFilter_dummy.java'
'---* tg_merge.mk *---'
ERROR: Error 65280 occurred while making /local/OOo_2.0bc_src/build/src680-m92/filter/source/xsltfilter
make: *** [stamp/build] Error 1
I don't think that was the problem. |
|
Back to top |
|
|
black hole sun Apprentice
Joined: 14 Aug 2004 Posts: 245
|
Posted: Thu Apr 21, 2005 5:12 am Post subject: |
|
|
odd. that's a straight compilation error...unset any $CFLAGS and $CXXFLAGS (and remove them in make.conf as well). It may not be agreeing with your toolchain - you have the latest binutils, gcc? _________________ Running Slackware Linux (I no longer use Gentoo, but I still like this forum ) |
|
Back to top |
|
|
overshoot n00b
Joined: 19 May 2002 Posts: 62 Location: Socorro, NM
|
Posted: Thu Apr 21, 2005 12:59 pm Post subject: |
|
|
black hole sun wrote: | odd. that's a straight compilation error...unset any $CFLAGS and $CXXFLAGS (and remove them in make.conf as well). It may not be agreeing with your toolchain - you have the latest binutils, gcc? |
OOo_2.0bc_src $ etcat -v binutils
[ Results for search key : binutils ]
[ Candidate applications found : 13 ]
Only printing found installed programs.
* sys-devel/binutils :
[M ] 2.14 (0)
[M ] 2.14.90.0.6-r8 (0)
[ ] 2.14.90.0.8-r2 (0)
[M ] 2.15 (0)
[ ] 2.15.90.0.1.1-r4 (0)
[M ] 2.15.90.0.3-r4 (0)
[M ] 2.15.91.0.2-r1 (0)
[ ] 2.15.92.0.2-r1 (0)
[ I] 2.15.92.0.2-r7 (0)
[M~ ] 2.15.92.0.2-r8 (0)
[M ] 2.15.94.0.2.2 (0)
[M ] 2.15.97 (0)
[M ] 2.16.90.0.1 (0)
OOo_2.0bc_src $ etcat -v gcc
[ Results for search key : gcc ]
[ Candidate applications found : 15 ]
Only printing found installed programs.
* sys-devel/gcc :
[M ] 2.95.3-r8 (2.95)
[M ] 3.1.1-r2 (3.1)
[M ] 3.2.3-r4 (3.2)
[M ] 3.3.2 (3.3)
[M ] 3.3.2-r5 (3.3)
[M ] 3.3.2-r7 (3.3)
[ ] 3.3.5-r1 (3.3)
[M~ ] 3.3.5.20050130 (3.3)
[ I] 3.3.5.20050130-r1 (3.3)
[M~ ] 3.3.5.20050130-r2 (3.3)
[M~ ] 3.4.1-r3 (3.4)
[M~ ] 3.4.3-r1 (3.4)
[M~ ] 3.4.3.20050110-r1 (3.4)
[M~ ] 3.4.3.20050110-r2 (3.4)
[M ] 4.0.0_beta20050416 (4.0)
Besides, that's a java compile error. As far as I can tell, it's a matter of the classpath being set without a required library. I've been digging around to find where the classpath gets set but haven't found it yet.
Looks to me like a config error, but I haven't mucked around with gnu config for a long time. |
|
Back to top |
|
|
|