incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Giffuni <...@apache.org>
Subject R: [BUILD] Workarounds and tricks to build aoo on OpenSolaris sparc
Date Wed, 15 Feb 2012 18:29:07 GMT


--- Mer 15/2/12, Denis Simonet <denis.simonet@adfinis-sygroup.ch> ha scritto:

> Da: Denis Simonet <denis.simonet@adfinis-sygroup.ch>
> Oggetto: [BUILD] Workarounds and tricks to build aoo on OpenSolaris sparc
> A: ooo-dev@incubator.apache.org
> Data: Mercoledì 15 febbraio 2012, 11:43
> 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.

Great, very nice !!!

> 
> 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/fetch_tarballs.sh
>    from #/bin/sh to #/bin/bash

This is very evil: If there were a way to clean it up
it would be nice, otherwise we will need a workaround:

http://www.cyberciti.biz/tips/finding-bash-perl-python-portably-using-env.html



> 2. Modify ooo/main/bootstrap.1 to use gtar instead of tar.
> 

This is apparently a necessary evil. We have ${GNUTAR},
no idea if it works in bootstrap.1
> 
> Some modules caused Errors:
> 

Thanks! Those will require some careful review.


Pedro.

> bridgetest
> ----------
> 
> Build failed:
> Write to ../unxsols4.pro/misc/sdf/sdext/source/minMaking:
> constructors.uno.so
> /usr/bin/bash: line 1: 13499 Segmentation Fault
> LD_LIBRARY_PATH=/build/apache-build/ooo/main/solver/340/unxsols4.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
> /build/apache-b     
> uild/ooo/main/solver/340/unxsols4.pro/bin/uno -ro
> uno_services.rdb -ro uno_types.rdb -s
> com.sun.star.test.bridge.BridgeTest --
> com.sun.star.test.bridge.CppTestObject
> dmake:  Error code 139, while making 'runtest'
> 
> 
> *Workaround*
> 
> Diff: http://www.adfinis-sygroup.ch/aoo/bridgetest_diff.txt
> 
> A proper fix would be nice.
> 
> 
> slideshow
> ---------
> This module failed to build. Solution:
> Either remove line 37 in
> apache-build/ooo/main/slideshow/source/engine/makefile.mk
> ("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)
> 
> 
> coinmp
> ------
> 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.
> 
> *Workaround*
> 1. Comment out lines 113-146 in
> ooo/ext_libraries/coinmp/unxsols4.pro/misc/build/CoinMP-1.6.0/CoinMP/src/CoinMP.h
> 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.
> 
> 
> vcl
> ---
> We also run into this issue:
> [ build LNK ] Library/libvclplug_gtk.so
> Undefined             
>          first referenced
>  symbol             
>            
>    in file
> g_thread_init
> /build/apache-build/ooo/main/solver/340/unxsols4.pro/workdir/CxxObject/vcl/unx/gtk/app/gtkinst.o
> ld: fatal: symbol referencing errors. No output written to
> /build/apache-build/ooo/main/solver/340/unxsols4.pro/workdir/LinkTarget/Library/libvclplug_gtk.so
> gmake: ***
> [/build/apache-build/ooo/main/solver/340/unxsols4.pro/workdir/LinkTarget/Library/libvclplug_gtk.so]
> Error 2
> dmake:  Error code 2, while making 'all'
> 
> *Solution*
> 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
> Denis
> 
> -- 
> Adfinis SyGroup AG
> Denis Simonet, Software Engineer
> 
> Keltenstrasse 98 | CH-3018 Bern
> Tel. 031 550 31 11
> 
> 

Mime
View raw message