Apache OpenOffice (AOO) Bugzilla – Issue 1078
psprint/source/fontsubset/list.h conflicts with STL
Last modified: 2003-12-08 16:00:59 UTC
psprint/source/fontsubset/list.h:84 has a typedef 'list' which conflicts with libstdc++ STL, and I would expect many other STLs. % dmake cd source; dmake subdmake=true product="full" generated makefile.rc detected cd fontmanager; dmake subdmake=true subdmake="true" product="full" ------------------------------ Making: ../../unxirxm3.pro/slo/fontmanager.obj g++ -c -I. -I. -I../inc -I../../inc -I../../unx/inc -I../../unxirxm3.pro/inc - I. - I/projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/solver/632/unxirxm 3.pro/inc - I/projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/solver/632/unxirxm 3.pro/inc/external - I/projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/solenv/unxirxm3/in c -I/projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/solenv/inc - I/projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/res - I/usr/include/CC/stlport - I/projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/solenv/inc/Xp31 - I/projects/sise/openoffice/devel/workpits/java_1.2.2/usr/java//include - I/projects/sise/openoffice/devel/workpits/java_1.2.2/usr/java//include/irix - I/projects/sise/openoffice/devel/workpits/java_1.2.2/usr/java//include/native_th reads/include -I. -I../../res -I. -O2 -I../fontsubset -fno-for-scope - fpermissive -fpic -DIRIX -DUNX -DVCL -DGCC -DC295 -DMIPS -DUSE_PSPRINT - DTF_UCB -DENABLEUNICODE -DTF_FILTER -DCVER=C295 -D_USE_NAMESPACE -DVCL - D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -D__DMAKE -DUNIX - DSUPD=632 -DBUILD=6483 -DSOLAR_PLUGIN -DVCL -DSO3 -DPRODUCT -DNDEBUG - DPRODUCT_FULL -DOPTIMIZE -DEXCEPTIONS_ON -DGUI -DSRC632 -DTF_ONE51 - DSHAREDLIB -D_DLL_ -DMULTITHREAD - o ../../unxirxm3.pro/slo/fontmanager.o /projects/sise/openoffice/devel/workpits/ OO632B_GNU/workarea/psprint/source/fontmanager/fontmanager.cxx In file included from /projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/solver/632/unx irxm3.pro/inc/tools/string.hxx:7, from /projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/solver/632/unx irxm3.pro/inc/tools/urlobj.hxx:7, from /projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/psprint/source /fontmanager/fontmanager.cxx:79: /projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/solver/632/unxirxm3 .pro/inc/tools/solar.h: In function `char Abs(char)': /projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/solver/632/unxirxm3 .pro/inc/tools/solar.h:347: warning: comparison is always true due to limited range of data type In file included from ../fontsubset/sft.h:105, from /projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/psprint/source /fontmanager/fontmanager.cxx:107: ../fontsubset/list.h: At top level: ../fontsubset/list.h:84: `typedef struct _list * list' redeclared as different kind of symbol /usr/freeware/lib/gcc-lib/mips-sgi-irix6.2/2.95.2/include/g++/stl_list.h:247: previous declaration of `template <class _Tp, class _Alloc = class allocator<_Tp1> > class list<_Tp,_Alloc>' /projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/psprint/source/font manager/fontmanager.cxx: In method `int psp::PrintFontManager::addFontFile (const rtl::OString &, int)': /projects/sise/openoffice/devel/workpits/OO632B_GNU/workarea/psprint/source/font manager/fontmanager.cxx:844: confused by earlier errors, bailing out dmake: Error code 1, while making '../../unxirxm3.pro/slo/fontmanager.obj' ---* TG_SLO.MK *--- dmake: Error code 255, while making 'fontmanager' ---* TG_SLO.MK *--- dmake: Error code 255, while making 'source' ---* TG_SLO.MK *---
Created attachment 295 [details] psprint/source/fontmanager/fontmanager.cxx : Define NO_LIST to remove conflict
Created attachment 296 [details] psprint/source/printergfx/glyphset.cxx : as above
Seeing this in new 633 build. Moving to new meta bug, and correcting STL meta bug dependancy.
Herbert, your job ?
psprint/source/fontsubset looks like your "baustelle".
I checked the corresponding changes in top level. If you want a 633 branch you probably have to talk to Sander since i cannot change the OpenOffice tags. But this compile error either means that you stl is NOT in an own namespace (usually std) or your compiler has a problem with namespaces; the list in fontsubset is a C-define and therefore in global namespace.
I believe that libstdc++ prior to gcc 3.0 does have namespace problems ... and that could be the cause of this. If this breaks other builds then please pull it out, and I will dig a little deeper for a workable solution.
I don't think it will break any build. I just wanted to note that this could be a sign for a larger problem. What i wonder is that the othe gcc builds do not have this problem.
That would be because I am trying to use libstdc++ instead of STLport.
closing long since fixed issue