[RFC] x11 / cairo-less build try #3

Riccardo Magliocchetti riccardo.magliocchetti at gmail.com
Wed Feb 15 08:55:20 PST 2012


Hello,

this is another update on building libreoffice without need to link
against X11 or toolkits in general. The aim is to ease the deploy
server side where less dependencies needed the better.

As you can see the vcl/headless/headlessinst.cxx has been shamelessly
copied from Android, you can see still some #if 0-ed code because i'd
like to have soffice.bin run without crashing to assure myself that the
code is not needed :)

The salplug changes probably are not needed anymore, the #if 0 in
tests are asserts that does not look regressions i've introduced.

Michael i've not forgot about cleaning up Library_vcl.mk :)

Now that everything builds at runtime it fails at runtime, looking
around cli_ure/source/climaker/climaker_app.cxx:476 does not show something obvious, any hint?

$ ./soffice.bin 
terminate called after throwing an instance of 'com::sun::star::loader::CannotActivateFactoryException'
Aborted (core dumped)

#0  0x00007f667248c3a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
        resultvar = 0
        pid = <optimized out>
        selftid = <optimized out>
#1  0x00007f667248fb0b in __GI_abort () at abort.c:92
        save_stage = 2
        act = Traceback (most recent call last):
  File "/home/rm/src/libo/solenv/gdb/libreoffice/util/printing.py", line 123, in __call__
    printer = self.func_lookup[val.type]
  File "/home/rm/src/libo/solenv/gdb/libreoffice/util/printing.py", line 95, in __getitem__
    if test(type):
  File "/home/rm/src/libo/solenv/gdb/libreoffice/svl.py", line 89, in query
    ushort = gdb.lookup_type('sal_uInt16')
RuntimeError: No type named sal_uInt16.

{__sigaction_handler = {sa_handler = 0x7f66718953e8, sa_sigaction = 0x7f66718953e8}, sa_mask = {__val = {140077991596032, 140077980568480, 140077991642384, 0, 0, 4294967295, 0, 4294967295, 21604336, 3081480, 140077984313000, 
              3080456, 0, 140736328301984, 21603536, 140077973037056}}, sa_flags = 1926090676, sa_restorer = 0x5}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007f6671de9d7d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#3  0x00007f6671de7f26 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#4  0x00007f6671de7f53 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#5  0x00007f6671de804e in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#6  0x00007f66710795c7 in cppu::loadSharedLibComponentFactory(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&, com::sun::star::uno::Reference<com::sun::star::registry::XRegistryKey> const&, rtl::OUString const&) () from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3
No symbol table info available.
#7  0x00007f66692ec382 in stoc_loader::DllComponentLoader::activate(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::registry::XRegistryKey> const&) ()
   from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/ure/lib/bootstrap.uno.so
No symbol table info available.
#8  0x00007f6671031225 in ?? () from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3
No symbol table info available.
#9  0x00007f66710317fd in ?? () from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3
No symbol table info available.
#10 0x00007f66692ac832 in stoc_smgr::OServiceManager::createInstanceWithArgumentsAndContext(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) () from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/ure/lib/bootstrap.uno.so
No symbol table info available.
#11 0x00007f66692a9284 in stoc_smgr::OServiceManager::createInstanceWithArguments(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) ()
   from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/ure/lib/bootstrap.uno.so
No symbol table info available.
#12 0x00007f667280ea63 in ?? () from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/program/libsofficeapp.so
No symbol table info available.
#13 0x00007f6672814390 in ?? () from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/program/libsofficeapp.so
No symbol table info available.
#14 0x00007f666e744b69 in ?? () from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/program/libvcllo.so
No symbol table info available.
#15 0x00007f666e745495 in SVMain() () from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/program/libvcllo.so
No symbol table info available.
#16 0x00007f6672845325 in soffice_main () from /home/rm/src/libo/solver/unxlngx6.pro/installation/opt/program/libsofficeapp.so

thanks

-- 
Riccardo Magliocchetti


More information about the LibreOffice mailing list