I get this: bash-2.05b# emerge ksensors Calculating dependencies ...done! >>> emerge (1 of 1) app-misc/ksensors-0.7.2 to / >>> md5 src_uri ;-) ksensors-0.7.2.tar.gz >>> Unpacking source... >>> Unpacking ksensors-0.7.2.tar.gz to /var/tmp/portage/ksensors-0.7.2/work >>> Source unpacked. creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for a BSD compatible install... /bin/install -c checking for -p flag to install... yes checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets ${MAKE}... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler (gcc -g -O2 -fstack-protector ) works... yes checking whether the C compiler (gcc -g -O2 -fstack-protector ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for c++... g++ checking whether the C++ compiler (g++ -g -O2 -fstack-protector ) works... yes checking whether the C++ compiler (g++ -g -O2 -fstack-protector ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking whether g++ supports -fno-builtin... yes checking whether g++ supports -Woverloaded-virtual... yes checking whether g++ supports -Wundef... yes checking whether g++ supports -Wbad-function-cast... yes checking whether g++ supports -Wno-long-long... yes checking whether g++ supports -Wnon-virtual-dtor... yes checking whether g++ supports -fno-exceptions... yes checking whether g++ supports -fno-check-new... yes checking whether g++ supports -fexceptions... yes checking how to run the C++ preprocessor... g++ -E checking whether g++ supports -frepo... yes checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking for ranlib... ranlib checking for strip... strip checking for Cygwin environment... no checking for mingw32 environment... no updating cache ./config.cache loading cache ./config.cache within ltconfig checking whether -lc should be explicitly linked in... yes checking for objdir... .libs checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes finding the maximum length of command line arguments... 73729 checking if gcc supports -c -o file.o... yes checking if gcc supports -fno-rtti -fno-exceptions ... no checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking command to parse /usr/bin/nm -B output... ok checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for dlopen in -ldl... yes checking for dlfcn.h... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no creating libtool updating cache ./config.cache loading cache ./config.cache loading cache ./config.cache within ltconfig checking host system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu ltcf-cxx: with_gcc=yes ; with_gnu_ld=yes checking for objdir... .libs checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes finding the maximum length of command line arguments... (cached) 73729 checking if g++ supports -c -o file.o... (cached) yes checking if g++ supports -fno-rtti -fno-exceptions ... no checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking command to parse /usr/bin/nm -B output... ok checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for dlfcn.h... (cached) yes checking whether a program can dlopen itself... (cached) yes checking whether a statically linked program can dlopen itself... (cached) no appending configuration tag "CXX" to libtool checking for object suffix... o checking for executable suffix... no checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for main in -lutil... yes checking for main in -lcompat... no checking for crypt in -lcrypt... yes checking for socklen_t... socklen_t checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for inet_ntoa... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for res_init... no checking for killpg in -lucb... no checking size of int... 4 checking size of long... 4 checking size of char *... 4 checking size of char... 1 checking for dlopen in -ldl... (cached) yes checking for shl_unload in -ldld... no checking for extra includes... no checking for extra libs... no checking for libz... -lz checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for IceConnectionNumber in -lICE... yes checking for libXext... yes checking for Xinerama... yes checking for pthread_create in -lpthread... yes checking for libpng... -lpng -lz -lm checking for libjpeg6b... no checking for libjpeg... -ljpeg checking for Qt... libraries /usr/qt/3/lib, headers /usr/qt/3/include using -mt checking if Qt compiles without flags... no checking for moc... /usr/qt/3/bin/moc checking for uic... /usr/qt/3/bin/uic checking if Qt needs -ljpeg... no checking for rpath... yes checking for KDE... libraries /usr/kde/3.2/lib, headers /usr/kde/3.2/include checking for KDE paths... defaults checking for dcopidl... /usr/kde/3.2/bin/dcopidl checking for dcopidl2cpp... /usr/kde/3.2/bin/dcopidl2cpp checking for mcopidl... /usr/kde/3.2/bin/mcopidl checking for artsc-config... /usr/kde/3.2/bin/artsc-config checking for kde-config... /usr/kde/3.2/bin/kde-config checking for meinproc... /usr/kde/3.2/bin/meinproc checking if doc should be compiled... yes checking if ksensors should be compiled... yes checking if po should be compiled... yes updating cache ./config.cache creating ./config.status fast creating ./Makefile fast creating doc/Makefile fast creating doc/en/Makefile fast creating ksensors/Makefile fast creating ksensors/pics/Makefile fast creating po/Makefile creating config.h make all-recursive make[1]: Entering directory `/var/tmp/portage/ksensors-0.7.2/work/ksensors-0.7.2' Making all in ksensors make[2]: Entering directory `/var/tmp/portage/ksensors-0.7.2/work/ksensors-0.7.2/ksensors' Making all in pics make[3]: Entering directory `/var/tmp/portage/ksensors-0.7.2/work/ksensors-0.7.2/ksensors/pics' rm -f libpics.a ar cru libpics.a ranlib libpics.a make[3]: Leaving directory `/var/tmp/portage/ksensors-0.7.2/work/ksensors-0.7.2/ksensors/pics' make[3]: Entering directory `/var/tmp/portage/ksensors-0.7.2/work/ksensors-0.7.2/ksensors' /usr/qt/3/bin/uic -o palettecfgdesign.h ./palettecfgdesign.ui /usr/qt/3/bin/uic -o aboutcfgdesign.h ./aboutcfgdesign.ui Session management error: Could not open network socket Session management error: Could not open network socket /usr/qt/3/bin/uic -o generalcfgdesign.h ./generalcfgdesign.ui /usr/qt/3/bin/uic -o lmsensorscfgdesign.h ./lmsensorscfgdesign.ui Session management error: Could not open network socket /usr/qt/3/bin/uic -o systemcfgdesign.h ./systemcfgdesign.ui Session management error: Could not open network socket Session management error: Could not open network socket /usr/qt/3/bin/moc palettecfgdesign.h -o palettecfgdesign.moc /usr/qt/3/bin/moc aboutcfgdesign.h -o aboutcfgdesign.moc /usr/qt/3/bin/moc generalcfgdesign.h -o generalcfgdesign.moc /usr/qt/3/bin/moc systemcfgdesign.h -o systemcfgdesign.moc /usr/qt/3/bin/moc ./sensor.h -o sensor.moc.cpp /usr/qt/3/bin/moc ./lmsensor.h -o lmsensor.moc.cpp /usr/qt/3/bin/moc ./generalcfg.h -o generalcfg.moc.cpp /usr/qt/3/bin/moc ./lmsensorscfg.h -o lmsensorscfg.moc.cpp /usr/qt/3/bin/moc ./panel.h -o panel.moc.cpp /usr/qt/3/bin/moc ./processexec.h -o processexec.moc.cpp /usr/qt/3/bin/moc ./lmsensorpanel.h -o lmsensorpanel.moc.cpp /usr/qt/3/bin/moc ./qlcdstring.h -o qlcdstring.moc.cpp /usr/qt/3/bin/moc ./qbarmeter.h -o qbarmeter.moc.cpp /usr/qt/3/bin/moc ./infopanels.h -o infopanels.moc.cpp /usr/qt/3/bin/moc ./lmsensors.h -o lmsensors.moc.cpp /usr/qt/3/bin/moc ./lmsensorsalarms.h -o lmsensorsalarms.moc.cpp /usr/qt/3/bin/moc ./lmsensordockpanel.h -o lmsensordockpanel.moc.cpp /usr/qt/3/bin/moc ./qdialarc.h -o qdialarc.moc.cpp /usr/qt/3/bin/moc ./cpupanel.h -o cpupanel.moc.cpp /usr/qt/3/bin/moc ./ksensorssplash.h -o ksensorssplash.moc.cpp /usr/qt/3/bin/moc ./uptimepanel.h -o uptimepanel.moc.cpp /usr/qt/3/bin/moc ./hdsensorslist.h -o hdsensorslist.moc.cpp /usr/qt/3/bin/moc ./systemcfg.h -o systemcfg.moc.cpp /usr/qt/3/bin/moc ./lmsensorschip.h -o lmsensorschip.moc.cpp /usr/qt/3/bin/moc ./sensorslist.h -o sensorslist.moc.cpp /usr/qt/3/bin/moc ./palettecfg.h -o palettecfg.moc.cpp /usr/qt/3/bin/moc ./ksensorscfg.h -o ksensorscfg.moc.cpp /usr/qt/3/bin/moc ./i8ksensorslist.h -o i8ksensorslist.moc.cpp /usr/qt/3/bin/moc ./panelsgroup.h -o panelsgroup.moc.cpp /usr/qt/3/bin/moc ./lmsensorswidget.h -o lmsensorswidget.moc.cpp /usr/qt/3/bin/moc ./lmsensorsdock.h -o lmsensorsdock.moc.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -fno-builtin -g3 -g -O2 -fstack-protector -fno-exceptions -fno-check-new -c -o i8ksensorslist.o `test -f i8ksensorslist.cpp || echo './'`i8ksensorslist.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -fno-builtin -g3 -g -O2 -fstack-protector -fno-exceptions -fno-check-new -c -o panelsgroup.o `test -f panelsgroup.cpp || echo './'`panelsgroup.cpp cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -fno-builtin -g3 -g -O2 -fstack-protector -fno-exceptions -fno-check-new -c -o infopanels.o `test -f infopanels.cpp || echo './'`infopanels.cpp cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -fno-builtin -g3 -g -O2 -fstack-protector -fno-exceptions -fno-check-new -c -o cpupanel.o `test -f cpupanel.cpp || echo './'`cpupanel.cpp cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ In file included from qlcdstring.h:26, from cpupanel.h:24, from infopanels.h:25, from infopanels.cpp:18: qlcddraw.h:59: error: extra qualification `QLcd::' on member `asciiSegments' ignored qlcddraw.h:60: error: extra qualification `QLcd::' on member `segmentsCoords' ignored In file included from qlcdstring.h:26, from cpupanel.h:24, from cpupanel.cpp:18: qlcddraw.h:59: error: extra qualification `QLcd::' on member `asciiSegments' ignored qlcddraw.h:60: error: extra qualification `QLcd::' on member `segmentsCoords' ignored cpupanel.cpp: In member function `virtual void CpuPanel::paletteChange(const QPalette&)': cpupanel.cpp:113: warning: unused parameter `const QPalette&oldPalette' cpupanel.cpp: In member function `virtual void CpuPanel::resizeEvent(QResizeEvent*)': cpupanel.cpp:122: warning: unused parameter `QResizeEvent*e' make[3]: *** [cpupanel.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [infopanels.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/ksensors-0.7.2/work/ksensors-0.7.2/ksensors' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/ksensors-0.7.2/work/ksensors-0.7.2/ksensors' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/ksensors-0.7.2/work/ksensors-0.7.2' make: *** [all] Error 2 !!! ERROR: app-misc/ksensors-0.7.2 failed. !!! Function kde_src_compile, Line 128, Exitcode 2 !!! died running emake, kde_src_compile:make % emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r7) ================================================================= System uname: 2.4.22-gentoo-r7 i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-g -O2 -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-g -O2 -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs fixpackages nostrip sandbox userpriv" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirror.tucdemonic.org/gentoo/ ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.pair.com/ http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d aalib apm arts avi berkdb canna cdr cjk crypt cups debug doc dvd encode esd foomaticdb freetype freewnn gdbm gif gnome gpm gtk gtk2 guile imlib java joystick jpeg kde libg++ libwww mad maildir matrox mbox mikmod mozilla mozsvg mpeg mule ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb video_cards_matrox x86 xinerama xml2 xmms xv zlib" % gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs Configured with: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib --with-x --disable-multilib Thread model: posix gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) % epm -q kde qt kde-3.1.5 kde-3.2.0 qt-3.0.5-r2 qt-3.3.0-r1 (The qt-3.0.5-r2 is something I have in it's own slot and directory using a local ebuild).
I still have the problem with ksensors-0.7.2; I tried removing the qt-3.0.5, and that (as expected) had no effect: the error still occurred.
I don't think this is because of qt, this seems to be related to the version of gcc that you use. The code that fails to compile is class QLcd { ... static const uint QLcd::asciiSegments[128]; static const int QLcd::segmentsCoords[32][8]; }; Somehow it does not allow "QLcd::" for you. However this is valid in C++, can you try to use a newer gcc and see if this still occurrs?
I'm already using gcc 3.3.2-r5, which is the most recent stable version. (I'm reluctant to go to a ~x86 version just for ksensors, especially as I think with the 2.6 kernel, the sensors don't work anyway.)
ksensors development has stopped about 2 years ago, so unless someone comes up with a patch for this (and reopens the bug) it's probably not going to be fixed.
Any replacements available? The only similar program I spotted in portage was xsensors, and it just said: Sensor 'w83697hf' not supported by xsensors! Segmentation fault
bugzie
Bugs cleanup for LATER packages. This one is wontfix.