cc1plus: Warnung: Kommandozeilenoption "-Wmissing-prototypes" ist g
cc1plus: Warnung: Kommandozeilenoption "-Wmissing-prototypes" ist gültig für C/ObjC, aber nicht für C++ hamlibwrapper.cpp: In member function `void hamlibWrapper::setFreqs(double, double, bool)': hamlibwrapper.cpp:145: Fehler: »fabs« wurde in diesem Gültigkeitsbereich nicht definiert hamlibwrapper.cpp:146: Fehler: »round« wurde in diesem Gültigkeitsbereich nicht definiert hamlibwrapper.cpp:146: Warnung: Variable »round« wird nicht verwendet hamlibwrapper.cpp:145: Warnung: Variable »fabs« wird nicht verwendet hamlibwrapper.cpp:149: Fehler: »fabs« wurde in diesem Gültigkeitsbereich nicht definiert hamlibwrapper.cpp:150: Fehler: »round« wurde in diesem Gültigkeitsbereich nicht definiert hamlibwrapper.cpp:150: Warnung: Variable »round« wird nicht verwendet hamlibwrapper.cpp:149: Warnung: Variable »fabs« wird nicht verwendet hamlibwrapper.cpp: In member function `void hamlibWrapper::setHardwareFrequency(bool, freq_t)': hamlibwrapper.cpp:269: Fehler: »round« wurde in diesem Gültigkeitsbereich nicht definiert hamlibwrapper.cpp:269: Warnung: Variable »round« wird nicht verwendet hamlibwrapper.cpp: At global scope: hamlibwrapper.cpp:143: Warnung: nicht benutzter Parameter »n« make[3]: *** [hamlibwrapper.o] Fehler 1 make[3]: *** Warte auf noch nicht beendete Prozesse... make[3]: Leaving directory `/var/tmp/portage/ktrack-0.3.0_rc1-r1/work/ktrack-0.3.0-rc1/ktrack' make[2]: *** [all-recursive] Fehler 1 make[2]: Leaving directory `/var/tmp/portage/ktrack-0.3.0_rc1-r1/work/ktrack-0.3.0-rc1/ktrack' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/ktrack-0.3.0_rc1-r1/work/ktrack-0.3.0-rc1' make: *** [all] Fehler 2 !!! ERROR: media-radio/ktrack-0.3.0_rc1-r1 failed. !!! Function kde_src_compile, Line 234, Exitcode 2 !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, NOT this status message. # emerge --info Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.4.2 dev-python/pycrypto: [Not Present] dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" ...
Set your locales to C when reporting bugs...
Exactly the same problem here. Plz find it with "C". i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -O3 -march=pentium3 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o satellite.o `test -f 'satellite.cpp' || echo './'`satellite.cpp cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -O3 -march=pentium3 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o predictionlist.o `test -f 'predictionlist.cpp' || echo './'`predictionlist.cpp cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ hamlibwrapper.cpp: In member function `void hamlibWrapper::setFreqs(double, double, bool)': hamlibwrapper.cpp:145: error: `fabs' was not declared in this scope hamlibwrapper.cpp:146: error: `round' was not declared in this scope hamlibwrapper.cpp:146: warning: unused variable 'round' hamlibwrapper.cpp:145: warning: unused variable 'fabs' hamlibwrapper.cpp:149: error: `fabs' was not declared in this scope hamlibwrapper.cpp:150: error: `round' was not declared in this scope hamlibwrapper.cpp:150: warning: unused variable 'round' hamlibwrapper.cpp:149: warning: unused variable 'fabs' hamlibwrapper.cpp: In member function `void hamlibWrapper::setHardwareFrequency(bool, freq_t)': hamlibwrapper.cpp:269: error: `round' was not declared in this scope hamlibwrapper.cpp:269: warning: unused variable 'round' hamlibwrapper.cpp: At global scope: hamlibwrapper.cpp:143: warning: unused parameter 'n' make[3]: *** [hamlibwrapper.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/ktrack-0.3.0_rc1-r1/work/ktrack-0.3.0-rc1/ktrack' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/ktrack-0.3.0_rc1-r1/work/ktrack-0.3.0-rc1/ktrack' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/ktrack-0.3.0_rc1-r1/work/ktrack-0.3.0-rc1' make: *** [all] Error 2 !!! ERROR: media-radio/ktrack-0.3.0_rc1-r1 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile ebuild.sh, line 1248: Called kde_src_compile kde.eclass, line 166: Called kde_src_compile 'all' kde.eclass, line 325: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 321: Called die !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant. jakakoles ~ # emerge --info Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686) ================================================================= System uname: 2.6.16-gentoo-r9 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.15 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O3 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl " MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X a25 aac alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bluetooth cdr cli cpudetection crypt ctype cups custom-cflags directfb dlloader dri dts dvb dvd dvdr eds eeal emboss encode esd extras foomaticdb fortran gdbm gif gnome gpm gps graphviz gstreamer gtk gtk2 icq imlib ipv6 isdnlog java jpeg jpeg2k libg++ libwww mad maildir mikmod mmx mod_muc motif mp3 mpeg mysql ncurses nls nptl nsplugin odbc ogg opengl oss pam pcre pdf pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection rtc sdl session spell spl ssl svg tcpd truetype truetype-fonts type1-fonts udev unicode usb vhosts vorbis web win32codecs xanim xforms xinerama xml xmms xorg xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
This is not a problem directly related to ktrack. It occurs since the -Wmissing-prototype option has been removed from g++ (discussions say that "this is right") and ktrack/hamlibwrapper.cc depends on this feature to save an "#include <math.h>". Adding this solves the compile problem. I will report this solution to upstream. 73, Marius DF1MA
Created attachment 105560 [details, diff] patch to correct missing math include wanted to play around with this app, and got annoyed it didn't compile. I located the error to be a missing include of math.h i hamlibwrapper.cpp. So I created this patch as well as a new ebuild to fix it. hopes it is as i should be, I'm new to this :)
Created attachment 105562 [details] ebuild to implement new patch
Thanks, I'll look into getting this fix both upstream and in Portage shortly.
tested on amd64 as well, works fine
Thanks, fixed in CVS.