Difference between revisions of "User:Mano622"

From Apache OpenOffice Wiki
Jump to: navigation, search
(20/08/08 Compilation break break ... end)
(20/08/08 Compilation break break ... end)
Line 141: Line 141:
 
But nothing change
 
But nothing change
  
== 20/08/08 Compilation break break break ... ==
+
== 20/08/08 Compilation break break ... end ==
 
   
 
   
 
After many hours decide to take all from begin, with this time jdk-1.5 and no jdk-1.6 :
 
After many hours decide to take all from begin, with this time jdk-1.5 and no jdk-1.6 :

Revision as of 21:45, 21 July 2008

Hi everybody ! My name is Pierre Pasteau. I am new to OpenOffice.org, but I hope help the project.

Here are some information about my work in the project :


irc.freenode.net: channels : #educooo,#education.openoffice.org,#dev.openoffice.org,#go-oo,#lealinux

Configuration : Gentoo Linux 2.6.24-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3200+

16/07/08: Download and get information about the project

First get the latest dev souce with cvs:

$ export CVSROOT=":pserver:anoncvs@anoncvs.services.openoffice.org:/cvs"
$ cvs -z4 co -r DEV300_m23 OpenOffice3 swext tomcat apache-commons

Begin to read and to do exercice from this page: http://wiki.services.openoffice.org/wiki/Education_ClassRoom/Previous_Logs/Introduction

Read some information about all the module in the project, here: http://wiki.services.openoffice.org/wiki/Source_code_directories

17/07/08: Configuration and begin compilation

I do a little meeting in the morning, with ericb2 and chacha_chaudry (contributors).

I try to configure the software, whith this flags enabled :

$ cd DEV300_m23/config_office && ./configure --with-lang=ALL --with-dict=ALL --without-fonts --enable-libsn --with-system-zlib	
--with-lang=ALL     : for every language.
--with-dict=ALL     : dictionary for every language. 
--without-fonts     : no Bitstream Vera police I have already it with X.	
--with-epm=internal : solve the rpm depends

But I have got some errors, I need to install tcsh and rpm so :

$ emerge tcsh rpm 

emerge is the command of the package management system from Gentoo

ericb2 told me after that to don't have depends I must use this flags:

--with-epm=internal
--with-use-shell=bash

I need to download mozilla sources and put it in moz subdir, need the file unowinreg.dll too.

$ cd moz

Missed modules hyphen and hunspell so:

$ cvs -z4 co -r DEV300_m23 hunspell hyphen

Configuration is ok, so save the line.

Now set the setup context, and do bootstrap:

$ cd .. && source linux*.sh
$ ./bootstrap

The linux*.sh script set vars, alias and unset few vars.




Now try to compile:

$ dmake

But quicly :

first error whith moz :
{standard input}: Assembler messages:	
{standard input}:8: Error: suffix or operands invalid for `push'
this error hapenned when i386 assembler code arrive on x86_64.

I go to the moz subdir, and modified patch with :

$ dmake patch
$ dmake create_patch

But the same problem re-appear.

When try to resolv problem seen that in the Makefile x86 field is execute.

Yes, the mozilla configure detect an i686.

18/08/08 Finish to build mozilla module

After that discover a part of the problem, I go to see the configure of mozilla.

I waste some hours, so I tryed to restore the original patch with :

$ cd moz
$ cvs up

And this time the build is ok (don't know why)

ericb2 told me to create archive of the module moz

$ dmake zip

So next time I will configure with --disable-build-mozilla

I create repertory work in moz and download seamonkey last version 1.1.11 in.

$ mkdir work

Read mozilla-source-1.7.5.patch for the first time, don't understand every things. Need to revise patch syntax :

+ line which will be add
- line which will be delete
! block which will be replace
--- 
! by this block

Other line is here to indicate the place in the code

19/08/08 - 20/08/08 : Continue compilation

The install don't find few of jdk header and lib, I found them :

$ ln -s /etc/java-config-2/current-system-vm/include/jni.h /usr/include
$ ln -s /etc/java-config-2/current-system-vm/include/linux/jni_md.h /usr/include
$ ln -s /etc/java-config-2/current-system-vm/include/jawt.h /usr/include
$ ln -s /etc/java-config-2/current-system-vm/include/linux/jawt_md.h /usr/include

$ ln -s /opt/sun-jdk-1.5.0.15/jre/lib/amd64/libjawt.so  /usr/lib64/
$ ln -s /opt/sun-jdk-1.5.0.15/jre/lib/amd64/xawt/libmawt.so  /usr/lib64/
$ ln -s /opt/sun-jdk-1.5.0.15/jre/lib/amd64/libjava.so  /usr/lib64/
$ ln -s /opt/sun-jdk-1.5.0.15/jre/lib/amd64/server/libjvm.so  /usr/lib64/
$ ln -s /opt/sun-jdk-1.5.0.15/jre/lib/amd64/libmlib_image.so  /usr/lib64/
$ ln -s /opt/sun-jdk-1.5.0.15/jre/lib/amd64/libverify.so  /usr/lib64/

Have another problem with jurt.jar and ridl.jar.

error : "class file has wrong version 50.0, should be 49.0"

It was because I do an update of jdk before the end of the dmake so

it mixed code compiled: class file version 50.0 is used by Java 6.0, and 49.0 is used by Java 5.0.

Another probleme appear:

error : "The JRE specified by the bootstrap variable UNO_JAVA_JFW_JREHOME  or  UNO_JAVA_JFW_ENV_JREHOME  could not be recognized.
	Check the values and make sure that you use a plug-in library that can recognize that JRE.javaldx failed!"

UNO_JAVA_JFW_ENV_JREHOME is using so:

$ UNO_JAVA_JFW_ENV_JREHOME="/usr/lib/jvm/sun-jdk-1.6/" 
$ export UNO_JAVA_JFW_ENV_JREHOME

But nothing change

20/08/08 Compilation break break ... end

After many hours decide to take all from begin, with this time jdk-1.5 and no jdk-1.6 :

$ dmake clean

I reconfigure with this flag:

--with-jdk-home="/usr/lib/jdk-1.5/"

Download and install ccache 2.4 to win time if need recompilation

$ export CC="ccache gcc"
$ export CXX="ccache g++"
$ dmake

I have got a new error :

PROBLEM: magic_load(ms, "/usr/lib/rpm/magic") failed: could not find any magic files!
Try 1 : Could not execute "rpmbuild -bb RPMS/ooobasis3.0-gnome-integration.spec --target x86_64 2>&1 |"!
...
ERROR: "rpmbuild -bb RPMS/ooobasis3.0-gnome-integration.spec --target x86_64 2>&1 |"!
in function: create_packages_without_epm

It's a problem from my system, need to get manually the magic file of rpm from source:

$ cp /var/tmp/portage/app-arch/rpm-4.4.6-r3/work/rpm-4.4.6/rpm.magic /usr/lib/rpm/magic

Ok it's finished

Personal tools