Calculating dependencies ...done! >>> emerge (1 of 1) media-video/nvclock-0.7-r1 to / >>> Downloading http://gentoo.oregonstate.edu/distfiles/nvclock0.7.tar.gz --21:53:34-- http://gentoo.oregonstate.edu/distfiles/nvclock0.7.tar.gz => `/mnt/linuxback/portage/distfiles/nvclock0.7.tar.gz' Resolving gentoo.oregonstate.edu... 128.193.0.3 Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 68,966 [application/x-tar] 100%[====================================>] 68,966 39.02K/s 21:53:37 (38.96 KB/s) - `/mnt/linuxback/portage/distfiles/nvclock0.7.tar.gz' saved [68966/68966] >>> md5 src_uri ;-) nvclock0.7.tar.gz eutils eutils >>> Unpacking source... >>> Unpacking nvclock0.7.tar.gz to /var/tmp/portage/nvclock-0.7-r1/work >>> Source unpacked. eutils * Applying configure.in.diff... [ ok ] configure.ac:4: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst aclocal.m4:695: AM_CONFIG_HEADER is expanded from... configure.ac:4: the top level configure.ac:120: warning: do not use m4_regexp: use regexp or m4_bregexp aclocal.m4:708: _AM_DIRNAME is expanded from... configure.ac:120: the top level configure.ac:4: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst aclocal.m4:695: AM_CONFIG_HEADER is expanded from... configure.ac:4: the top level configure.ac:120: warning: do not use m4_regexp: use regexp or m4_bregexp aclocal.m4:708: _AM_DIRNAME is expanded from... configure.ac:120: the top level gtk checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for library containing getopt_long... none required checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for pkg-config... /usr/bin/pkg-config checking for GTK+ - version >= 2.0.0... yes (version 2.2.4) configure: creating ./config.status config.status: creating src/Makefile config.status: creating src/backend/Makefile config.status: creating src/qt/Makefile config.status: creating src/gtk/Makefile config.status: creating Makefile config.status: creating config.h NVClock build summary: ---------------------- - Commandline version enabled - GTK2 GUI enabled - QT GUI disabled make -C src all make[1]: Entering directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src' make[2]: Entering directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/backend' gcc -c -o nv30.o nv30.c gcc -c -o info.o info.c info.c: In function `get_supported_agp_rates': info.c:259: warning: assignment makes pointer from integer without a cast gcc -c -o overclock.o overclock.c gcc -c -o backend.o backend.c ar cru libbackend.a nv30.o info.o overclock.o backend.o ranlib libbackend.a make[2]: Leaving directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/backend' make[2]: Entering directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/gtk' gcc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../backend -c -o callbacks.o callbacks.c callbacks.c: In function `error': callbacks.c:43: parse error before `*' callbacks.c:47: `dialog' undeclared (first use in this function) callbacks.c:47: (Each undeclared identifier is reported only once callbacks.c:47: for each function it appears in.) callbacks.c: In function `timer': callbacks.c:129: parse error before `result' callbacks.c:135: `result' undeclared (first use in this function) callbacks.c:140: warning: unreachable code at beginning of switch statement make[2]: *** [callbacks.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/gtk' make[2]: Entering directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/qt' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/qt' gcc -o nvclock -I./backend nvclock.c backend/libbackend.a make[1]: Leaving directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src' eutils >>> Install nvclock-0.7-r1 into /var/tmp/portage/nvclock-0.7-r1/image/ category media-video make -C src install make[1]: Entering directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src' make[2]: Entering directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/backend' make[2]: Nothing to be done for `install'. make[2]: Leaving directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/backend' make[2]: Entering directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/gtk' /usr/bin/install -c -c nvclock_gtk /var/tmp/portage/nvclock-0.7-r1/image//usr/bin/nvclock_gtk /usr/bin/install: cannot stat `nvclock_gtk': No such file or directory make[2]: *** [install] Error 1 make[2]: Leaving directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/gtk' make[2]: Entering directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/qt' make[2]: Nothing to be done for `install'. make[2]: Leaving directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src/qt' /usr/bin/install -c -c nvclock /var/tmp/portage/nvclock-0.7-r1/image//usr/bin/nvclock make[1]: Leaving directory `/var/tmp/portage/nvclock-0.7-r1/work/nvclock0.7/src' man: prepallstrip: strip: strip: usr/bin/nvclock >>> Completed installing into /var/tmp/portage/nvclock-0.7-r1/image/ >>> Merging media-video/nvclock-0.7-r1 to / eutils --- /usr/ --- /usr/bin/ >>> /usr/bin/nvclock --- /usr/share/ --- /usr/share/doc/ >>> /usr/share/doc/nvclock-0.7-r1/ >>> /usr/share/doc/nvclock-0.7-r1/AUTHORS.gz >>> /usr/share/doc/nvclock-0.7-r1/COPYING.gz >>> /usr/share/doc/nvclock-0.7-r1/README.gz --- /etc/ --- /etc/init.d/ >>> /etc/init.d/nvclock --- /etc/conf.d/ >>> /etc/conf.d/nvclock ... Notice the errors and it contiueing w/ the install. Reproducible: Always Steps to Reproduce: Portage 2.0.49-r20 (default-1.0, gcc-2.95.3, glibc-2.2.5-r9, 2.4.22-gentoo-r2) ================================================================= System uname: 2.4.22-gentoo-r2 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=i686 -O3 -pipe" DISTDIR="/mnt/linuxback/portage/distfiles" FEATURES="autoaddcvs ccache digest sandbox strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/mnt/linuxback/portage" PORTDIR_OVERLAY="/mnt/linuxback/portage-local" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="3dnow X apm avi berkdb bonobo cdr crypt cups directfb dvd encode esd gdbm ggi gif gnome gnome-libs gpm gtk gtk2 gtkhtml guile imlib jpeg libg++ libwww mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python readline sdl slang snmp spell ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xv"
Can't reproduce the problem. Which gtk version are you using? Since this bug is quite old, please re-open if you still have a problem you can reproduce.
Just tried emerging nvclock and it has the same problem still. I have gtk+-2.4.9-r1 installed. Just looked at the code and it's a gcc-2.95 problem. Variables declared in the middle of funtion calls.
Created attachment 41184 [details, diff] callbacks.c.patch Moves variable declarations to the top of functions
Thank you very much!