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?


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
  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.




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]

- 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

- 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.

--

Ben Staveley-Taylor





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Reply via email to