Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48985 - alsa-tools will not compile
Summary: alsa-tools will not compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-25 18:06 UTC by Harold Martin
Modified: 2004-05-31 00:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harold Martin 2004-04-25 18:06:09 UTC
I get this error when trying to emerge stable alsa-tools:
Making all in src
make[1]: Entering directory `/var/tmp/portage/alsa-tools-1.0.3/work/alsa-tools-1.0.3/hdspconf/src'
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"hdspconf\" -DVERSION=\"1.4\" -DSTDC_HEADERS=1 -DHAVE_LIBASOUND=1  -I. -I.   -I/usr/include/fltk-1.1  -O3 -march=athlon-mp -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer  -I/usr/include/fltk-1.1 -I/usr/include/freetype2 -O3 -march=athlon-mp -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer -I/usr/X11R6/include -fno-exceptions -MT hdspconf.o -MD -MP -MF ".deps/hdspconf.Tpo" \
  -c -o hdspconf.o `test -f 'hdspconf.cxx' || echo './'`hdspconf.cxx; \
then mv -f ".deps/hdspconf.Tpo" ".deps/hdspconf.Po"; \
else rm -f ".deps/hdspconf.Tpo"; exit 1; \
fi
hdspconf.cxx:27:24: sound/hdsp.h: No such file or directory
In file included from hdspconf.cxx:32:
HC_CardPane.h:26:24: sound/hdsp.h: No such file or directory
In file included from hdspconf.cxx:32:
HC_CardPane.h:60: error: type specifier omitted for parameter `HDSP_IO_Type'
HC_CardPane.h:60: error: parse error before `)' token
HC_CardPane.h:76: error: 'HDSP_IO_Type' is used as a type, but is not defined
   as a type.
HC_CardPane.h:58: error: base `Fl_Group' with only non-default constructor in
   class without a constructor
hdspconf.cxx: In function `void refresh_cb(void*)':
hdspconf.cxx:50: error: `hdsp_config_info_t' undeclared (first use this
   function)
hdspconf.cxx:50: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
hdspconf.cxx:50: error: parse error before `;' token
hdspconf.cxx:64: error: `SNDRV_HDSP_IOCTL_GET_CONFIG_INFO' undeclared (first
   use this function)
hdspconf.cxx:64: error: `config_info' undeclared (first use this function)
hdspconf.cxx:77: error: `H9632' undeclared (first use this function)
hdspconf.cxx:80: error: `Digiface' undeclared (first use this function)
hdspconf.cxx:80: error: `H9652' undeclared (first use this function)
hdspconf.cxx: In function `int main(int, char**)':
hdspconf.cxx:123: error: `HDSP_IO_Type' undeclared (first use this function)
hdspconf.cxx:123: error: parse error before `[' token
hdspconf.cxx:156: error: `hdsp_cards' undeclared (first use this function)
hdspconf.cxx:156: error: `Multiface' undeclared (first use this function)
make[1]: *** [hdspconf.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/alsa-tools-1.0.3/work/alsa-tools-1.0.3/hdspconf/src'
make: *** [all-recursive] Error 1
 
!!! ERROR: media-sound/alsa-tools-1.0.3 failed.
!!! Function src_compile, Line 68, Exitcode 2
!!! make failed

emerge info:
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-rc2)
=================================================================
System uname: 2.6.5-rc2 i686 AMD Athlon(tm) MP 2600+
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-mp -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-mp -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm avi berkdb bonobo cdr composite crypt cups curl dri dvd emacs encode esd evo foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml imagemagick imlib jpeg libg++ libgda libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls nocardbus nocd oggvorbis opengl oss pam pdflib perl plotutils png ppds python quicktime readline sdl slang spell sse ssl svga tcltk tcpd truetype usb video_cards_radeon wmf x86 xinerama xml2 xmms xv zlib"
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-25 23:51:32 UTC
what version of alsa-driver do you have installed?
Comment 2 Harold Martin 2004-04-26 07:19:48 UTC
I do not have alsa-driver installed since I have ALSA compiled in kernel.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-26 09:03:36 UTC
ok, well what version of linux-headers do you have installed?
Comment 4 Harold Martin 2004-04-27 07:59:46 UTC
Linux headers version 2.4.21-r1
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-27 10:20:32 UTC
you need to be using linux-headers-2.6 since you're using a 2.6 kernel... but it looks like all of them are masked right now...

try adding '-I/usr/src/linux/include/linux' or '-I/usr/src/linux/include' to your CFLAGS.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-02 18:51:10 UTC
can you please try the fix mentioned above?
Comment 7 Harold Martin 2004-05-02 19:33:16 UTC
Attepmting to execute
# CFLAGS="-I/usr/src/linux/include/linux" emerge media-sound/alsa-tools
fails with this:
checking for libasound headers version >= 1.0.0... not present.
configure: error: Sufficiently new version of libasound not found.
 
!!! ERROR: media-sound/alsa-tools-1.0.3 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-15 00:39:16 UTC
it is actually /usr/src/linux/include, not /usr/src/linux/include/linux

Did you try that one?
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-31 00:35:09 UTC
use media-sound/alsa-driver rather than in-kernel drivers or add the option to CFLAGS that I suggested.