Hi,

Le 25 mars 10 à 11:31, Ben Staveley-Taylor a écrit :

I'm trying to build on Mac OS X and having difficulties. I have followed the instructions on http://wiki.services.openoffice.org/ wiki/AquaBuild as best I can but I'm not sure how up to date they are. Does anyone have experience of doing this successfully?



Some time ago, I was -something like- the main maintainer of this page, I don't have even one machine running Snow Leopard, nor even Leopard (all my machines, including PowerPC, run Tiger), so I no longer maintain the AquaBuild page.

This explains why you will face some build issues, but I hope someone will answer you.



The build kicks off and runs for a couple of minutes but then fail. Snippet from the end of the build log:

gcc -o out/Darwin_SINGLE_SHLIB/drbg.o -c -O2 -fPIC -Di386 -Wmost - fpascal-strings -fno-common -pipe -DDARWIN -DHAVE_STRERROR - DHAVE_BSD_FLOCK -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX= \"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" - DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -DUSE_UTIL_DIRECTLY - DMP_API_COMPATIBLE -I../../../../dist/out/include -I../../../../ dist/public/nss -I../../../../dist/private/nss -Impi -Iecl drbg.c
  drbg.c: In function 'RNG_RandomUpdate':
  drbg.c:516: error: size of array 'arg' is negative


I guess you are building mozilla seamonkey when the build broke ?




  make[3]: *** [out/Darwin_SINGLE_SHLIB/drbg.o] Error 1
  make[2]: *** [libs] Error 2
  make[1]: *** [libs] Error 2
  make: *** [libs] Error 2
dmake: Error code 2, while making './unxmacxi.pro/misc/build/ so_built_nss'


drbg.c:516 is:
    PR_STATIC_ASSERT(sizeof(size_t) <= 4);

Comment in file says:

* if 'sizeof(size_t) <= 4' is triggered, it means that we were expecting * sizeof(size_t) to be less than or equal to 4, but it wasn't. Setting
     *   NS_PTR_GT_32 will correct that mistake.

Then I tried
  export NS_PTR_GT_32=1
but get the same error on retrying the build.



Yes, probably because this constant has probably to be set in the configure, not in the environment.



So far I have done the following:
- Obtained source for v3.2.0 (using svn: svn checkout svn:// svn.services.openoffice.org/ooo/tags/OpenOffice_3_2_0/) into directory OOO320 - ["patch --dry-run -p0 < moz2seamonkey_connectivity.diff" reported the patch was already installed, so I skipped that]


Good idea. Was the patch I used all the time, until seamonkey01 cws was integrated. But since, it is completely useless, and we should remove that too :)



- copied:
  http://tools.openoffice.org/moz_prebuild/OOo3.2/MACOSXGCCIinc.zip
  http://tools.openoffice.org/moz_prebuild/OOo3.2/MACOSXGCCIlib.zip
http://tools.openoffice.org/moz_prebuild/OOo3.2/ MACOSXGCCIruntime.zip
into OOO320/moz/zipped



If you use that, you need to use --disable-build-mozilla option (or someting similar, that "./configure --help | grep mozilla" will tell you) at configure time, if I remember correctly, (and if things have not been changed since).



- Created build.sh as http://wiki.services.openoffice.org/wiki/ AquaBuild instructs and run it

- Run:
  ./bootstrap
  source MacOSXX86Env.Set.sh
  cd instsetoo_native
  export TMP=/tmp
  export SYSTEM_OPENSSL=YES
build --all -P4 --dlv_switch -link --dontgraboutput --html -- html_path /Users/$USER/Sites





My system:
  - Mac OS X 10.6.2
  - Xcode 3.2.1


Many thanks for any help you can give.



HTH :)

Eric Bachard


--
qɔᴉɹə




Reply via email to