From kde-bugs-dist Thu Feb 01 16:01:09 2007 From: stevee () zuken ! co ! uk Date: Thu, 01 Feb 2007 16:01:09 +0000 To: kde-bugs-dist Subject: [Bug 141011] New: Compile error on Solaris 8 - kiconcanvas.cpp uses Message-Id: <20070201170108.141011.stevee () zuken ! co ! uk> X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=117034569328136 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=141011 Summary: Compile error on Solaris 8 - kiconcanvas.cpp uses std::min which is not available Product: basket Version: unspecified Platform: Compiled Sources OS/Version: Solaris Status: UNCONFIRMED Severity: normal Priority: NOR Component: general AssignedTo: slaout linux62 org ReportedBy: stevee zuken co uk Version: 0.6.0. (using KDE KDE 3.5.5) Installed from: Compiled From Sources Compiler: gcc 3.4.6 OS: Solaris I get this compile error on Solaris 8: if /bin/bash ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde/include -I/opt/qt/include -I/gorbag/exta/cad/externals/SOLARIS/gnome2/include/glib-2.0 -I/gorbag/exta/cad/externals/SOLARIS/include -DQT_THREAD_SUPPORT -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/gnome2/include/glib-2.0 -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/gnome2/include/glib-2.0 -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include -O2 -fomit-frame-pointer -DNeedVarargsPrototypes=1 -DNeedFunctionPrototypes=1 -pipe -fno-exceptions -mcpu=ultrasparc -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -MT debugwindow.lo -MD -MP -MF ".deps/debugwindow.Tpo" \ -c -o debugwindow.lo `test -f 'debugwindow.cpp' || echo './'`debugwindow.cpp; \ then mv -f ".deps/debugwindow.Tpo" ".deps/debugwindow.Plo"; \ else rm -f ".deps/debugwindow.Tpo"; exit 1; \ fi kiconcanvas.cpp: In member function `void KIconCanvas::loadIcon(const QString&)': kiconcanvas.cpp:121: error: `min' is not a member of `std' I worked around it by adding: #define MIN(x,y) ((x) < (y) ? (x) : (y)) and using that instead of std::min