[OpenIndiana-discuss] Compiling OpenOffice4
Peter Tribble
peter.tribble at gmail.com
Thu Feb 6 12:46:32 UTC 2014
On Thu, Feb 6, 2014 at 12:33 PM, Hans J. Albertsson <
hans.j.albertsson at branneriet.se> wrote:
> I'd have thought a SIGSEGV immediately on startup indicates a problem with
> the compilers and/or library sets used???
>
It looks like:
#0 0x087056ac in ?? ()
#1 0xfdd1eed1 in
ucbhelper::cancelCommandExecution(com::sun::star::ucb::IOErrorCode,
com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&,
com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>
const&, rtl::OUString const&,
com::sun::star::uno::Reference<com::sun::star::ucb::XCommandProcessor>
const&) ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libucbhelper.so
#2 0xf7ba28dc in fileaccess::throw_handler(long, long,
com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>
const&, rtl::OUString const&, fileaccess::BaseContent*, bool) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libucpfile1.so
#3 0xf7bcce1f in fileaccess::TaskManager::endTask(long, rtl::OUString
const&, fileaccess::BaseContent*) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libucpfile1.so
#4 0xf7b94057 in fileaccess::BaseContent::endTask(long) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libucpfile1.so
#5 0xf7b9860c in
fileaccess::BaseContent::execute(com::sun::star::ucb::Command const&, long,
com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>
const&) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libucpfile1.so
#6 0xfdd0e05b in
ucbhelper::Content_Impl::executeCommand(com::sun::star::ucb::Command
const&) ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libucbhelper.so
#7 0xfdd104d5 in
ucbhelper::Content::getPropertyValuesInterface(com::sun::star::uno::Sequence<rtl::OUString>
const&) ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libucbhelper.so
#8 0xfdd1136d in
ucbhelper::Content::getPropertyValues(com::sun::star::uno::Sequence<rtl::OUString>
const&) ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libucbhelper.so
#9 0xfdd1339a in ucbhelper::Content::getPropertyValue(rtl::OUString
const&) ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libucbhelper.so
#10 0xfdd15786 in ucbhelper::Content::isFolder() ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libucbhelper.so
#11 0xfecaf656 in dp_misc::create_ucb_content(ucbhelper::Content*,
rtl::OUString const&,
com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>
const&, bool) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libdeploymentmisclo.so
#12 0xf7a439aa in dp_registry::backend::component::(anonymous
namespace)::BackendImpl::unorc_verify_init(com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>
const&) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libdeployment.so
#13 0xf7a455a3 in
boost::detail::function::function_obj_invoker3<comphelper::service_decl::detail::CreateFunc<comphelper::service_decl::detail::ServiceImpl<dp_registry::backend::component::(anonymous
namespace)::BackendImpl>,
comphelper::service_decl::detail::PostProcessDefault<comphelper::service_decl::detail::ServiceImpl<dp_registry::backend::component::(anonymous
namespace)::BackendImpl> >, comphelper::service_decl::with_args<true> >,
com::sun::star::uno::Reference<com::sun::star::uno::XInterface>,
comphelper::service_decl::ServiceDecl const&,
com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&,
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&>::invoke(boost::detail::function::function_buffer&,
comphelper::service_decl::ServiceDecl const&,
com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&,
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libdeployment.so
#14 0xfe7723bb in
comphelper::service_decl::ServiceDecl::Factory::createInstanceWithArgumentsAndContext(com::sun::star::uno::Sequence<com::sun::star::uno::Any>
const&,
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) () from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libcomphelper.so
#15 0xfeaa9b09 in (anonymous
namespace)::FactoryWrapper::createInstanceWithArgumentsAndContext(com::sun::star::uno::Sequence<com::sun::star::uno::Any>
const&,
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&)
()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/ure/lib/libuno_cppuhelpergcc3.so.3
#16 0xf7a742ce in dp_registry::create(rtl::OUString const&, rtl::OUString
const&, bool,
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libdeployment.so
#17 0xf7a2ab91 in dp_manager::PackageManagerImpl::initRegistryBackends() ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libdeployment.so
#18 0xf7a34d17 in
dp_manager::PackageManagerImpl::create(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&, rtl::OUString const&)
()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libdeployment.so
#19 0xf7a39d43 in
dp_manager::factory::PackageManagerFactoryImpl::getPackageManager(rtl::OUString
const&) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libdeployment.so
#20 0xf7a17c55 in dp_manager::ExtensionManager::getUserRepository() ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libdeployment.so
#21 0xf7a1ad64 in
dp_manager::ExtensionManager::getPackageManager(rtl::OUString const&) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libdeployment.so
#22 0xf7a20967 in
dp_manager::ExtensionManager::reinstallDeployedExtensions(unsigned char,
rtl::OUString const&,
com::sun::star::uno::Reference<com::sun::star::task::XAbortChannel> const&,
com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>
const&) ()
from
/var/tmp/ud/libreoffice-4.2.0.4/instdir/program/../program/libdeployment.so
#23 0xfeebe27f in desktop::Desktop::SynchronizeExtensionRepositories() ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libsofficeapp.so
#24 0xfeeaec01 in desktop::Desktop::Main() ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libsofficeapp.so
#25 0xfcb97022 in ImplSVMain() ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libvcllo.so
#26 0xfcb97050 in SVMain() ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libvcllo.so
#27 0xfeedb385 in soffice_main ()
from /var/tmp/ud/libreoffice-4.2.0.4/instdir/program/libsofficeapp.so
#28 0x0804897d in main ()
> What compiler(s) and libraries and other stuff are you using for
> LibreOffice?
>
This is with gcc 4.7.3, gnu ld (you can use regular ld with additional
changes, but that didn't make any difference for previous versions).
I'm building clucene, icu, boost, and harfbuzz separately. Largely
because it's easier to do so and fix their bugs than to get LibreOffice
to build them correctly. But other than that:
env PATH=/usr/gnu/bin:$PATH ./configure
--prefix=/usr/versions/libreoffice-4204 --with-system-hunspell
--with-system-curl --with-system-libpng --with-system-clucene
--with-system-libxml --with-system-jpeg=no --with-system-cairo
--with-system-harfbuzz --with-gnu-cp=/usr/gnu/bin/cp
--with-gnu-patch=/usr/gnu/bin/patch --disable-gconf --without-doxygen
--with-system-openssl --with-system-nss --disable-python
--with-system-boost --with-system-expat --with-system-zlib
--with-system-poppler --disable-postgresql-sdbc --with-system-icu
--with-system-neon --disable-odk --disable-firebird-sdbc --without-junit
--disable-gio --with-jdk-home=/usr/jdk/latest
env
LD_LIBRARY_PATH=/usr/lib/mps:`pwd`/instdir/ure/lib:`pwd`/instdir/sdk/lib:`pwd`/instdir/program
LD_ALTEXEC=/usr/gnu/bin/ld PATH=/usr/gnu/bin:$PATH /usr/gnu/bin/make build
I'll try and get the (minimalist) patches up to github, once I work out
what's changed.
> On 2014-02-06 11:11, Peter Tribble wrote:
>
>> On Wed, Feb 5, 2014 at 5:07 PM, Apostolos Syropoulos
>> <asyropoulos at yahoo.com>wrote:
>>
>> Hello,
>>>
>>> I have compiled OpenOffice 4.1.0 and I have posted to
>>>
>>> https://asyropoulos.wordpress.com/2014/02/05/compiling-openoffice4/
>>>
>>> my compilation notes. BTW, I have used GCC 4.8.2 and GNU ld. BTW,
>>>
>>> I had tried to compile LibreOffice but it is worse than OpenOffice
>>> when it comes to Solaris support...
>>>
>>> Oh I don't know. I can trivially compile LibreOffice 4, patches are
>> pretty minimal at this point. Unfortunately, I always get a SIGSEGV
>> immediately on startup, so there's some strange bug I've so far
>> failed to track down.
>>
>>
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
--
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
More information about the OpenIndiana-discuss
mailing list