Bug#357687: FTBFS with G++ 4.1: extra qualification
Package: ivi
Version: 0.4.pre.20031121-3
Severity: important
Tags: patch
Your package fails to build with G++ 4.1. I'm filing this bug as
important for now, but when 4.1 will be the default compiler in
unstable (probably in a few weeks) I'll upgrade this to serious.
A patch is below.
> Automatic build of ivi_0.4.pre.20031121-3 on bigsur by sbuild/mips 1.106
...
> c++ -O2 -fPIC -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DWORDS_BIGENDIAN=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DWORDS_BIGENDIAN=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DSTDC_HEADERS=1 -DHAVE_PW_GECOS=1 -I/usr/include/tcl8.4 -I/usr/include/tcl8.4 -I. -I. -I./../stub_dfio -I. ./ivi_String.cc -c
> ./ivi_String.h:46: error: extra qualification 'String::' on member 'equal'
> make[3]: *** [ivi_String.o] Error 1
> make[3]: Leaving directory `/build/tbm/ivi-0.4.pre.20031121/src/common'
> make[2]: *** [subdirs] Error 1
--- ./src/common/ivi_String.h~ 2006-03-18 23:20:37.000000000 +0000
+++ ./src/common/ivi_String.h 2006-03-18 23:20:41.000000000 +0000
@@ -43,7 +43,7 @@
int equal(String *str) const;
int equal(const char *str) const;
int equal(const char *str, Uint32 len) const;
- static int String::equal(const char *str1, const char *str2);
+ static int equal(const char *str1, const char *str2);
void operator = (const String &rhs);
void operator = (const Char *str_in);
--- ./src/common/DesignDB.h~ 2006-03-18 23:21:26.000000000 +0000
+++ ./src/common/DesignDB.h 2006-03-18 23:21:37.000000000 +0000
@@ -53,7 +53,7 @@
int getSignals(TreeNode *parent, Vector<TreeNode> *sigs,
Char **patterns, Uint32 numPatterns);
- int DesignDB::tclCmdGlob(
+ int tclCmdGlob(
int argc,
char **argv
);
@@ -80,7 +80,7 @@
* - flags
* Allows user-specified search options such as -r
*********************************************************/
- Vector<TreeNode> *DesignDB::globElems(
+ Vector<TreeNode> *globElems(
TreeNode *Parent,
const char *PathSpec,
const char *elemType,
--- ./src/common/SigDB.h~ 2006-03-18 23:21:50.000000000 +0000
+++ ./src/common/SigDB.h 2006-03-18 23:22:11.000000000 +0000
@@ -68,7 +68,7 @@
/************************************************************
* addSignal()
************************************************************/
- virtual Vector<DFIOTrace> *SigDB::addSignal(Char *path);
+ virtual Vector<DFIOTrace> *addSignal(Char *path);
/************************************************************
* addClient()
@@ -106,10 +106,10 @@
************************************************************/
private:
Int32 Configure(Uint32 argc, Char **argc, Uint32 flags);
- void SigDB::addSimSignals(IviSim *sim, const char *path);
- void SigDB::addDFIOSignals(DFIO *dfio, const char *path);
+ void addSimSignals(IviSim *sim, const char *path);
+ void addDFIOSignals(DFIO *dfio, const char *path);
- static int SigDB::SDB_SimStepEnd(
+ static int SDB_SimStepEnd(
ClientData clientData,
Tcl_Interp *interp,
int objc,
--- ./src/common/StimTraceRdr.h~ 2006-03-18 23:22:32.000000000 +0000
+++ ./src/common/StimTraceRdr.h 2006-03-18 23:22:37.000000000 +0000
@@ -75,7 +75,7 @@
IviSim *sim;
- static int StimTraceRdr::DataCB(p_cb_data cb_data_p);
+ static int DataCB(p_cb_data cb_data_p);
};
#endif /* INCLUDED_STIM_TRACE_RDR_H */
--- ./src/wave_widget/WaveWidget.h~ 2006-03-18 23:22:59.000000000 +0000
+++ ./src/wave_widget/WaveWidget.h 2006-03-18 23:23:03.000000000 +0000
@@ -611,7 +611,7 @@
* Return:
* - Returns the distance between bars
******************************************************************/
- Uint32 WaveWidget::UpdateTimeScale(
+ Uint32 UpdateTimeScale(
Uint32 pixmapStartTime,
Uint32 pixmapEndTime,
Uint32 pixmapWidth);
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: