[Libreoffice] starmath / cppunit breakage in master

Pierre-André Jacquod pjacquod at alumni.ethz.ch
Mon Jan 3 23:43:31 PST 2011


Hi,

> Does setting
> #define MDDS_HASH_CONTAINER_STLPORT 1
> before
> #include <mdds/mixed_type_matrix.hpp>
> 
> help?
> 
> I also saw someone having a similar issue in the same exact spot, which
> I haven't been able to reproduce.
Maybe this is related. I had also a problem after having upgraded to mds
0.4.0 with an up to date (25.12.2010) git
At the ende, I managed to compile making a hack to 0.4.0 (very
dirty...). Since this part was outside of my understanding, I am not
able to know if the error was from my side or not...
 and since you were "on holliday" I kept it if someone also run in
trouble.  Below more explanation.

Since then, I did not recompile the whole stuff... take too long by me.:- )
regards

>> I guess this is specific to system-mdds.
> Conceptually there should be no difference whether it's system or
> internal, since mdds is just a collection of header files with no
> libraries to build or link against.  From the looks of the log file, it
> *may* have some issues with gcc 4.5.x's implementation of unordered_map,
> but I'm not sure 100%...

I have tried make clean, make distclean
I have used
./autogen.sh --with-num-cpus=2 --without-junit --disable-kde
--enable-binfilter

compiler:
gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux)

I did not success to compile, until I changed:
libo_dev/solver/330/unxlngi6.pro/inc/mdds/hash_container/map.hpp
simulating having MDDS_HASH_CONTAINER_STLPORT defined:

like this:

#else
// c++0x
#include <hash_map>
#define _mdds_unordered_map_type ::std::hash_map
//#include <unordered_map>
//#define _mdds_unordered_map_type ::std::unordered_map
#endif

Else, I got error like

Compiling: sc/source/core/tool/scmatrix.cxx
In file included from /usr/include/c++/4.5/bits/stl_algobase.h:63:0,
                 from /usr/include/c++/4.5/unordered_map:41,
                 from
/home/pjacquod/LibO_dev/libo_dev/solver/330/unxlngi6.pro/inc/mdds/hash_container/map.hpp:41,
                 from
/home/pjacquod/LibO_dev/libo_dev/solver/330/unxlngi6.pro/inc/mdds/mixed_type_matrix_flag_storage.hpp:32,
                 from
/home/pjacquod/LibO_dev/libo_dev/solver/330/unxlngi6.pro/inc/mdds/mixed_type_matrix.hpp:34,
                 from
/home/pjacquod/LibO_dev/libo_dev/clone/calc/sc/source/core/tool/scmatrix.cxx:45:
/usr/include/c++/4.5/bits/cpp_type_traits.h:78:10: error: redefinition
of 'struct _STL::__true_type'


More information about the LibreOffice mailing list