Issue 74788 - oof680-m8 compile error with system STL
Summary: oof680-m8 compile error with system STL
Status: CLOSED DUPLICATE of issue 73728
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Stephan Bergmann
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-22 18:45 UTC by bero
Modified: 2007-02-23 08:54 UTC (History)
1 user (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Fix (578 bytes, patch)
2007-02-22 19:03 UTC, bero
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description bero 2007-02-22 18:45:24 UTC
When building oof680-m8 with system STL (from gcc 4.2; didn't try any other 
version) instead of stlport, it barfs on 
desktop/source/deployment/gui/dp_gui_updatedialog.cxx:

Making: ../../../unxlngi6.pro/slo/dp_gui_updatedialog.obj
g++ -fmessage-length=0 -c -O2 -Os -fno-omit-frame-pointer -fweb -frename-registers -fno-strict-aliasing   -D_FILE_OFFSET_BITS=64 -I.  -I../../../unxlngi6.pro/inc/deploymentgui -I../inc -I../../../inc/pch -I../../../inc -I../../../unx/inc -I../../../unxlngi6.pro/inc -I. -I/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/stl -I/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/external -I/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc -I/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solenv/unxlngi6/inc -I/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solenv/inc -I/usr/src/ark/BUILD/ooo-build/build/oof680-m8/res -I/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/stl -I/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solenv/inc/Xp31 -I/usr/include -I/usr/include     -I/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/offuh -I. -I../../../res -I. -O2 -Os -fno-omit-frame-pointer -fweb -frename-registers -pipe -march=i686 -mtune=i686 -fvisibility-inlines-hidden -Wall -Wextra -Wendif-labels -Wshadow -Wno-ctor-dtor-privacy     -Wno-non-virtual-dtor   -fpic -DLINUX -DUNX -DVCL -DGCC -DC341 -DINTEL -DCVER=C341 -DNPTL -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/lib/gcc/i586-ark-linux/4.2.0/../../../../include/c++/4.2.0 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA -DOOF680=OOF680   -DSHAREDLIB -D_DLL_  -DMULTITHREAD -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON  -o ../../../unxlngi6.pro/slo/dp_gui_updatedialog.o /usr/src/ark/BUILD/ooo-build/build/oof680-m8/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
In file included 
from /usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/cppuhelper/implbase1.hxx:42,
                 
from /usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/svtools/transfer.hxx:54,
                 
from /usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/svtools/svlbox.hxx:73,
                 
from /usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/svtools/svlbitm.hxx:52,
                 
from /usr/src/ark/BUILD/ooo-build/build/oof680-m8/desktop/source/deployment/gui/dp_gui_updatedialog.cxx:85:
/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/rtl/instance.hxx: 
In static member function 'static Inst*<unnamed>::rtl_Instance<Inst, InstCtor, 
Guard, GuardCtor, Data, DataCtor>::create(InstCtor, GuardCtor)':
/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/rtl/instance.hxx:305: 
warning: empty body in an else-statement
/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/rtl/instance.hxx: 
In static member function 'static Inst*<unnamed>::rtl_Instance<Inst, InstCtor, 
Guard, GuardCtor, Data, DataCtor>::create(InstCtor, GuardCtor, DataCtor)':
/usr/src/ark/BUILD/ooo-build/build/oof680-m8/solver/680/unxlngi6.pro/inc/rtl/instance.hxx:329: 
warning: empty body in an else-statement
/usr/src/ark/BUILD/ooo-build/build/oof680-m8/desktop/source/deployment/gui/dp_gui_updatedialog.cxx: 
In member function 'void dp_gui::UpdateDialog::Thread::handle(const 
com::sun::star::uno::Reference<com::sun::star::deployment::XPackage>&, const 
com::sun::star::uno::Reference<com::sun::star::deployment::XPackageManager>&, 
std::multimap<rtl::OUString, dp_gui::UpdateDialog::Thread::Entry, 
std::less<rtl::OUString>, std::allocator<std::pair<const rtl::OUString, 
dp_gui::UpdateDialog::Thread::Entry> > >*) const':
/usr/src/ark/BUILD/ooo-build/build/oof680-m8/desktop/source/deployment/gui/dp_gui_updatedialog.cxx:498: 
error: 'data_type' is not a member of 'std::multimap<rtl::OUString, 
dp_gui::UpdateDialog::Thread::Entry, std::less<rtl::OUString>, 
std::allocator<std::pair<const rtl::OUString, 
dp_gui::UpdateDialog::Thread::Entry> > >'
/usr/src/ark/BUILD/ooo-build/build/oof680-m8/desktop/source/deployment/gui/dp_gui_updatedialog.cxx:498: 
error: 'data_type' is not a member of 'std::multimap<rtl::OUString, 
dp_gui::UpdateDialog::Thread::Entry, std::less<rtl::OUString>, 
std::allocator<std::pair<const rtl::OUString, 
dp_gui::UpdateDialog::Thread::Entry> > >'
/usr/src/ark/BUILD/ooo-build/build/oof680-m8/desktop/source/deployment/gui/dp_gui_updatedialog.cxx:498: 
error: template argument 2 is invalid
dmake:  Error code 1, while 
making '../../../unxlngi6.pro/slo/dp_gui_updatedialog.obj'
'---* tg_merge.mk *---'
Comment 1 bero 2007-02-22 18:56:01 UTC
GNU libstdc++'s equivalent of stlport's data_type is called mapped_type.


There's also value_type, which is defined as std::pair<const key_type, 
mapped_type>. value_type seems to be part of the standard and portable at 
least across libstdc++ and STLport (and it's even takes a couple of bytes off 
the original code ;) ).
Comment 2 bero 2007-02-22 19:03:00 UTC
Created attachment 43285 [details]
Fix
Comment 3 Mathias_Bauer 2007-02-23 08:37:01 UTC
Thanks for the patch. I forward it to Stephan who is an expert for things like
these.
Comment 4 Stephan Bergmann 2007-02-23 08:53:40 UTC
Same as issue 73728 (on not-yet integrated
<http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=SRC680%2Fsb69>), fixed
as desktop/source/deployment/gui/dp_gui_updatedialog.cxx:1.3.6.1.  Sorry for the
inconveniences.

*** This issue has been marked as a duplicate of 73728 ***
Comment 5 Stephan Bergmann 2007-02-23 08:54:34 UTC
.