Bug 39574 - timidity doesn't compile with alsa 0.9.2
Summary: timidity doesn't compile with alsa 0.9.2
Status: RESOLVED INTENTIONAL
Alias: None
Product: kmidi
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Russell Miller
URL:
Keywords:
: 27332 58554 58995 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-20 15:18 UTC by Heiko Nock
Modified: 2003-10-28 21:49 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Nock 2002-03-20 15:08:11 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kmidi
Version:           KDE 2.9.2 CVS/CVSup/Snapshot
Severity:          normal
Installed from:    Compiled sources
Compiler:          gcc 2.96
OS:                Linux
OS/Compiler notes: Not Specified

Timidity in kmidi doesn't compile with alsa 0.9.0beta12 (and earlier it actually never compiled).

Here's the error message:

---------------snip------------------------
make[2]: Entering directory `/home/kdemultimedia-3.0rc3/kmidi'
Making all in config
make[3]: Entering directory `/home/kdemultimedia-3.0rc3/kmidi/config'
Making all in patch
make[4]: Entering directory `/home/kdemultimedia-3.0rc3/kmidi/config/patch'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/kdemultimedia-3.0rc3/kmidi/config/patch'
make[4]: Entering directory `/home/kdemultimedia-3.0rc3/kmidi/config'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/kdemultimedia-3.0rc3/kmidi/config'
make[3]: Leaving directory `/home/kdemultimedia-3.0rc3/kmidi/config'
Making all in bitmaps
make[3]: Entering directory `/home/kdemultimedia-3.0rc3/kmidi/bitmaps'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/kdemultimedia-3.0rc3/kmidi/bitmaps'
Making all in midis
make[3]: Entering directory `/home/kdemultimedia-3.0rc3/kmidi/midis'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/kdemultimedia-3.0rc3/kmidi/midis'
Making all in TIMIDITY
make[3]: Entering directory `/home/kdemultimedia-3.0rc3/kmidi/TIMIDITY'
source='alsa_a.c' object='alsa_a.o' libtool=no \
depfile='.deps/alsa_a.Po' tmpdepfile='.deps/alsa_a.TPo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/X11R6/include `/usr/local/kde/bin/artsc-config --cflags`  -DQT_THREAD_SUPPORT  -D_REENTRANT -DDEFAULT_PATH=\"//usr/local/kde/share/apps/kmidi/config\" -DAU_OSS -DAU_ALSA -DAU_ESD  -DIA_XAW -DQT_THREAD_SUPPORT  -D_REENTRANT  -fasm -O2   -c `test -f alsa_a.c || echo './'`alsa_a.c

alsa_a.c: In function `check_sound_cards':
alsa_a.c:153: storage size of `ctl_hw_info' isn't known
alsa_a.c:154: storage size of `pcm_info' isn't known
alsa_a.c:189: warning: passing arg 2 of `snd_ctl_open' makes pointer from integer without a cast
alsa_a.c:189: too few arguments to function `snd_ctl_open'
alsa_a.c:223: warning: passing arg 2 of `snd_ctl_pcm_info' makes pointer from integer without a cast
alsa_a.c:223: too many arguments to function `snd_ctl_pcm_info'
alsa_a.c:231: `SND_PCM_INFO_PLAYBACK' undeclared (first use in this function)
alsa_a.c:231: (Each undeclared identifier is reported only once
alsa_a.c:231: for each function it appears in.)
alsa_a.c: In function `set_playback_info':
alsa_a.c:265: `snd_pcm_channel_info_t' undeclared (first use in this function)
alsa_a.c:265: parse error before `playback_info'
alsa_a.c:271: storage size of `playback_params' isn't known
alsa_a.c:272: storage size of `playback_status' isn't known
alsa_a.c:273: storage size of `setup' isn't known
alsa_a.c:278: request for member `interleave' in something not a structure or union
alsa_a.c:281: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
alsa_a.c:282: `SND_PCM_MODE_BLOCK' undeclared (first use in this function)
alsa_a.c:284: `playback_info' undeclared (first use in this function)
alsa_a.c:308: request for member `rate' in something not a structure or union
alsa_a.c:317: request for member `voices' in something not a structure or union
alsa_a.c:319: request for member `voices' in something not a structure or union
alsa_a.c:325: `SND_PCM_FMT_S16_LE' undeclared (first use in this function)
alsa_a.c:327: request for member `format' in something not a structure or union
alsa_a.c:327: `SND_PCM_SFMT_S16_LE' undeclared (first use in this function)
alsa_a.c:330: `SND_PCM_FMT_U16_LE' undeclared (first use in this function)
alsa_a.c:332: request for member `format' in something not a structure or union
alsa_a.c:332: `SND_PCM_SFMT_U16_LE' undeclared (first use in this function)
alsa_a.c:335: `SND_PCM_FMT_S16_BE' undeclared (first use in this function)
alsa_a.c:337: request for member `format' in something not a structure or union
alsa_a.c:337: `SND_PCM_SFMT_S16_BE' undeclared (first use in this function)
alsa_a.c:340: `SND_PCM_FMT_U16_BE' undeclared (first use in this function)
alsa_a.c:342: request for member `format' in something not a structure or union
alsa_a.c:355: `SND_PCM_FMT_U8' undeclared (first use in this function)
alsa_a.c:357: request for member `format' in something not a structure or union
alsa_a.c:357: `SND_PCM_SFMT_U8' undeclared (first use in this function)
alsa_a.c:360: `SND_PCM_FMT_S8' undeclared (first use in this function)
alsa_a.c:362: request for member `format' in something not a structure or union
alsa_a.c:392: request for member `voices' in something not a structure or union
alsa_a.c:431: `SND_PCM_START_FULL' undeclared (first use in this function)
alsa_a.c:432: `SND_PCM_STOP_STOP' undeclared (first use in this function)
alsa_a.c: In function `open_output':
alsa_a.c:499: `SND_PCM_OPEN_PLAYBACK' undeclared (first use in this function)
alsa_a.c:499: `SND_PCM_OPEN_NONBLOCK' undeclared (first use in this function)
alsa_a.c:499: warning: passing arg 2 of `snd_pcm_open' makes pointer from integer without a cast
alsa_a.c:520: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
alsa_a.c: In function `playback_write_error':
alsa_a.c:567: `snd_pcm_channel_status_t' undeclared (first use in this function)
alsa_a.c:567: parse error before `status'
alsa_a.c:569: `status' undeclared (first use in this function)
alsa_a.c:570: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
alsa_a.c:575: `SND_PCM_STATUS_UNDERRUN' undeclared (first use in this function)
alsa_a.c:583: `SND_PCM_STATUS_READY' undeclared (first use in this function)
alsa_a.c:590: `SND_PCM_STATUS_RUNNING' undeclared (first use in this function)
alsa_a.c: In function `output_count':
alsa_a.c:614: storage size of `playback_status' isn't known
alsa_a.c: In function `flush_output':
alsa_a.c:662: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
alsa_a.c: In function `purge_output':
alsa_a.c:670: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
make[3]: *** [alsa_a.o] Error 1
--------------------------------------------



(Submitted via bugs.kde.org)
Comment 1 danarmak 2002-05-09 21:28:17 UTC
--Boundary_(ID_WdB5WizKqT0z6IxMpI+bnw)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello

I'm not sure if comments on (perhaps rather old) bugs are mailed to you 
'actively' so I'm ccing to you with the intent first of all to let you know 
this bug is still relevant and affects many people.

I'm one of the Gentoo Linux KDE packagers. We switched to alsa 0.9 (rc1) a 
little time ago and this problem (kdemm/kmidikmix don't compile) surfaced. 
All gentoo installs encounter this problem so we can do as much testing as 
we want. 

The problem exists in both 3.0/3.0.1 and cvs head (from about 5 days ago). 
Please request any additional information you may want etc. General Gentoo 
system characteristics: ix86 gcc-2.95.3 glibc-2.2.5 latest 2.4 kernels.

The error message is as far as I can tell identical to the one in the original 
bug report. (Certainly the first 15 or so lines). There's an extra warning 
just before the errors begin - "/usr/include/sys/asoundlib.h:1: warning: 
#warning This header is deprecated use <alsa/asoundlib.h> instead." but 
that's not relevant I changed the #include as indicated and nothing changed. 
The original report doesn't have that warning anyway.
It all looks like some mising includes but I couldn't find anything obvious 
to add and I don't know anything about alsa.

Skipping the building of kmidi there's another error on kmix (attached). 

I hope you can help me

- --
Dan Armak
Gentoo Linux developer (KDE)
Matan Israel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE82un1UI2RQ41fiVERAs0OAJ47Dq9xDtfLXnhpDCbsmpe8php84ACghkuA
+z3/i93+Cb74X17Yv3MF19g=
=sl3g
-----END PGP SIGNATURE-----

--Boundary_(ID_WdB5WizKqT0z6IxMpI+bnw)
Content-type: text/plain; charset=us-ascii; name=kmix-err.txt
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=kmix-err.txt

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG
-DNO_DEBUG -O2 -march=i686 -O3 -pipe -fomit-frame-pointer -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -c
kmix_panelapplet_la.all_cpp.cpp -Wp-MD.deps/kmix_panelapplet_la.all_cpp.TPlo  -fPIC -DPIC -o .libs/kmix_panelapplet_la.all_cpp.o
In file included from mixer_alsa.cpp:23
                 from kmix-platforms.cpp:71
                 from mixer.cpp:30
                 from kmix_panelapplet_la.all_cpp.cpp:5:
/usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated use <alsa/asoundlib.h> instead.
In file included from mixer_alsa.cpp:25
                 from kmix-platforms.cpp:71
                 from mixer.cpp:30
                 from kmix_panelapplet_la.all_cpp.cpp:5:
mixer_alsa.h:26: syntax error before `;'
mixer_alsa.h:27: syntax error before `*'
In file included from kmix-platforms.cpp:71
                 from mixer.cpp:30
                 from kmix_panelapplet_la.all_cpp.cpp:5:
mixer_alsa.cpp: In method `int Mixer_ALSA::identify(int const char *)':
mixer_alsa.cpp:33: `SND_MIXER_IN_SYNTHESIZER' undeclared (first use this function)
mixer_alsa.cpp:33: (Each undeclared identifier is reported only once
mixer_alsa.cpp:33: for each function it appears in.)
mixer_alsa.cpp:34: `SND_MIXER_IN_PCM' undeclared (first use this function)
mixer_alsa.cpp:35: `SND_MIXER_IN_DAC' undeclared (first use this function)
mixer_alsa.cpp:36: `SND_MIXER_IN_FM' undeclared (first use this function)
mixer_alsa.cpp:37: `SND_MIXER_IN_DSP' undeclared (first use this function)
mixer_alsa.cpp:38: `SND_MIXER_IN_LINE' undeclared (first use this function)
mixer_alsa.cpp:39: `SND_MIXER_IN_MIC' undeclared (first use this function)
mixer_alsa.cpp:40: `SND_MIXER_IN_CD' undeclared (first use this function)
mixer_alsa.cpp:41: `SND_MIXER_IN_VIDEO' undeclared (first use this function)
mixer_alsa.cpp:42: `SND_MIXER_IN_RADIO' undeclared (first use this function)
mixer_alsa.cpp:43: `SND_MIXER_IN_PHONE' undeclared (first use this function)
mixer_alsa.cpp:44: `SND_MIXER_IN_MONO' undeclared (first use this function)
mixer_alsa.cpp:45: `SND_MIXER_IN_SPEAKER' undeclared (first use this function)
mixer_alsa.cpp:46: `SND_MIXER_IN_AUX' undeclared (first use this function)
mixer_alsa.cpp:47: `SND_MIXER_IN_CENTER' undeclared (first use this function)
mixer_alsa.cpp:48: `SND_MIXER_IN_WOOFER' undeclared (first use this function)
mixer_alsa.cpp:49: `SND_MIXER_IN_SURROUND' undeclared (first use this function)
mixer_alsa.cpp:51: `SND_MIXER_OUT_MASTER' undeclared (first use this function)
mixer_alsa.cpp:56: `SND_MIXER_OUT_MASTER_MONO' undeclared (first use this function)
mixer_alsa.cpp:57: `SND_MIXER_OUT_MASTER_DIGITAL' undeclared (first use this function)
mixer_alsa.cpp:58: `SND_MIXER_OUT_HEADPHONE' undeclared (first use this function)
mixer_alsa.cpp:59: `SND_MIXER_OUT_PHONE' undeclared (first use this function)
mixer_alsa.cpp:60: `SND_MIXER_OUT_CENTER' undeclared (first use this function)
mixer_alsa.cpp:61: `SND_MIXER_OUT_WOOFER' undeclared (first use this function)
mixer_alsa.cpp:62: `SND_MIXER_OUT_SURROUND' undeclared (first use this function)
mixer_alsa.cpp:63: `SND_MIXER_OUT_DSP' undeclared (first use this function)
mixer_alsa.cpp: In method `Mixer_ALSA::Mixer_ALSA(int = -1 int = -1)':
mixer_alsa.cpp:84: class `Mixer_ALSA' does not have any field named `gid'
mixer_alsa.cpp:86: `groups' undeclared (first use this function)
mixer_alsa.cpp: At top level:
mixer_alsa.cpp:95: `snd_mixer_group_t' was not declared in this scope
mixer_alsa.cpp:95: `grp' was not declared in this scope
mixer_alsa.cpp:96: variable or field `printGroup' declared void
mixer_alsa.cpp:96: syntax error before `{'
mixer_alsa.cpp:98: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:98: parse error before `<'
mixer_alsa.cpp:100: `grp' undeclared (first use this function)
mixer_alsa.cpp:100: parse error before `;'
mixer_alsa.cpp:100: syntax error before `++'
mixer_alsa.cpp:103: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:103: redefinition of `int kndDebug()'
mixer_alsa.cpp:98: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:103: parse error before `<'
mixer_alsa.cpp:104: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:104: redefinition of `int kndDebug()'
mixer_alsa.cpp:103: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:104: parse error before `<'
mixer_alsa.cpp:105: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:105: redefinition of `int kndDebug()'
mixer_alsa.cpp:104: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:105: parse error before `<'
mixer_alsa.cpp:106: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:106: redefinition of `int kndDebug()'
mixer_alsa.cpp:105: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:106: parse error before `<'
mixer_alsa.cpp:107: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:107: redefinition of `int kndDebug()'
mixer_alsa.cpp:106: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:107: parse error before `<'
mixer_alsa.cpp:108: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:108: redefinition of `int kndDebug()'
mixer_alsa.cpp:107: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:108: parse error before `<'
mixer_alsa.cpp:109: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:109: redefinition of `int kndDebug()'
mixer_alsa.cpp:108: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:109: parse error before `<'
mixer_alsa.cpp:110: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:110: redefinition of `int kndDebug()'
mixer_alsa.cpp:109: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:110: parse error before `<'
mixer_alsa.cpp:111: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:111: redefinition of `int kndDebug()'
mixer_alsa.cpp:110: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:111: parse error before `<'
mixer_alsa.cpp:112: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:112: redefinition of `int kndDebug()'
mixer_alsa.cpp:111: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:112: parse error before `<'
mixer_alsa.cpp:113: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:113: redefinition of `int kndDebug()'
mixer_alsa.cpp:112: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:113: parse error before `<'
mixer_alsa.cpp:114: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:114: redefinition of `int kndDebug()'
mixer_alsa.cpp:113: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:114: parse error before `<'
mixer_alsa.cpp:115: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:115: redefinition of `int kndDebug()'
mixer_alsa.cpp:114: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:115: parse error before `<'
mixer_alsa.cpp: In method `int Mixer_ALSA::openMixer()':
mixer_alsa.cpp:130: implicit declaration of function `int snd_defaults_mixer_card(...)'
mixer_alsa.cpp:131: implicit declaration of function `int snd_defaults_mixer_device(...)'
/usr/include/alsa/mixer.h:84: too many arguments to function `int snd_mixer_open(snd_mixer_t ** int)'
mixer_alsa.cpp:134: at this point in file
mixer_alsa.cpp:139: implicit declaration of function `int snd_mixer_groups(...)'
mixer_alsa.cpp:143: `snd_mixer_gid_t' undeclared (first use this function)
mixer_alsa.cpp:143: parse error before `)'
mixer_alsa.cpp:152: `gid' undeclared (first use this function)
mixer_alsa.cpp:155: `snd_mixer_group_t' undeclared (first use this function)
mixer_alsa.cpp:155: parse error before `;'
mixer_alsa.cpp:156: `group' undeclared (first use this function)
mixer_alsa.cpp:158: implicit declaration of function `int snd_mixer_group_read(...)'
mixer_alsa.cpp:167: `SND_MIXER_GRPCAP_VOLUME' undeclared (first use this function)
mixer_alsa.cpp:171: `SND_MIXER_GRPCAP_CAPTURE' undeclared (first use this function)
mixer_alsa.cpp:196: `snd_mixer_info_t' undeclared (first use this function)
mixer_alsa.cpp:196: parse error before `;'
mixer_alsa.cpp:197: `info' undeclared (first use this function)
mixer_alsa.cpp:197: implicit declaration of function `int snd_mixer_info(...)'
mixer_alsa.cpp: In method `bool Mixer_ALSA::isRecsrcHW(int)':
mixer_alsa.cpp:217: parse error before `;'
mixer_alsa.cpp:222: `SND_MIXER_CHN_MASK_FRONT_LEFT' undeclared (first use this function)
mixer_alsa.cpp: In method `bool Mixer_ALSA::setRecsrcHW(int bool)':
/usr/include/alsa/mixer.h:84: too many arguments to function `int snd_mixer_open(snd_mixer_t ** int)'
mixer_alsa.cpp:227: at this point in file
mixer_alsa.cpp:231: parse error before `;'
mixer_alsa.cpp:242: implicit declaration of function `int snd_mixer_group_write(...)'
mixer_alsa.cpp: In method `int Mixer_ALSA::readVolumeFromHW(int Volume &)':
mixer_alsa.cpp:265: parse error before `;'
mixer_alsa.cpp: In method `int Mixer_ALSA::writeVolumeToHW(int Volume)':
/usr/include/alsa/mixer.h:84: too many arguments to function `int snd_mixer_open(snd_mixer_t ** int)'
mixer_alsa.cpp:307: at this point in file
mixer_alsa.cpp:311: parse error before `;'
In file included from mixer_oss.cpp:28
                 from kmix-platforms.cpp:75
                 from mixer.cpp:30
                 from kmix_panelapplet_la.all_cpp.cpp:5:
/usr/include/sys/stat.h:201: non-local function `int stat(const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type
`Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:205: non-local function `int fstat(int Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type
`Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:229: non-local function `int lstat(const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type
`Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:306: non-local function `int __fxstat(int int Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type
`Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:308: non-local function `int __xstat(int const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type
`Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:310: non-local function `int __lxstat(int const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type
`Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:345: non-local function `int stat(const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type
`Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h: In function `int stat(const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)':
/usr/include/sys/stat.h:347: confused by earlier errors bailing out
cpp0: output pipe has been closed
make[1]: *** [kmix_panelapplet_la.all_cpp.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0-r2/work/kdemultimedia-3.0/kmix'
make: *** [all-recursive] Error 1

--Boundary_(ID_WdB5WizKqT0z6IxMpI+bnw)--
Comment 2 Alan W. Irwin 2002-05-24 21:44:55 UTC
To Bernd Wuebben:

I have a kdemultimedia/kmix build problem for KDE 3.0.1 on Debian woody
which is similar to what Dan reported recently for gentoo Linux.

I configured kdemultimedia --with-alsa. My version of alsa is
0.9.0beta10a but I am certainly willing to upgrade to alsa 0.9rc1 if that
is necessary. Also note that despite my Debian woody system I am using the
usual KDE build recommended by the KDE web pages with cvs tagged at
KDE_3_0_1_RELEASE rather than the patched debian build.)

Before I list the build error messages I want to take this opportunity to
urge you to please fix the alsa-0.9 build support for kdemultimedia.  I
notice alsa is now part of kernel 2.5 and also 0.9rc1 is now available on
the alsa site at http://www.alsa-project.org/.  So I suggest a useful goal
would be to fix kdemultimedia so it works with alsa 0.9rc1.

From the same site

"*** N.B. The 0.5.x series is considered deprecated and is no longer supported by ALSA
developers ***"

Here are the build error messages I received:

...
make[3]: Entering directory `/home/software/kde2_download/debian_athlon_20020523/kdemultimedia/kmix'
source='mixer.cpp' object='mixer.lo' libtool=yes \
depfile='.deps/mixer.Plo' tmpdepfile='.deps/mixer.TPlo' \
depmode=gcc /bin/sh ../admin/depcomp \
/bin/sh ../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/home/software/kde2_download/debian_athlon_20020523/kde2_location/include -I/home/software/kde2_download/debian_athlon_20020523/qt-copy/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST  -c -o mixer.lo `test -f mixer.cpp || echo './'`mixer.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/home/software/kde2_download/debian_athlon_20020523/kde2_location/include -I/home/software/kde2_download/debian_athlon_20020523/qt-copy/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -c mixer.cpp -Wp-MD.deps/mixer.TPlo  -fPIC -DPIC -o .libs/mixer.o
In file included from mixer_alsa.cpp:23
                 from kmix-platforms.cpp:71
                 from mixer.cpp:30:
/usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated use <alsa/asoundlib.h> instead.
In file included from mixer_alsa.cpp:25
                 from kmix-platforms.cpp:71
                 from mixer.cpp:30:
mixer_alsa.h:26: syntax error before `;'
mixer_alsa.h:27: syntax error before `*'
In file included from kmix-platforms.cpp:71
                 from mixer.cpp:30:
mixer_alsa.cpp: In method `int Mixer_ALSA::identify(int const char *)':
mixer_alsa.cpp:35: `SND_MIXER_IN_SYNTHESIZER' undeclared (first use this function)
mixer_alsa.cpp:35: (Each undeclared identifier is reported only once
mixer_alsa.cpp:35: for each function it appears in.)
mixer_alsa.cpp:36: `SND_MIXER_IN_PCM' undeclared (first use this function)
mixer_alsa.cpp:37: `SND_MIXER_IN_DAC' undeclared (first use this function)
mixer_alsa.cpp:38: `SND_MIXER_IN_FM' undeclared (first use this function)
mixer_alsa.cpp:39: `SND_MIXER_IN_DSP' undeclared (first use this function)
mixer_alsa.cpp:40: `SND_MIXER_IN_LINE' undeclared (first use this function)
mixer_alsa.cpp:41: `SND_MIXER_IN_MIC' undeclared (first use this function)
mixer_alsa.cpp:42: `SND_MIXER_IN_CD' undeclared (first use this function)
mixer_alsa.cpp:43: `SND_MIXER_IN_VIDEO' undeclared (first use this function)
mixer_alsa.cpp:44: `SND_MIXER_IN_RADIO' undeclared (first use this function)
mixer_alsa.cpp:45: `SND_MIXER_IN_PHONE' undeclared (first use this function)
mixer_alsa.cpp:46: `SND_MIXER_IN_MONO' undeclared (first use this function)
mixer_alsa.cpp:47: `SND_MIXER_IN_SPEAKER' undeclared (first use this function)
mixer_alsa.cpp:48: `SND_MIXER_IN_AUX' undeclared (first use this function)
mixer_alsa.cpp:49: `SND_MIXER_IN_CENTER' undeclared (first use this function)
mixer_alsa.cpp:50: `SND_MIXER_IN_WOOFER' undeclared (first use this function)
mixer_alsa.cpp:51: `SND_MIXER_IN_SURROUND' undeclared (first use this function)
mixer_alsa.cpp:53: `SND_MIXER_OUT_MASTER' undeclared (first use this function)
mixer_alsa.cpp:58: `SND_MIXER_OUT_MASTER_MONO' undeclared (first use this function)
mixer_alsa.cpp:59: `SND_MIXER_OUT_MASTER_DIGITAL' undeclared (first use this function)
mixer_alsa.cpp:60: `SND_MIXER_OUT_HEADPHONE' undeclared (first use this function)
mixer_alsa.cpp:61: `SND_MIXER_OUT_PHONE' undeclared (first use this function)
mixer_alsa.cpp:62: `SND_MIXER_OUT_CENTER' undeclared (first use this function)
mixer_alsa.cpp:63: `SND_MIXER_OUT_WOOFER' undeclared (first use this function)
mixer_alsa.cpp:64: `SND_MIXER_OUT_SURROUND' undeclared (first use this function)
mixer_alsa.cpp:65: `SND_MIXER_OUT_DSP' undeclared (first use this function)
mixer_alsa.cpp: In method `Mixer_ALSA::Mixer_ALSA(int = -1 int = -1)':
mixer_alsa.cpp:86: class `Mixer_ALSA' does not have any field named `gid'
mixer_alsa.cpp:88: `groups' undeclared (first use this function)
mixer_alsa.cpp: At top level:
mixer_alsa.cpp:97: `snd_mixer_group_t' was not declared in this scope
mixer_alsa.cpp:97: `grp' was not declared in this scope
mixer_alsa.cpp:98: variable or field `printGroup' declared void
mixer_alsa.cpp:98: syntax error before `{'
mixer_alsa.cpp:100: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:100: parse error before `<'
mixer_alsa.cpp:102: `grp' undeclared (first use this function)
mixer_alsa.cpp:102: parse error before `;'
mixer_alsa.cpp:102: syntax error before `++'
mixer_alsa.cpp:105: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:105: redefinition of `int kndDebug()'
mixer_alsa.cpp:100: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:105: parse error before `<'
mixer_alsa.cpp:106: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:106: redefinition of `int kndDebug()'
mixer_alsa.cpp:105: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:106: parse error before `<'
mixer_alsa.cpp:107: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:107: redefinition of `int kndDebug()'
mixer_alsa.cpp:106: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:107: parse error before `<'
mixer_alsa.cpp:108: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:108: redefinition of `int kndDebug()'
mixer_alsa.cpp:107: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:108: parse error before `<'
mixer_alsa.cpp:109: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:109: redefinition of `int kndDebug()'
mixer_alsa.cpp:108: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:109: parse error before `<'
mixer_alsa.cpp:110: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:110: redefinition of `int kndDebug()'
mixer_alsa.cpp:109: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:110: parse error before `<'
mixer_alsa.cpp:111: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:111: redefinition of `int kndDebug()'
mixer_alsa.cpp:110: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:111: parse error before `<'
mixer_alsa.cpp:112: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:112: redefinition of `int kndDebug()'
mixer_alsa.cpp:111: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:112: parse error before `<'
mixer_alsa.cpp:113: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:113: redefinition of `int kndDebug()'
mixer_alsa.cpp:112: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:113: parse error before `<'
mixer_alsa.cpp:114: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:114: redefinition of `int kndDebug()'
mixer_alsa.cpp:113: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:114: parse error before `<'
mixer_alsa.cpp:115: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:115: redefinition of `int kndDebug()'
mixer_alsa.cpp:114: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:115: parse error before `<'
mixer_alsa.cpp:116: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:116: redefinition of `int kndDebug()'
mixer_alsa.cpp:115: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:116: parse error before `<'
mixer_alsa.cpp:117: ANSI C++ forbids declaration `kndDebug' with no type
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:117: redefinition of `int kndDebug()'
mixer_alsa.cpp:116: `int kndDebug()' previously defined here
mixer_alsa.cpp: In function `int kndDebug()':
mixer_alsa.cpp:117: parse error before `<'
mixer_alsa.cpp: In method `int Mixer_ALSA::openMixer()':
mixer_alsa.cpp:132: implicit declaration of function `int snd_defaults_mixer_card(...)'
mixer_alsa.cpp:133: implicit declaration of function `int snd_defaults_mixer_device(...)'
/usr/include/alsa/mixer.h:84: too many arguments to function `int snd_mixer_open(snd_mixer_t ** int)'
mixer_alsa.cpp:136: at this point in file
mixer_alsa.cpp:141: implicit declaration of function `int snd_mixer_groups(...)'
mixer_alsa.cpp:145: `snd_mixer_gid_t' undeclared (first use this function)
mixer_alsa.cpp:145: parse error before `)'
mixer_alsa.cpp:154: `gid' undeclared (first use this function)
mixer_alsa.cpp:157: `snd_mixer_group_t' undeclared (first use this function)
mixer_alsa.cpp:157: parse error before `;'
mixer_alsa.cpp:158: `group' undeclared (first use this function)
mixer_alsa.cpp:160: implicit declaration of function `int snd_mixer_group_read(...)'
mixer_alsa.cpp:169: `SND_MIXER_GRPCAP_VOLUME' undeclared (first use this function)
mixer_alsa.cpp:173: `SND_MIXER_GRPCAP_CAPTURE' undeclared (first use this function)
mixer_alsa.cpp:198: `snd_mixer_info_t' undeclared (first use this function)
mixer_alsa.cpp:198: parse error before `;'
mixer_alsa.cpp:199: `info' undeclared (first use this function)
mixer_alsa.cpp:199: implicit declaration of function `int snd_mixer_info(...)'
mixer_alsa.cpp: In method `bool Mixer_ALSA::isRecsrcHW(int)':
mixer_alsa.cpp:219: parse error before `;'
mixer_alsa.cpp:224: `SND_MIXER_CHN_MASK_FRONT_LEFT' undeclared (first use this function)
mixer_alsa.cpp: In method `bool Mixer_ALSA::setRecsrcHW(int bool)':
/usr/include/alsa/mixer.h:84: too many arguments to function `int snd_mixer_open(snd_mixer_t ** int)'
mixer_alsa.cpp:229: at this point in file
mixer_alsa.cpp:233: parse error before `;'
mixer_alsa.cpp:244: implicit declaration of function `int snd_mixer_group_write(...)'
mixer_alsa.cpp: In method `int Mixer_ALSA::readVolumeFromHW(int Volume &)':
mixer_alsa.cpp:267: parse error before `;'
mixer_alsa.cpp: In method `int Mixer_ALSA::writeVolumeToHW(int Volume)':
/usr/include/alsa/mixer.h:84: too many arguments to function `int snd_mixer_open(snd_mixer_t ** int)'
mixer_alsa.cpp:309: at this point in file
mixer_alsa.cpp:313: parse error before `;'
In file included from mixer_oss.cpp:28
                 from kmix-platforms.cpp:75
                 from mixer.cpp:30:
/usr/include/sys/stat.h:201: non-local function `int stat(const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type `Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:205: non-local function `int fstat(int Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type `Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:229: non-local function `int lstat(const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type `Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:306: non-local function `int __fxstat(int int Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type `Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:308: non-local function `int __xstat(int const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type `Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:310: non-local function `int __lxstat(int const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type `Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h:345: non-local function `int stat(const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)' uses local type `Mixer_ALSA::writeVolumeToHW(int Volume)::stat'
/usr/include/sys/stat.h: In function `int stat(const char * Mixer_ALSA::writeVolumeToHW(int Volume)::stat *)':
/usr/include/sys/stat.h:347: confused by earlier errors bailing out
make[3]: *** [mixer.lo] Error 1
...

Alan W. Irwin

email: irwin@beluga.phys.uvic.ca
phone: 250-727-2902FAX: 250-721-7715
snail-mail:
Dr. Alan W. Irwin
Department of Physics and Astronomy
University of Victoria P.O. Box 3055
Victoria British Columbia Canada V8W 3P6
__________________________

Linux-powered astrophysics
__________________________
Comment 3 Ken Zalewski 2002-07-14 13:28:34 UTC
This has been mentioned in the kdemultimedia mailing list before but 
HAS NOT BEEN ADDRESSED including in the recent KDE 3.0.2 release.

ALSA 0.5.x has been DEPRECATED for a while now.

ALSA 0.9.0rc2 is the current version and the ALSA developers recommend 
that all users should be using 0.9.x.

artsd supports both ALSA 0.5 and 0.9.

However kdemultimedia is still after many reports assuming ALSA 0.5.x.

In kmidi/alsa_a.cpp there are tons of ALSA macros that exist only in 
0.5.x.  Others have reported additional modules with ALSA 0.5.x references.

Is someone going to fix this and if not what can we do about it? 
Installing a deprecated version of ALSA is *not* a valid answer.

Is anyone maintaining this package and responding to issues?  Should I 
open up a new bug report?  I find it hard to believe that this issue 
would have gone unresolved (and unresponded to) since May 24 2002 
especially with a bug-fix release (3.0.2) just published.

Any information is appreciated.  I can't finish compiling KDE 3.0.2 
until this is resolved (or I decide to backrev to Alsa 0.5.x).

Sincerely

Ken Zalewski
Comment 4 danarmak 2002-07-15 21:45:39 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello

Some info on behalf of the kdemultimedia devs:

1. I posted about this on the kde-multimedia@kde.org list some time ago th=
e=20
devs there are certainly aware of the problem but do not (or did not) inten=
d=20
to fix this in the near term. Of course if one of them speaks up and says I=
'm=20
wrong I'll gladly stand corrected :-)

2. You can install the alsa-oss package (whatver it may be called on your=
=20
distro) which provides OSS compatibility devices for ALSA. This is useful=
=20
anyway because many apps only support oss not alsa. And that way you can g=
et=20
kdemultimedia apps to work (i.e. direct them to the oss emulation).=20

- --=20
Dan Armak
Gentoo Linux developer (KDE)
Matan Israel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9M0KDUI2RQ41fiVERAgidAJ9CPCjelsx/Pymd0ZlLdv7+3kdtSgCfYr9v
cv8taa8ZPesky4hvzYoyTAE=3D
=3D4sEg
-----END PGP SIGNATURE-----
Comment 5 mike 2002-12-20 11:38:53 UTC
This issue is still present in HEAD CVS as of 5 minutes ago... 
 
Is there any news of it getting fixed? :) 
 
Cheers 
Mike 
Comment 6 Rex Dieter 2003-04-14 21:55:40 UTC
Still present, kdemutlimedia-3.1.1, same failure against alsa 0.9.2 
Comment 7 Rex Dieter 2003-05-20 16:48:04 UTC
*** Bug 58554 has been marked as a duplicate of this bug. ***
Comment 8 Russell Miller 2003-07-03 19:40:48 UTC
I am assuming that this is still a problem.  Is this a correct assumption? 
 
If so, it's probably high time we started to fix it.  I've taken over maintainership of kmidi.  
We'll go from there.  Your help in testing fixes will be appreciated. 
 
--Russell 
Comment 9 Ing. Jozef Sakalos 2003-07-06 00:05:38 UTC
Subject: Re:  timidity doesn't compile with alsa 0.9.2

>I am assuming that this is still a problem.  Is
> this a correct assumption?

Yes, the problem is still there.

Best regards,
Ing. Jozef Sakalos
jsakalos@ba.success.sk

Comment 10 Russell Miller 2003-07-06 03:49:42 UTC
Subject: Re:  timidity doesn't compile with alsa 0.9.2

I've tracked down the cause of this bug.  repairing it is not going to be 
simple.   The problem is with timidity and not with kmidi proper, and in 
order to fix it I'm going to have to rip out huge chunks of the code and 
rewrite it to use the new version of timidity.

I'm really tempted to just let you start timidity as a server and connect to 
it - without a KDE dependency.

I'll let you know.

--Russell

On Sat July 5 2003 5:05 pm, Ing.Jozef Sakalos wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=39574
>
>
>
>
> ------- Additional Comments From jsakalos@ba.success.sk  2003-07-06 00:05
> ------- Subject: Re:  timidity doesn't compile with alsa 0.9.2
>
> >I am assuming that this is still a problem.  Is
> > this a correct assumption?
>
> Yes, the problem is still there.
>
> Best regards,
> Ing. Jozef Sakalos
> jsakalos@ba.success.sk

Comment 11 Russell Miller 2003-07-06 06:50:34 UTC
*** Bug 58995 has been marked as a duplicate of this bug. ***
Comment 12 Russell Miller 2003-07-06 06:53:48 UTC
*** Bug 27332 has been marked as a duplicate of this bug. ***
Comment 13 Stephan Binner 2003-10-28 21:49:12 UTC
kmidi development has stopped and it has been dropped for KDE 3.2.