Issue 16718 - TOOLS: gcc 3.3.1 compile errors
Summary: TOOLS: gcc 3.3.1 compile errors
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Martin Hollmichel
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks: 13400
  Show dependency tree
 
Reported: 2003-07-11 13:15 UTC by foskey
Modified: 2003-07-31 02:29 UTC (History)
2 users (show)

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


Attachments
This patch works, requires expert attention. (1.99 KB, patch)
2003-07-22 16:55 UTC, foskey
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description foskey 2003-07-11 13:15:51 UTC
/data2/office/tools/source/fsys/dirent.cxx: In member function `DirEntry*
DirEntryStack::Pop()':
/data2/office/tools/source/fsys/dirent.cxx:342: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/source/fsys/dirent.cxx: In member function `DirEntry*
DirEntryStack::Top()':
/data2/office/tools/source/fsys/dirent.cxx:347: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/source/fsys/dirent.cxx: In destructor
`DirEntryStack::~DirEntryStack()':
/data2/office/tools/source/fsys/dirent.cxx:371: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/source/fsys/dirent.cxx: In constructor
`DirEntry::DirEntry(const String&, FSysPathStyle)':
/data2/office/tools/source/fsys/dirent.cxx:941: warning: comparison between
`enum osl::FileBase::RC' and `enum oslFileError'
if ( -e ../../unxlngi4.pro/obj/dirent.o) touch ../../unxlngi4.pro/obj/dirent.obj
------------------------------
Making: ../../unxlngi4.pro/slo/dirent.obj
ccache g++-3.3 -fmessage-length=0 -c -I.  -I. -I../inc -I../../inc
-I../../unx/inc -I../../unxlngi4.pro/inc -I.
-I/data2/office/solver/645/unxlngi4.pro/inc/stl
-I/data2/office/solver/645/unxlngi4.pro/inc/external
-I/data2/office/solver/645/unxlngi4.pro/inc -I/data2/office/solenv/unxlngi4/inc
-I/data2/office/solenv/inc -I/data2/office/res
-I/data2/office/solver/645/unxlngi4.pro/inc/stl -I/data2/office/solenv/inc/Xp31
-I/opt/jdk/include -I/opt/jdk/include/linux
-I/opt/jdk/include/native_threads/include -I/usr/X11R6/include     -I.
-I../../res -I. -O3   -pipe -mcpu=pentiumpro -fno-for-scope -fpermissive
-fno-rtti -include preinclude.h -fexceptions -fno-enforce-eh-specs  -fexceptions
 -fpic -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE
-DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1
-DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8639
-DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON
-DCUI -DSOLAR_JAVA -DSRX645  -DSHAREDLIB -D_DLL_  -DMULTITHREAD   -o
../../unxlngi4.pro/slo/dirent.o /data2/office/tools/source/fsys/dirent.cxx
/data2/office/tools/source/fsys/dirent.cxx: In member function `DirEntry*
DirEntryStack::Pop()':
/data2/office/tools/source/fsys/dirent.cxx:342: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/source/fsys/dirent.cxx: In member function `DirEntry*
DirEntryStack::Top()':
/data2/office/tools/source/fsys/dirent.cxx:347: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/source/fsys/dirent.cxx: In destructor
`DirEntryStack::~DirEntryStack()':
/data2/office/tools/source/fsys/dirent.cxx:371: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/source/fsys/dirent.cxx: In constructor
`DirEntry::DirEntry(const String&, FSysPathStyle)':
/data2/office/tools/source/fsys/dirent.cxx:941: warning: comparison between
`enum osl::FileBase::RC' and `enum oslFileError'
Comment 1 foskey 2003-07-11 13:17:43 UTC
/data2/office/tools/source/communi/geninfo.cxx: In destructor
`GenericInformationList::~GenericInformationList()':
/data2/office/tools/source/communi/geninfo.cxx:156: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx: In member function
`GenericInformation* GenericInformationList::Search(ULONG&,
ByteString, long unsigned int, long unsigned int)':
/data2/office/tools/source/communi/geninfo.cxx:168: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx: In member function
`GenericInformation* GenericInformationList::GetInfo(ByteString&,
unsigned char, unsigned char)':
/data2/office/tools/source/communi/geninfo.cxx:217: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx: In member function
`ULONG GenericInformationList::InsertSorted(GenericInformation*,
unsigned char, long unsigned int, long unsigned int)':
/data2/office/tools/source/communi/geninfo.cxx:251: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx:259: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx:300: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx: In member function
`BOOL GenericInformationList::InsertInfo(GenericInformation*, unsigned
char)':
/data2/office/tools/source/communi/geninfo.cxx:327: error: cannot call
member function `ULONG Container::Count() const' without object
if ( -e ../../unxlngi4.pro/obj/geninfo.o) touch
../../unxlngi4.pro/obj/geninfo.obj
------------------------------
Making: ../../unxlngi4.pro/slo/geninfo.obj
ccache g++-3.3 -fmessage-length=0 -c -I.  -I. -I../inc -I../../inc
-I../../unx/inc -I../../unxlngi4.pro/inc -I.
-I/data2/office/solver/645/unxlngi4.pro/inc/stl
-I/data2/office/solver/645/unxlngi4.pro/inc/external
-I/data2/office/solver/645/unxlngi4.pro/inc
-I/data2/office/solenv/unxlngi4/inc -I/data2/office/solenv/inc
-I/data2/office/res -I/data2/office/solver/645/unxlngi4.pro/inc/stl
-I/data2/office/solenv/inc/Xp31 -I/opt/jdk/include
-I/opt/jdk/include/linux -I/opt/jdk/include/native_threads/include
-I/usr/X11R6/include     -I. -I../../res -I. -O3   -pipe
-mcpu=pentiumpro -fno-for-scope -fpermissive -fno-rtti -include
preinclude.h -fno-exceptions   -fpic -DLINUX -DUNX -DVCL -DGCC -DC300
-DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS
-D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400
-D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8639 -DPRODUCT
-DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE
-DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645  -DSHAREDLIB -D_DLL_ 
-DMULTITHREAD   -o ../../unxlngi4.pro/slo/geninfo.o
/data2/office/tools/source/communi/geninfo.cxx
/data2/office/tools/source/communi/geninfo.cxx: In destructor
`GenericInformationList::~GenericInformationList()':
/data2/office/tools/source/communi/geninfo.cxx:156: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx: In member function
`GenericInformation* GenericInformationList::Search(ULONG&,
ByteString, long unsigned int, long unsigned int)':
/data2/office/tools/source/communi/geninfo.cxx:168: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx: In member function
`GenericInformation* GenericInformationList::GetInfo(ByteString&,
unsigned char, unsigned char)':
/data2/office/tools/source/communi/geninfo.cxx:217: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx: In member function
`ULONG GenericInformationList::InsertSorted(GenericInformation*,
unsigned char, long unsigned int, long unsigned int)':
/data2/office/tools/source/communi/geninfo.cxx:251: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx:259: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx:300: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/communi/geninfo.cxx: In member function
`BOOL GenericInformationList::InsertInfo(GenericInformation*, unsigned
char)':
/data2/office/tools/source/communi/geninfo.cxx:327: error: cannot call
member function `ULONG Container::Count() const' without object
Comment 2 foskey 2003-07-11 13:18:30 UTC
/data2/office/tools/source/inet/inetmime.cxx:3018: warning: comparison
is always true due to limited range of data type
/data2/office/tools/source/inet/inetmime.cxx:3024: warning: comparison
is always true due to limited range of data type
/data2/office/tools/source/inet/inetmime.cxx: In member function `void
INetContentTypeParameterList::Clear()':
/data2/office/tools/source/inet/inetmime.cxx:4528: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/inet/inetmime.cxx:4529: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/source/inet/inetmime.cxx: In member function
`const INetContentTypeParameter*
INetContentTypeParameterList::find(const ByteString&) const':
/data2/office/tools/source/inet/inetmime.cxx:4536: error: cannot call
member function `ULONG Container::Count() const' without object
Comment 3 foskey 2003-07-11 13:19:11 UTC
/data2/office/tools/source/ref/pstm.cxx: In copy constructor
`SuperSvPersistBaseMemberList::SuperSvPersistBaseMemberList(const
SuperSvPersistBaseMemberList&)':
/data2/office/tools/source/ref/pstm.cxx:96: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/source/ref/pstm.cxx: In member function `void
SvPersistBaseMemberList::WriteObjects(SvPersistStream&, unsigned char)
const':
/data2/office/tools/source/ref/pstm.cxx:115: error: cannot call member
function `ULONG Container::Count() const' without object
Comment 4 foskey 2003-07-11 13:22:24 UTC
/data2/office/tools/source/ref/ref.cxx: In copy constructor
`SvRefBaseMemberList::SvRefBaseMemberList(const SvRefBaseMemberList&)':
/data2/office/tools/source/ref/ref.cxx:67: error: cannot call member
function `ULONG Container::Count() const' without object


/data2/office/tools/source/ref/ref.cxx: In copy constructor
`SvRefBaseMemberList::SvRefBaseMemberList(const SvRefBaseMemberList&)':
/data2/office/tools/source/ref/ref.cxx:67: error: cannot call member
function `ULONG Container::Count() const' without object

/data2/office/tools/bootstrp/prj.hxx: In member function `void
PrjList::ClearAndDelete()':
/data2/office/tools/bootstrp/prj.hxx:220: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.hxx: In member function `void
StarList::ClearAndDelete()':
/data2/office/tools/bootstrp/prj.hxx:270: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/mkcreate.cxx: In destructor
`SourceDirectoryList::~SourceDirectoryList()':
/data2/office/tools/bootstrp/mkcreate.cxx:1055: error: cannot call
member function `ULONG Container::Count() const' without object


/data2/office/tools/bootstrp/prj.hxx:220: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.hxx: In member function `void
StarList::ClearAndDelete()':
/data2/office/tools/bootstrp/prj.hxx:270: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.cxx: In member function `CommandData*
Prj::GetDirectoryData(ByteString)':
/data2/office/tools/bootstrp/prj.cxx:335: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.cxx: In member function `CommandData*
Prj::RemoveDirectory(ByteString)':
/data2/office/tools/bootstrp/prj.cxx:458: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.cxx: In member function `void
Star::Expand_Impl()':
/data2/office/tools/bootstrp/prj.cxx:776: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.cxx:777: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.cxx: In member function `BOOL
Star::HasProject(ByteString)':
/data2/office/tools/bootstrp/prj.cxx:983: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.cxx: In member function `Prj*
Star::GetPrj(ByteString)':
/data2/office/tools/bootstrp/prj.cxx:999: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.cxx: In member function `USHORT
StarWriter::Write(String)':
/data2/office/tools/bootstrp/prj.cxx:1328: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.cxx: In member function `USHORT
StarWriter::WriteMultiple(String)':
/data2/office/tools/bootstrp/prj.cxx:1347: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.cxx: In member function `void
StarWriter::InsertTokenLine(ByteString&)':
/data2/office/tools/bootstrp/prj.cxx:1407: error: cannot call member
function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/prj.cxx: In member function `Prj*
StarWriter::RemoveProject(ByteString)':
/data2/office/tools/bootstrp/prj.cxx:1597: error: cannot call member
function `ULONG Container::Count() const' without object


/data2/office/tools/bootstrp/sstring.cxx: In member function `ULONG
SByteStringList::GetPrevString(ByteString*)':
/data2/office/tools/bootstrp/sstring.cxx:105: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/sstring.cxx: In member function `ULONG
SByteStringList::PutString(ByteString*)':
/data2/office/tools/bootstrp/sstring.cxx:148: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/sstring.cxx: In member function
`ByteString* SByteStringList::RemoveString(const ByteString&)':
/data2/office/tools/bootstrp/sstring.cxx:179: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/sstring.cxx: In member function `ULONG
SUniStringList::GetPrevString(String*)':
/data2/office/tools/bootstrp/sstring.cxx:234: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/sstring.cxx: In member function `ULONG
SUniStringList::PutString(String*)':
/data2/office/tools/bootstrp/sstring.cxx:277: error: cannot call
member function `ULONG Container::Count() const' without object
/data2/office/tools/bootstrp/sstring.cxx: In member function `String*
SUniStringList::RemoveString(const String&)':
/data2/office/tools/bootstrp/sstring.cxx:308: error: cannot call
member function `ULONG Container::Count() const' without object

Comment 5 foskey 2003-07-11 13:28:50 UTC
./unxlngi4.pro/slo/factory.o /data2/office/sot/source/base/factory.cxx
In file included from /data2/office/sot/source/base/factory.cxx:68:
../../inc/object.hxx: In copy constructor
`SotObjectMemberList::SotObjectMemberList(const SotObjectMemberList&)':
../../inc/object.hxx:502: error: cannot call member function `ULONG
Container::Count() const' without object


Comment 6 Martin Hollmichel 2003-07-11 14:49:31 UTC
mh->waratah: what compiler do you use? I don't think that this error
can be serious ;).
Comment 7 foskey 2003-07-21 06:14:46 UTC
As the issue says gcc 3.3.1 which is due to release in two weeks.
Comment 8 nikolai.pretzell 2003-07-21 12:04:35 UTC
May be a helpful comment:

The problem is in tools/inc/list.hxx, line 87:
-	Container::Count;
+       using Container::Count;
(All those declarations above and below that line need to be fixed.)

However the error message of gcc is not really saying this. :-(
Access declarations without using are obsolete and gcc 3.3.1 seems to
no longer support them.

Regards from Nikolai  

Comment 9 foskey 2003-07-22 16:55:53 UTC
Created attachment 7930 [details]
This patch works,  requires expert attention.
Comment 10 foskey 2003-07-23 15:32:10 UTC
OK after understanding the problem and what it is supposed to do, I
have raised this with gcc for them to fix.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11645
Comment 11 nikolai.pretzell 2003-07-24 11:15:06 UTC
np->waratah:

>             // make Container::Count available in derivees
>             inline void * Remove( ULONG i )
> 
>             {
>                return Container::Remove( i );
>             }
> 
>             // make Container::Count available in derivees
>             inline const ULONG Count( void )
>             {
>                return Container::Count( );
>             }

and

>                 inline const ULONG Count()								\
>                 {														\
>                    return List::Count( );								\
> 				}								

The above two insertions should not be necessary. 
Do I understand right, they are necessary due to the gcc-bug 11645,
you mentiond?

Comment 12 foskey 2003-07-24 14:14:34 UTC
This patch should NOT be required.  Waiting for revised copy of gcc to
be uploaded to debian to test this.
Comment 13 foskey 2003-07-30 13:32:58 UTC
Compiler bug now resolved.
Comment 14 foskey 2003-07-31 02:29:05 UTC
Closing