From:
[email protected]
Package: blackbox
Severity: normal
Tags: patch
When building 'blackbox' with gcc-3.4 I get the following error:
make[3]: Leaving directory `/blackbox-0.65.0/nls'
Making all in src
make[3]: Entering directory `/blackbox-0.65.0/src'
c++ -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE -DNDEBUG -DNLS -DTIMEDCACHE -DLOCALEPATH=\"/usr/share/blackbox/nls\" -DDEFAULTMENU=\"/etc/X11/blackbox/blackbox-menu\" -DDEFAULTSTYLE=\"/usr/share/blackbox/styles/Results\" -O2 -fno-rtti -fno-exceptions -fno-
check-new -Wall -W -pedantic -c BaseDisplay.cc
In file included from BaseDisplay.hh:39,
from BaseDisplay.cc:85:
Timer.hh: In member function `void _timer_queue<_Tp, _Sequence, _Compare>::release(const _Tp&)':
Timer.hh:101: error: `c' undeclared (first use this function)
Timer.hh:101: error: (Each undeclared identifier is reported only once for each function it appears in.)
Timer.hh:103: error: `comp' undeclared (first use this function)
Timer.hh:103: error: no matching function for call to `make_heap(<type error>, <type error>, <type error>)'
Timer.hh: At global scope:
Timer.hh:100: warning: unused parameter 'value'
make[3]: *** [BaseDisplay.o] Error 1
make[3]: Leaving directory `/blackbox-0.65.0/src'
With the attached patch 'blackbox' can be compiled using gcc-3.4.
Regards
Andreas Jochens
diff -urN ../tmp-orig/blackbox-0.65.0/src/Timer.hh ./src/Timer.hh
--- ../tmp-orig/blackbox-0.65.0/src/Timer.hh 2002-08-23 20:50:54.000000000 +0200
+++ ./src/Timer.hh 2004-08-18 16:29:11.667330961 +0200
@@ -98,9 +98,9 @@
~_timer_queue(void) {}
void release(const _Tp& value) {
- c.erase(std::remove(c.begin(), c.end(), value), c.end());
+ this->c.erase(std::remove(this->c.begin(), this->c.end(), value), this->c.end());
// after removing the item we need to make the heap again
- std::make_heap(c.begin(), c.end(), comp);
+ std::make_heap(this->c.begin(), this->c.end(), this->comp);
}
bool empty(void) const { return _Base::empty(); }
size_t size(void) const { return _Base::size(); }
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)