[linux-audio-user] hdspmixer segfault amd64
thomas charbonnel
thomas at undata.org
Sat Mar 5 13:49:32 EST 2005
anton at japan.com wrote :
> hi
>
> i am using gentoo linux with 2.6.9 amd64 kernel
> alsa driver 1.0.7-rc3, firmware 1.0.6 and utils 1.0.7
>
> hdsploader and hdspconf works
> unmuting using amixer and aplay works too
>
> but hdspmixer crashes:
>
> HDSPMixer 1.6 - Copyright (C) 2003 Thomas Charbonnel <thomas at undata.org>
> This program comes with ABSOLUTELY NO WARRANTY
> HDSPMixer is free software, see the file COPYING for details
>
> Looking for HDSP cards :
> Card 0 : NVidia CK8S with ALC850 at 0xeb001000, irq 11
> Card 1 : RME Hammerfall DSP + Multiface at 0xea000000, irq 10
> Multiface found !
> 1 Hammerfall DSP card found.
> Initializing default presets
> Segmentation fault
>
> i think i have read something about a fix for 64bit regarding
> hdsp things in alsa 1.0.7-rc2 ... so i must have it allready?
>
> i dont know if i should use alsa 1.0.8 because it is marked
> unstable for amd64 in gentoo portage
>
> ps: i would be thankful if someone can tell me how to search
> this mailing list if possible
Hi,
This problem is caused by fltk. There is a bug in fl_draw_pixmap in
version 1.1.4 on amd64. FYI hdspconf is affected also (it should
segfault also if you switch to the About tab, as it uses
fl_draw_pixmap). I filed a gentoo bug report but got no answer yet (and
probably won't, that was a month ago...). You need to install a more
recent fltk version (1.1.6 is the current). I attached an ebuild for it.
You'll have to download the .bz2 sources from fltk.org and put them in
your distfiles directory. Then run "ebuild /path/to/fltk-1.1.6.ebuild
digest" and emerge.
Thomas
-------------- next part --------------
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.1.4.ebuild,v 1.12 2004/12/16 08:45:55 corsair Exp $
IUSE="opengl debug nptl"
inherit eutils toolchain-funcs
DESCRIPTION="C++ user interface toolkit for X and OpenGL."
HOMEPAGE="http://www.fltk.org"
SRC_URI="ftp://ftp.easysw.com/pub/fltk/${PV}/${P}-source.tar.bz2"
KEYWORDS="x86 ppc sparc alpha amd64 ~mips ppc64"
LICENSE="FLTK GPL-2"
PV_MAJOR=${PV/.*/}
PV_MINOR=${PV#${PV_MAJOR}.}
PV_MINOR=${PV_MINOR/.*}
SLOT="${PV_MAJOR}.${PV_MINOR}"
INCDIR=/usr/include/fltk-${SLOT}
LIBDIR=/usr/lib/fltk-${SLOT}
DEPEND="virtual/x11
virtual/xft
media-libs/libpng
media-libs/jpeg
opengl? ( virtual/opengl )"
src_unpack() {
unpack ${A}
cd ${S}
#epatch ${FILESDIR}/libs.diff || die "patch failed"
}
src_compile() {
local myconf
myconf="--enable-shared --enable-xdbe --enable-xft --enable-static"
use debug && myconf="${myconf} --enable-debug"
use opengl || myconf="${myconf} --disable-gl"
# The fltk threading code doesn't work with nptl
# See bug #26569
use nptl && myconf="${myconf} --disable-threads" \
|| myconf="${myconf} --enable-threads"
# needed for glibc-2.3.1 (as far as i can test)
# otherwise libstdc++ won't be linked. #17894 and #15572
# doesn't happen for glibc-2.3.2 - <liquidx at gentoo.org>
export CXX="g++ -fPIC"
export CC=$(tc-getCC)
# bug #19894
export C_INCLUDE_PATH="${C_INCLUDE_PATH}:/usr/include/freetype2"
export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:/usr/include/freetype2"
econf \
--includedir=${INCDIR}\
--libdir=${LIBDIR} \
${myconf} || die "Configuration Failed"
emake || die "Parallel Make Failed"
}
src_install() {
einstall \
includedir=${D}${INCDIR} \
libdir=${D}${LIBDIR} || die "Installation Failed"
ranlib ${D}${LIBDIR}/*.a
dodoc CHANGES COPYING README
echo "LDPATH=${LIBDIR}" > 99fltk-${SLOT}
insinto /etc/env.d
doins 99fltk-${SLOT}
dodir /usr/share/doc/${P}/html
mv ${D}/usr/share/doc/fltk/* ${D}/usr/share/doc/${PF}/html
rmdir ${D}/usr/share/doc/fltk
}
More information about the Linux-audio-user
mailing list