Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125188 - sci-mathematics/gturing-0.1.1 fails (gcc4) (with fix)
Summary: sci-mathematics/gturing-0.1.1 fails (gcc4) (with fix)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-03-06 00:34 UTC by Patrizio Bassi
Modified: 2006-04-17 14:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc-4.1 patch (gturing-0.1.1-gcc41.patch,471 bytes, patch)
2006-04-13 21:17 UTC, Mark Loeser (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2006-03-06 00:34:12 UTC
make[3]: Entering directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1/src'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DGTURING_LOCALEDIR=\""/usr/share/locale"\"   -DGTURING_PIXMAPS_DIR=\""/usr/share/gturing/pixmaps\""  -DDATADIR=\""/usr/share"\"               -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2      -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math -Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wsign-promo -Wno-sign-compare       -DG_DISABLE_DEPRECATED     -DGDK_DISABLE_DEPRECATED     -DGDK_PIXBUF_DISABLE_DEPRECATED     -DGTK_DISABLE_DEPRECATED     -DGNOME_DISABLE_DEPRECATED     -DBONOBO_DISABLE_DEPRECATED -c gturing.c
cc1: warning: command line option "-Wsign-promo" is valid for C++/ObjC++ but not for C
In file included from gturing.c:38:
graph_editor.h:19:58: warning: no newline at end of file
gturing.c:62: error: static declaration of ‘tape_string’ follows non-static declaration
turing.h:60: error: previous declaration of ‘tape_string’ was here
gturing.c:63: error: static declaration of ‘states_fname’ follows non-static declaration
turing.h:59: error: previous declaration of ‘states_fname’ was here
gturing.c: In function ‘play_callback’:
gturing.c:362: warning: implicit declaration of function ‘gtk_timeout_add’
gturing.c:362: warning: nested extern declaration of ‘gtk_timeout_add’
gturing.c: In function ‘about_call’:
gturing.c:570: warning: implicit declaration of function ‘gnome_about_new’
gturing.c:570: warning: nested extern declaration of ‘gnome_about_new’
gturing.c:578: warning: assignment makes pointer from integer without a cast
gturing.c: In function ‘main’:
gturing.c:862: warning: implicit declaration of function ‘gnome_score_init’
gturing.c:862: warning: nested extern declaration of ‘gnome_score_init’
make[3]: *** [gturing.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1'
make: *** [all-recursive-am] Error 2


FIX:

in gturning.c delete the "static" statement at the lines 62 and 63
works
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2006-04-13 21:17:00 UTC
Created attachment 84601 [details, diff]
gcc-4.1 patch

This should fix it.
Comment 2 Patrizio Bassi 2006-04-14 01:31:24 UTC
works, please commit :)

good job.
Comment 3 Marcus D. Hanwell (RETIRED) gentoo-dev 2006-04-14 13:06:36 UTC
Applied the patch in CVS. Thanks.
Comment 4 Patrizio Bassi 2006-04-16 00:59:47 UTC
now i have another problem:


make[3]: Entering directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1/src'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DGTURING_LOCALEDIR=\""/usr/share/locale"\"   -DGTURING_PIXMAPS_DIR=\""/usr/share/gturing/pixmaps\""  -DDATADIR=\""/usr/share"\"               -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2      -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wsign-promo -Wno-sign-compare       -DG_DISABLE_DEPRECATED     -DGDK_DISABLE_DEPRECATED     -DGDK_PIXBUF_DISABLE_DEPRECATED     -DGTK_DISABLE_DEPRECATED     -DGNOME_DISABLE_DEPRECATED     -DBONOBO_DISABLE_DEPRECATED -c gturing.c
cc1: warning: command line option "-Wsign-promo" is valid for C++/ObjC++ but not for C
In file included from gturing.c:38:
graph_editor.h:19:58: warning: no newline at end of file
gturing.c: In function ‘play_callback’:
gturing.c:362: warning: implicit declaration of function ‘gtk_timeout_add’
gturing.c:362: warning: nested extern declaration of ‘gtk_timeout_add’
gturing.c: In function ‘about_call’:
gturing.c:570: warning: implicit declaration of function ‘gnome_about_new’
gturing.c:570: warning: nested extern declaration of ‘gnome_about_new’
gturing.c:578: warning: assignment makes pointer from integer without a cast
gturing.c: In function ‘main’:
gturing.c:862: warning: implicit declaration of function ‘gnome_score_init’
gturing.c:862: warning: nested extern declaration of ‘gnome_score_init’
gturing.c:873: error: ‘GNOME_PARAM_POPT_TABLE’ undeclared (first use in this function)
gturing.c:873: error: (Each undeclared identifier is reported only once
gturing.c:873: error: for each function it appears in.)
gturing.c:878: error: ‘GNOME_PARAM_POPT_CONTEXT’ undeclared (first use in this function)
make[3]: *** [gturing.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1'
make: *** [all-recursive-am] Error 2

!!! ERROR: sci-mathematics/gturing-0.1.1 failed.
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2006-04-16 17:02:08 UTC
I can't reproduce this.  What is the output of `emerge info'?
Comment 6 Patrizio Bassi 2006-04-17 12:19:41 UTC
i have gnome 2.14, probably it's the source of problems.

Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r2, 2.6.16.5 i686)
=================================================================
System uname: 2.6.16.5 i686 Pentium III (Katmai)
Gentoo Base System version 1.12.0_pre17
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.4.2-r1
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.91.0.6-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.ngi.it"
LANG="it_IT.utf8"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/myportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X X509 Xaw3d a52 aac aalib accessibility acl acpi activefilter adns alsa apache2 apm arts asf audiofile avi bash-completion berkdb bidi bitmap-fonts bootsplash browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chroot clamav cli client codecs crypt css ctype cups curl dba dbus dga dhcp directfb djbfft dri edl eds emboss encode ethereal exif expat extraengine faac faad fam fastbuild fbcon ffmpeg fftw firefox flac flash foomaticdb force-cgi-redirect foreign-package fortran ftp gcj gd gdbm geometry ggi gif gimp gimpprint glibc-omitfp glut glx gnokii gnome gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile h264 hal iconv idea idn imagemagick imap imlib innodb ipod irda irmc isdnlog jack java javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kerberos kqemu lame lcd lcms ldap libcaca libclamav libg++ libgda libusb libwww lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb memlimit mhash mikmod mime mmx mmx2 mmxext mng mono motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer msn msnextras musepack mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin oav odbc ogg openal opengl openssl operanom2 oss pam pcre pda pdf pdflib pdo pear perl php png pnp posix postgres ppds pppd pthreads python qemu-fast qhull qt quicktime quotas readline real rrdtool rtc ruby samba scanner sdl server session sftplogging sguil simplexml slang slp snortsam soap sockets socks5 softmmu softquota spamassassin speex spell spl sqlite3 sse ssl subject-rewrite svg svga tcltk tcpd tetex tga theora tiff tokenizer truetype truetype-fonts trusted type1-fonts udev unicode usb userlocales vidix vorbis win32codecs wma wmf wmv wsconvert wxwindows x264 xanim xchatdccserver xchattext xcomposite xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid xvm xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev input_devices_joystick kernel_linux linguas_it userland_GNU video_cards_i128 video_cards_fbdev video_cards_vesa video_cards_vga video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS

Comment 7 Mark Loeser (RETIRED) gentoo-dev 2006-04-17 14:17:35 UTC
Most likely since it works fine here.  This specific bug is resolved then.  Please open another to track the gnome-2.14 issue.