Bug#570848: ams: FTBFS: error: no matching function for call to 'min(qreal&, double)'

Reinhard Tartler siretart at tauware.de
Sun Feb 21 20:42:15 UTC 2010


Package: ams
Severity: serious

relevant log:

g++ -D_REENTRANT -DLADSPA_PATH=\"/usr/lib/ladspa:/usr/local/lib/ladspa\" -DTRANSLATIONSDIR=\"/usr/share/ams/translations\" -DHAVE_CONFIG_H -I.    -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL   -Wall -g -O2 -c -o canvasfunction.o canvasfunction.cpp
In file included from /usr/include/qt4/QtCore/qobject.h:48,
                 from /usr/include/qt4/QtCore/qiodevice.h:46,
                 from /usr/include/qt4/QtCore/qdatastream.h:45,
                 from /usr/include/qt4/QtCore/qpair.h:45,
                 from /usr/include/qt4/QtGui/qbrush.h:45,
                 from canvasfunction.cpp:4:
/usr/include/qt4/QtCore/qstring.h:91: note: the mangling of 'va_list' has changed in GCC 4.4
canvasfunction.cpp: In member function 'void CanvasFunction::mouseMoveEvent(int, QGraphicsSceneMouseEvent*)':
canvasfunction.cpp:37: error: no matching function for call to 'min(qreal&, double)'
canvasfunction.cpp:38: error: no matching function for call to 'max(qreal&, double)'
canvasfunction.cpp:39: error: no matching function for call to 'min(qreal&, double)'
canvasfunction.cpp:40: error: no matching function for call to 'max(qreal&, double)'
canvasfunction.cpp:61: error: no matching function for call to 'min(qreal, double)'
canvasfunction.cpp:62: error: no matching function for call to 'max(qreal, double)'
canvasfunction.cpp:72: error: no matching function for call to 'min(qreal, double)'
canvasfunction.cpp:73: error: no matching function for call to 'max(qreal, double)'
canvasfunction.cpp:83: error: no matching function for call to 'min(qreal, double)'
canvasfunction.cpp:84: error: no matching function for call to 'max(qreal, double)'
canvasfunction.cpp:94: error: no matching function for call to 'min(qreal, double)'
canvasfunction.cpp:95: error: no matching function for call to 'max(qreal, double)'

the affected code however reads like this:

,----
| void CanvasFunction::mouseMoveEvent(int p, QGraphicsSceneMouseEvent *event)
| {
|   qreal x = event->scenePos().x();
|   qreal y = event->scenePos().y();
| 
|   x = std::min(x, 5.0 * FUNCTION_SCALE);
|   x = std::max(x, -5.0 * FUNCTION_SCALE);
|   y = std::min(y, 5.0 * FUNCTION_SCALE);
|   y = std::max(y, -5.0 * FUNCTION_SCALE);
| 
|   switch (*function.mode) {
`----

not sure what this problem could mean. Perhaps debian armel people can
comment on this?

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4





More information about the pkg-multimedia-maintainers mailing list