Error building sc on XStreamOS/illumos

Kohei Yoshida kohei.yoshida at suse.de
Thu Jul 18 05:11:02 PDT 2013


On 07/18/2013 03:12 AM, Gabriele Bulfon wrote:
> Hi,
>
> building went on after setup_native, and I got an error while building sc:
>
> In file included from 
> /sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/sc/inc/column.hxx:28,
> from 
> /sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/sc/inc/table.hxx:28,
> from 
> /sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/sc/source/core/data/bcaslot.cxx:30:
> /sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/sc/inc/mtvelements.hxx:66: 
> error: wrong number of template arguments (2, should be 1)
> /usr/include/mdds/multi_type_vector_custom_func1.hpp:40: error: 
> provided for 'template<class _Block> struct mdds::mtv::custom_block_func1'
> /sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/sc/inc/mtvelements.hxx:66: 
> error: invalid type in declaration before ';' token
> /sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/sc/inc/mtvelements.hxx:70: 
> error: wrong number of template arguments (2, should be 1)
> /usr/include/mdds/multi_type_vector_custom_func1.hpp:40: error: 
> provided for 'template<class _Block> struct mdds::mtv::custom_block_func1'
>
> what's wrong?

You are probably using mdds 0.9.0 to build the 4.1 branch.  You need to 
either downgrade it to 0.8.1 (which you can easily by specifying 
--without-system-mdds), or patch mtvelements.hxx to get it to build with 
mdds 0.9.0.  Patching should be easy; all you have to do is to remove 
the block type ID's from the template arguments i.e. making the 
following change

diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx

index 1628381..037ec6b 100644

--- a/sc/inc/mtvelements.hxx

+++ b/sc/inc/mtvelements.hxx

@@ -63,11 +63,11 @@ MDDS_MTV_DEFINE_ELEMENT_CALLBACKS_PTR(SvtBroadcaster, sc::element_type_broadcast

  namespace sc {

  

  // Broadcaster storage container

-typedef mdds::mtv::custom_block_func1<sc::element_type_broadcaster, sc::custom_broadcaster_block> BCBlkFunc;

+typedef mdds::mtv::custom_block_func1<sc::custom_broadcaster_block> BCBlkFunc;

  typedef mdds::multi_type_vector<BCBlkFunc> BroadcasterStoreType;

  

  // Cell text attribute container.

-typedef mdds::mtv::custom_block_func1<sc::element_type_celltextattr, sc::custom_celltextattr_block> CTAttrFunc;

+typedef mdds::mtv::custom_block_func1<sc::custom_celltextattr_block> CTAttrFunc;

  typedef mdds::multi_type_vector<CTAttrFunc> CellTextAttrStoreType;

  

  /**


should make the 4.1 branch build with 0.9.0.

HTH,

Kohei

-- 
Kohei Yoshida, LibreOffice Calc hacker, SUSE.



More information about the LibreOffice mailing list