I emerged the x86 commodore emulators suite VICE 1.14-r1. It correctly compiles but it segfaults at startup with the following messages: cyclopia@voynich ~ $ x64 /home/cyclopia/.kde3.4/share/config/gtkrc:37: error: unexpected identifier `gtk-alternative-button-order', expected keyword - e.g. `style' /home/cyclopia/.kde3.4/share/config/gtkrc:37: error: unexpected identifier `gtk-alternative-button-order', expected keyword - e.g. `style' My configuration is as follows: Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Duron(tm) Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl divx4linux dvd dvdr eds emboss encode esd fam flac foomaticdb fortran ftp gd gdbm gif gnome gnustep gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jabber jack java jpeg junit kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY I also tried to emerge it with thE "-O2" option but with identical results.
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Duron(tm) Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl divx4linux dvd dvdr eds emboss encode esd fam flac foomaticdb fortran ftp gd gdbm gif gnome gnustep gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jabber jack java jpeg junit kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
try it with CFLAGS="-pipe"
(In reply to comment #2) > try it with CFLAGS="-pipe" You can see "-pipe" is already in my cflags. Or do you propose to emerge it with only "-pipe" in cflags?
(In reply to comment #3) > (In reply to comment #2) > > try it with CFLAGS="-pipe" > > You can see "-pipe" is already in my cflags. Or do you propose to emerge it with > only "-pipe" in cflags? > Anyway, I tried to emerge it with CFLAGS="-pipe", but it still consistently segfaults. I also commented the "gtk-alternative-button-order" declaration on the gtkrc file. It still segfaults, although there is no more an "unexpected identifier" error.
Following the Gentoo Bug Reporting Guide (my fault to have not read it before), I reemerged VICE trying to get a backtrace with gdb. I did the following command: FEATURES="nostrip" CFLAGS="-O2 -pipe -ggdb3" emerge vice but the backtrace is anyway full of ??. If someone has advices for a better backtrace, let me know. I post it, in the hope it can be of some help anyway. ------- GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /usr/games/bin/x64 [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 22442)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 22442)] 0xb7de2331 in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0 (gdb) bt #0 0xb7de2331 in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0 #1 0x0851e028 in ?? () #2 0x00000000 in ?? () #3 0xb7c7388b in gtk_interface_age () from /usr/lib/libgtk-1.2.so.0 #4 0xb7e0502b in g_scanner_scope_add_symbol () from /usr/lib/libglib-2.0.so.0 #5 0x00000000 in ?? () #6 0xb7c7388b in gtk_interface_age () from /usr/lib/libgtk-1.2.so.0 #7 0x00000001 in ?? () #8 0x0000010f in ?? () #9 0x0851e028 in ?? () #10 0xb7ff61d0 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 #11 0xb7c056d7 in gtk_rc_add_class_style () from /usr/lib/libgtk-1.2.so.0 #12 0x08502e30 in ?? () #13 0x0851ddc0 in ?? () #14 0x0000000e in ?? () #15 0x41c9d000 in ?? () #16 0xb7e09567 in g_slist_sort_with_data () from /usr/lib/libglib-2.0.so.0 #17 0xb7c84064 in ?? () from /usr/lib/libgtk-1.2.so.0 #18 0xb7c88300 in gtk_debug_flags () from /usr/lib/libgtk-1.2.so.0 #19 0xb7c84064 in ?? () from /usr/lib/libgtk-1.2.so.0 #20 0xb7c88300 in gtk_debug_flags () from /usr/lib/libgtk-1.2.so.0 #21 0x0851deb0 in ?? () #22 0x00000007 in ?? () #23 0xb7c07b61 in gtk_rc_load_image () from /usr/lib/libgtk-1.2.so.0 #24 0x0851deb0 in ?? () #25 0x00000007 in ?? () #26 0x00000000 in ?? () #27 0xbffff150 in ?? () #28 0xbffff1a0 in ?? () #29 0x00000000 in ?? () #30 0x00004f40 in ?? () #31 0xb7e68ff4 in ?? () from /lib/libpthread.so.0 #32 0xb7dcc47c in ?? () from /usr/lib/libglib-2.0.so.0 #33 0xb7e50000 in ?? () #34 0x00000000 in ?? () #35 0x00000007 in ?? () #36 0x00000808 in ?? () #37 0x00000000 in ?? () #38 0xb77b0000 in in6addr_loopback () from /lib/libc.so.6 #39 0x00000927 in ?? () #40 0x000081a4 in ?? () #41 0x00000001 in ?? () #42 0x000003e9 in ?? () #43 0x00000064 in ?? () #44 0x00000000 in ?? () #45 0x00000000 in ?? () #46 0x00000000 in ?? () #47 0x00002440 in ?? () #48 0x00020000 in ?? () #49 0x00000018 in ?? () #50 0x41c9d000 in ?? () #51 0x00000000 in ?? () #52 0x41c9d000 in ?? () #53 0x00000000 in ?? () #54 0x41c9d000 in ?? () #55 0x00000000 in ?? () #56 0x00000000 in ?? () #57 0x00000000 in ?? () #58 0x0851ddc0 in ?? () #59 0xb77c09a0 in __after_morecore_hook () from /lib/libc.so.6 ---Type <return> to continue, or q <return> to quit--- #60 0x00000001 in ?? () #61 0xb7e68ff4 in ?? () from /lib/libpthread.so.0 #62 0x0851ddc0 in ?? () #63 0xb7c84064 in ?? () from /usr/lib/libgtk-1.2.so.0 #64 0x0851ddc0 in ?? () #65 0xffffffff in ?? () #66 0x00000002 in ?? () #67 0xb7c04a1a in gtk_rc_parse () from /usr/lib/libgtk-1.2.so.0 #68 0x0851deb0 in ?? () #69 0x00000001 in ?? () #70 0xb77c09a0 in __after_morecore_hook () from /lib/libc.so.6 #71 0x0851ddc0 in ?? () #72 0xb7e4f180 in ?? () from /usr/lib/libglib-2.0.so.0 #73 0x0851ddc0 in ?? () #74 0x00000000 in ?? () #75 0xb7df9083 in g_free () from /usr/lib/libglib-2.0.so.0 #76 0x0851ddc0 in ?? () #77 0x00000000 in ?? () #78 0xb7c84064 in ?? () from /usr/lib/libgtk-1.2.so.0 #79 0xb7c044b2 in gtk_rc_init () from /usr/lib/libgtk-1.2.so.0 #80 0xb7b34450 in ?? () from /usr/lib/libgtk-1.2.so.0 (gdb) quit The program is running. Exit anyway? (y or n) y
This config option is the cause of the seg faults. --enable-gnomeui Luckly its a USE option: echo "app-emulation/vice -gnome" >>/etc/portage/package.use and re-emerge and see if that works, it did here.
Bug 9273 looks like the same issue
(In reply to comment #6) > This config option is the cause of the seg faults. > > --enable-gnomeui > > Luckly its a USE option: > > echo "app-emulation/vice -gnome" >>/etc/portage/package.use > > and re-emerge and see if that works, it did here. Yes, it works. Thank you very much. But, although usable, it has a really horrible GUI. Since I used VICE with the GTK gui in the past on other distributions, it would be nice to have it working here on Gentoo too.
Not really a gentoo issue per-say its a vice problem: http://www.vicekb.de.vu/01-004 You just gotta love the xaw3d widgets ;)
(In reply to comment #9) > Not really a gentoo issue per-say its a vice problem: > > http://www.vicekb.de.vu/01-004 > > You just gotta love the xaw3d widgets ;) Haha (sigh). The solution therefore is to let the VICE ebuild ignore the gnome use flag, I think.
Ok, I turned off gnome support for both versions of vice in portage since it seems to not work. Sigh. I'd like to see VICE upstream do more frequent releases.
(In reply to comment #11) > Ok, I turned off gnome support for both versions of vice in portage since it > seems to not work. Sigh. I'd like to see VICE upstream do more frequent releases. OK, I think it's some kind of solution... at least no more unexpected segfaults. But in the long term... can we hope to see the GTK GUI again for VICE? I really miss it. I wonder if it's possible to provide a set of known-to-work GTK/GNOME 1.x libs in the VICE ebuild and let it (and only it) link to them and use them if we turn on the gnome flag. I'm not a developer, else I would try it by myself, but I wonder if it's a feasible solution. Anyway, thanks for all :)
*** Bug 92738 has been marked as a duplicate of this bug. ***