View previous topic :: View next topic |
Author |
Message |
sharmauiuc Guest
|
Posted: Tue Mar 30, 2004 11:38 pm Post subject: NeoOffice/J build |
|
Can i build NeoOffice/J on OS/X 10.2.3 and with gcc 3.3. Also which veriosn of OO can I download as build is failing on cvs.c when I do make all for NeoOffice/J
vs: lock.c:178: lock_name: Assertion `(__extension__ (__builtin_constant_p (strlen (current_parsed_root->directory)) && ((__builtin_constant_p (repository) && strlen (repository) < ((size_t) (strlen (current_parsed_root->directory)))) || (__builtin_constant_p (current_parsed_root->directory) && strlen (current_parsed_root->directory) < ((size_t) (strlen (current_parsed_root->directory))))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (repository) && __builtin_constant_p (current_parsed_root->directory) && (__s1_len = strlen (repository), __s2_len = strlen (current_parsed_root->directory), (!((size_t)(const void *)((repository) + 1) - (size_t)(const void *)(repository) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((current_parsed_root->directory) + 1) - (size_t)(const void *)(current_parsed_root->directory) == 1) || __s2_len >= 4)) ? memcmp ((const char *) (repository), (const char *) (current_parsed_root->directory), (__s1_len < __s2_len ? __s1_len : __s2_len) + 1) : (__builtin_constant_p (repository) && ((size_t)(const void *)((repository) + 1) - (size_t)(const void *)(repository) == 1) && (__s1_len = strlen (repository), __s1_len < 4) ? (__builtin_constant_p (current_parsed_root->directory) && ((size_t)(const void *)((current_parsed_root->directory) + 1) - (size_t)(const void *)(current_parsed_root->directory) == 1) ? (__extension__ ({ register int __result = (((const unsigned char *) (const char *) (repository))[0] - ((const unsigned char *) (const char *)(current_parsed_root->directory))[0]); if (__s1_len > 0 && __result == 0) { __result = (((const unsigned char *) (const char *) (repository))[1] - ((const unsigned char *) (const char *) (current_parsed_root->directory))[1]); if (__s1_len > 1 && __result == 0) { __result = (((const unsigned char *) (const char *) (repository))[2] - ((const unsigned char *) (const char *) (current_parsed_root->directory))[2]); if (__s1_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) (repository))[3] - ((const unsigned char *) (const char *) (current_parsed_root->directory))[3]); } } __result; })) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (current_parsed_root->directory); register int __result = (((const unsigned char *) (const char *) (repository))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((const unsigned char *) (const char *) (repository))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((const unsigned char *) (const char *) (repository))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) (repository))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (current_parsed_root->directory) && ((size_t)(const void *)((current_parsed_root->directory) + 1) - (size_t)(const void *)(current_parsed_root->directory) == 1) && (__s2_len = strlen (current_parsed_root->directory), __s2_len < 4) ? (__builtin_constant_p (repository) && ((size_t)(const void *)((repository) + 1) - (size_t)(const void *)(repository) == 1) ? (__extension__ ({ register int __result = (((const unsigned char *) (const char *) (repository))[0] - ((const unsigned char *) (const char *)(current_parsed_root->directory))[0]); if (__s2_len > 0 && __result == 0) { __result = (((const unsigned char *) (const char *) (repository))[1] - ((const unsigned char *) (const char *) (current_parsed_root->directory))[1]); if (__s2_len > 1 && __result == 0) { __result = (((const unsigned char *) (const char *) (repository))[2] - ((const unsigned char *) (const char *) (current_parsed_root->directory))[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) (repository))[3] - ((const unsigned char *) (const char *) (current_parsed_root->directory))[3]); } } __result; })) : (__extension__ ({ const unsigned char *__s1 = (const unsigned char *) (const char *) (repository); register int __result = __s1[0] - ((const unsigned char *) (const char *) (current_parsed_root->directory))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((const unsigned char *) (const char *) (current_parsed_root->directory))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((const unsigned char *) (const char *) (current_parsed_root->directory))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((const unsigned char *) (const char *) (current_parsed_root->directory))[3]); } } __result; }))) : strcmp (repository, current_parsed_root->directory)))); }) : strncmp (repository, current_parsed_root->directory, strlen (current_parsed_root->directory)))) == 0' failed. |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Tue Mar 30, 2004 11:53 pm Post subject: |
|
gcc 3.3 cannot be used to build NeoJ or OOo 1.0.3. Don't even try as you will just waste your time. Be sure to read the requirements for building NeoJ at http://www.planamesa.com/neojava/build.php.
The cvs error that your are getting is due to OOo's messed up CVS server. I have found a nifty set of steps to get it to work:
1. Create a temporary directory, cd into it, and execute the following command:
Code: | cvs -d :pserver:anoncvs@anoncvs.services.openoffice.org:/cvs co MathMLDTD ; cd MathMLDTD; cvs update -d -r OOO_STABLE_1_PORTS |
2. Delete the temporary directory.
3. Immediately start building NeoJ.
Step 1, for some reason, makes OOo's CVS server work properly for a while. However, the problem will reappear in a few hours so if you need to recheckout the OOo sources, you should do the above steps first just to make sure.
Patrick |
|
Back to top |
|
|
sharmauiuc Guest
|
Posted: Wed Mar 31, 2004 12:14 am Post subject: thanks for the help |
|
One quick question Can ( i did not find anything on googl)
Can gcc2 and gcc3 coexist on my machine G5?
If not then what choices do I have ( I am also building mozilla) which
requires gcc3
Thanks |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Wed Mar 31, 2004 12:48 am Post subject: |
|
They can coexist on the same machine (they do on my 10.2.8 machine), but they cannot be used at the same time. In my build instructions at http://www.planamesa.com/neojava/build.php, the "gcc_select" command is used to set the compiler version to use. "sudo gcc_select 2" will set it to 2.95.2 and "sudo gcc_select 3.3" will set it to gcc 3.3.
Patrick |
|
Back to top |
|
|
sharmauiuc Guest
|
Posted: Wed Mar 31, 2004 10:34 pm Post subject: neoOffice J build on Mac |
|
Why do u require OS X X11 to build Neooffice/J? Alsoe I am try to build without
/Users/sanjay/NeoOfficeJ/neojava/build/officecfg/org/openoffice/configuration
Making dpj...
tcsh: javadep: Command not found.
Also I am little confuse dabout instruction
Do you have instructions (other than website) to build for Mac
when I run make all again and stubble at
kdir ./unxmacxp.pro/misc/build/STLport-4.0/src
mkdir: ./unxmacxp.pro/misc/build/STLport-4.0/src: File exists
cd ./unxmacxp.pro/misc/build/STLport-4.0/src && make -f gcc-apple-macosx.mak -j1 && touch so_built
cc -I../stlport -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -Wno-long-double -D_REENTRANT -D_PTHREADS -fno-coalesce -O2 -fPIC dll_main.cpp -c -o obj/GCC/ReleaseD/dll_main.o
In file included from ../stlport/cstddef:29,
from ../stlport/stl/_alloc.h:39,
from ../stlport/memory:28,
from dll_main.cpp:5:
/usr/include/../include/stddef.h:97: conflicting types for `typedef int wint_t'
../stlport/config/stl_gcc.h:49: previous declaration as `typedef unsigned int wint_t'
make[1]: *** [obj/GCC/ReleaseD/dll_main.o] Error 1
dmake: Error code 2, while making './unxmacxp.pro/misc/build/so_built'
---* TG_SLO.MK *---
any idea or help will be appreciated. |
|
Back to top |
|
|
sharmauiuc Guest
|
Posted: Wed Mar 31, 2004 10:41 pm Post subject: Neooffice/J |
|
I might be able to help you in helping as I am decent programmer in
Java J2EE technology not so much swing though.
There are two things that are missing in my version
1) I have X11 installed but not the client could not find instructions
2) I have JDK 1.4.2
How should I proceed to build? |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Thu Apr 01, 2004 7:28 pm Post subject: |
|
The Neo/J program uses the 1.0.3 OO.oX11 source for the Open Office part. You can run it without X11 installed.
Now the CVS might include a X11 package, I dunno, i've not tried to build Neo/J.
-j |
|
Back to top |
|
|
sharmauiuc Guest
|
Posted: Thu Apr 01, 2004 8:46 pm Post subject: NeoOffice/J build |
|
Can somebody post bash or csh or tcsh file that they use to build
NeoOffice/J. It appears to me that something is missing from instructions
Example
/Users/sanjay/NeoOfficeJ/neojava/build/officecfg/org/openoffice/configuration
Making dpj...
tcsh: javadep: Command not found.
Thanks
SS |
|
Back to top |
|
|
sharmauiuc Guest
|
Posted: Thu Apr 01, 2004 10:41 pm Post subject: Well sorry folks |
|
I decided to quit on building NeoOffice/J. I am building OO with X as we
speak and want to see my luck.
Good luck with the port
SS |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Fri Apr 02, 2004 1:12 am Post subject: |
|
Since about 97% of the NeoJ build is building OOo 1.0.3, I would agree that building OOo 1.1 is better use of time. Doing any NeoJ development is very painful if you have not had any experience building OOo.
The OOo 1.0.3 build is notoriously flaky (and the OOo 1.1 seems to me to be only a little less flaky) so don't be surprised if the build breaks. Sadly, this is far too common when building OOo. In fact, if you can build OOo on the first try, you are definitely one of a very small group.
Patrick |
|
Back to top |
|
|
shooby Red Pill
Joined: Mar 21, 2004 Posts: 8 Location: Budapest/Hungary
|
Posted: Fri Apr 02, 2004 9:28 pm Post subject: Re: neoOffice J build on Mac |
|
sharmauiuc wrote: | ../stlport/config/stl_gcc.h:49: previous declaration as `typedef unsigned int wint_t'
|
Hotfix: remove this declaration from stl_gcc.h (this works for me) |
|
Back to top |
|
|
shooby Red Pill
Joined: Mar 21, 2004 Posts: 8 Location: Budapest/Hungary
|
Posted: Fri Apr 02, 2004 9:35 pm Post subject: |
|
pluby wrote: | The OOo 1.0.3 build is notoriously flaky (and the OOo 1.1 seems to me to be only a little less flaky) so don't be surprised if the build breaks. |
OOo 1.1.1 is building without any breaks, it has many changes in STL and solenv what helps to make a clean build without patches on Panther. I'm waiting the time you will have some time to check it |
|
Back to top |
|
|
sharmauiuc Guest
|
Posted: Fri Apr 02, 2004 11:48 pm Post subject: NeoOffice/J build |
|
I was able to build oo1.1.1 and finished after 24 hours whew. I have been
able to build it on gcc3.3 latest PowerPC G5 with Apple X11 OS X 10.3.3
The only issue I had was missing <jni.h> which I had hard coded to my location I am using jdk 1.4.2
Other than one minor <jni.h> it builds completely |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Sat Apr 03, 2004 10:54 am Post subject: |
|
sharmauiuc,
From the Panther build problems that you an shooby have reported, I am now convinced that OpenOffice.org 1.0.3 (and, of course, NeoJ), cannot be built on Panther.
This does not surprise me since the OpenOffice.org 1.0.3 code was released in June, 2003 which was several months before Panther was officially released. I also have seen Dan's many changes to the OpenOffice.org 1.1 code that fixed the STLPort and Dlcompat issues that first showed up on Panther.
In theory, I could try to back port Dan's fixes into the OOo 1.0.3 code so that NeoJ can compile on Panther. However, it probably makes more sense for me to start working on moving NeoJ to the OOo 1.1 code base since the OOo 1.0.3 code is now a bit old.
In the meantime, I will change the build instructions on my website to state that NeoJ can only be built on Jaguar.
Patrick |
|
Back to top |
|
|
shooby Red Pill
Joined: Mar 21, 2004 Posts: 8 Location: Budapest/Hungary
|
Posted: Sun Apr 04, 2004 6:10 am Post subject: Re: NeoOffice/J build |
|
sharmauiuc wrote: | I was able to build oo1.1.1 and finished after 24 hours whew. I have been
able to build it on gcc3.3 latest PowerPC G5 with Apple X11 OS X 10.3.3
The only issue I had was missing <jni.h> which I had hard coded to my location I am using jdk 1.4.2
Other than one minor <jni.h> it builds completely |
This is because you have not downloaded the java sdk 1.4.2 from developer.apple.com. |
|
Back to top |
|
|
|