A patch for soundtracker 0.6.8 for gtk2 mostly done by Yury Aliaev. I also corrected some race conditions for SDL driver and other problems. Reproducible: Always
Created attachment 243391 [details, diff] gtk2 patch for soundtracker 0.6.8
Created attachment 243393 [details] ebuild for soundtracker-gtk2
Erstmal danke für das ebuild aber spuckt bei mir das hier aus: tracer.c:327: Warnung: »tracer_dumpall« definiert, aber nicht verwendet x86_64-pc-linux-gnu-gcc -O2 -march=core2 -pipe -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wl,-O1 -Wl,--as-needed -o soundtracker audio.o audioconfig.o cheat-sheet.o clavier.o endian-conv.o envelope-box.o errors.o event-waiter.o extspinbutton.o file-operations.o gui-settings.o gui-subs.o gui.o instrument-editor.o keys.o main.o menubar.o module-info.o playlist.o poll.o preferences.o recode.o sample-display.o sample-editor.o scope-group.o st-subs.o time-buffer.o tips-dialog.o track-editor.o tracker.o tracker-settings.o transposition.o xm.o xm-player.o tracer.o scalablepic.o drivers/libdrivers.a mixers/libmixers.a -ljack -lpthread -ldl -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread -lgdk_pixbuf-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lsndfile -lSDL -lpthread mixers/libmixers.a(kb-x86.o): In function `kb_x86_call_mixer': kb-x86.c:(.text+0x770): undefined reference to `kbasm_mix' mixers/libmixers.a(kb-x86.o): In function `kb_x86_mix': kb-x86.c:(.text+0x1033): undefined reference to `kbasm_post_mixing' collect2: ld gab 1 als Ende-Status zurück make[3]: *** [soundtracker] Fehler 1
Ups, sry for german, i said, thanks for the ebuild but i get an error as show ;)
Created attachment 248432 [details] gtk2 patch for soundtracker 0.6.8
Created attachment 248433 [details] ebuild for soundtracker-gtk2
(In reply to comment #4) > Ups, sry for german, i said, thanks for the ebuild but i get an error as show > ;) > Well, I don't have access to 64-bit machine at this moment, but probably the problem is with the assembly code. Therefore, I removed it altogether. Please try this version.
Well at least the undefined reference is now an other one, thanks anyway: tracer.c:327: Warnung: »tracer_dumpall« definiert, aber nicht verwendet x86_64-pc-linux-gnu-gcc -O2 -march=core2 -pipe -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wl,-O1 -Wl,--as-needed -o soundtracker audio.o audioconfig.o cheat-sheet.o clavier.o endian-conv.o envelope-box.o errors.o event-waiter.o extspinbutton.o file-operations.o gui-settings.o gui-subs.o gui.o instrument-editor.o keys.o main.o menubar.o module-info.o playlist.o poll.o preferences.o recode.o sample-display.o sample-editor.o scope-group.o st-subs.o time-buffer.o tips-dialog.o track-editor.o tracker.o tracker-settings.o transposition.o xm.o xm-player.o tracer.o scalablepic.o drivers/libdrivers.a mixers/libmixers.a -ljack -lpthread -ldl -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread -lgdk_pixbuf-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lsndfile -lSDL -lpthread main.o: In function `main': main.c:(.text+0xbc): undefined reference to `mixer_kbfloat' main.c:(.text+0xdf): undefined reference to `mixer_integer32' collect2: ld gab 1 als Ende-Status zurück make[3]: *** [soundtracker] Fehler 1
At this point it is a little hard to say what the problem is. Since mixer_kbfloat and mixer_integer32 are clearly defined in mixers. I will try to get access to 64-bit Gentoo to see if this is the problem. I only mention that for me (32-bit) everything seems to work correctly. This also can be a problem with configuration (automake, autoconf, ...).
Only a guess, but what a heck: Might be problem with missing linking in Makefile's exposed by LDFLAGS="-Wl,--as-needed"
(In reply to comment #10) > Only a guess, but what a heck: > Might be problem with missing linking in Makefile's exposed by > LDFLAGS="-Wl,--as-needed" I've tried LDFLAGS="Wl,-O1 -Wl,--as-needed" and for me it compiles anyway, but it is worth to try on Simon machine. On the other hand, a library mixers/libmixers.a (with mixer_kbfloat, mixer_integer32) seems to linked. Unless there is a problem with libmixers.a Simon can you try the following command after the ebuild fails: # nm /var/tmp/portage/media-sound/soundtracker-0.6.8-r1/work/soundtracker-0.6.8/app/mixers/libmixers.a | grep mixer_kbfloat You should obtain something like 00000000 D mixer_kbfloat and the same with mixer_integer32.
Simon, please attach also the output of 'emerge --info'
Bingo, libmixers.a is a textfile and does only contain "!<arch>" so nm doesnt produce any output. emerge --info (hmpf hate these emerge --info requests, but here you are ;) ): Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 21 Sep 2010 20:30:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.2 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.8.5-r4, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=core2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=core2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms sign strict unmerge-logs unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="rsync://192.168.0.20 http://gentoo.ussg.indiana.edu http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/root/system/overportage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 amr apache2 apic arch_perfmon berkdb bts bzip2 cdda cddax cdio cdrkit clflush cli cmov constant_tsc cracklib crypt css cuda cups cx16 cx8 cxx dbus de dirac dri ds_cpl dts dvd dvdr dvdread encode est exif ffmpeg flac fortran fpu ftp fxsr gd gdbm gif gimp glitz gpm gstreamer gtk hal ht iconv ida imagemagick iproute2 ipv6 ipw4965 jack jpeg kerberos kipi kqemu lahf_lm latex lm lm_sensors math mca mce mmx modules monitor mp3 mpeg msr mtrr mudflap multilib musicbrainz mysql ncurses nls nptl nptlonly nsplugin nx offensive ogg opengl openmp pae pam pat pbe pcmcia pcre pebs perl pge png pni pppd pse pse36 python qt qt3 qt3support readline reflection rep_good schroedinger sdl sep session spell ss sse sse2 ssl ssse3 svg syscall sysfs tcpd tetex threads thunar tiff tm tm2 tsc unicode usb v4l v4l2 vaapi vcd vim-syntax vme vmx vorbis vpx wifi wxwidgets wxwindows x264 xorg xtpr xulrunner xvid zlib zsh-completion" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" SANE_BACKENDS="primascan" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga v4l fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS