incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Simonet <>
Subject [BUILD] Workarounds and tricks to build aoo on OpenSolaris sparc
Date Wed, 15 Feb 2012 16:43:50 GMT
Hi everybody

As Nicolas Christener already discussed with Andrew Rist we managed to
create an aoo build on OpenSolaris 5.11 sparc using Solarisstudio 12.3
(2011/11/14 c37c9c3fb6a6). We used aoo version 3.4 revision 1243611.
Andrew asked for a build 'recipe' with workarounds and 'tricks'. Here we
go :)

We installed these packages:
pkg install pkg:/SUNWmercurial
pkg install pkg:/SUNWj6dev
pkg install pkg:/SUNWjunit
pkg install pkg:/SUNWant
pkg install pkg:/SUNWgnu-gperf
pkg install pkg:/SUNWgnome-common-devel
pkg install pkg:/SUNWbison
pkg install pkg:/SUNWflexlex
pkg install SUNWxorg-headers
pkg install SUNWgmake
pkg install SUNWcurl
pkg install SUNWsvn
pkg install SUNWaconf

Our build script:

Some workaround were necessary which I'm going to explain.

First of all we had to make two minor changes:
1. Change the shebang in ooo/main/
   from #/bin/sh to #/bin/bash
2. Modify ooo/main/bootstrap.1 to use gtar instead of tar.

Some modules caused Errors:


Build failed:
Write to ../
/usr/bin/bash: line 1: 13499 Segmentation Fault
/build/apache-b      uild/ooo/main/solver/340/ -ro
uno_services.rdb -ro uno_types.rdb -s --
dmake:  Error code 139, while making 'runtest'



A proper fix would be nice.

This module failed to build. Solution:
Either remove line 37 in
("ENABLE_PRESENTER_EXTRA_UI is not used anymore") or don't set
--enable-presenter-extra-ui (as it is not used anymore - see the
referenced makefile)

Weird issue. This module failed because of multiple declarations:
"CoinMP.h", line 114: Error: Multiple declaration for COIN_MSGLOG_CB.
"CoinMP.h", line 120: Error: Multiple declaration for COIN_LPITER_CB.
"CoinMP.h", line 127: Error: Multiple declaration for COIN_MIPNODE_CB.
"CoinMP.h", line 131: Error: Multiple declaration for MSGLOGCALLBACK.
"CoinMP.h", line 136: Error: Multiple declaration for ITERCALLBACK.
"CoinMP.h", line 142: Error: Multiple declaration for MIPNODECALLBACK.
6 Error(s) detected.

1. Comment out lines 113-146 in
and continue the build.
2. Of course this also fails. But now you can remove the comments in
CounMP.h and continue the build again. This time it passes.

-> A proper fix would be nice.

We also run into this issue:
[ build LNK ] Library/
Undefined                       first referenced
 symbol                             in file
ld: fatal: symbol referencing errors. No output written to
gmake: ***
Error 2
dmake:  Error code 2, while making 'all'

Set GTK_LIBS="$GTK_LIBS -lgthread-2.0 -lpthread -lthread. This issue was
already fixed upstream so this workaround is not required anymore.

Feel free to contact us concerning builds on OpenSolaris if we can
support the project. We can't promise anything but we are dependent on
sparc builds so we are going to help if possible.

Kind regards

Adfinis SyGroup AG
Denis Simonet, Software Engineer

Keltenstrasse 98 | CH-3018 Bern
Tel. 031 550 31 11

View raw message