LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Alsa utils doesn't want to compile for some reason... (https://www.linuxquestions.org/questions/linux-hardware-18/alsa-utils-doesnt-want-to-compile-for-some-reason-393494/)

mogua 12-16-2005 03:57 AM

Alsa utils doesn't want to compile for some reason...
 
Hi!

I've been having trouble getting my SuSE 9.2 Pro (kernel 2.6.11) system to play midi files over my Sound Blaster Live! Platinum card (predecessor to the 5.1 version). Sound works ok, but midi just won't play. So, I decided to update my ALSA to the latest version.

First, I tried downloading the CVS. Compiling went ok until reaching the alsa-utils directory at which point it stopped with error messages. I thought that was due to broken CVS code, so I downloaded the stable release. Compiling the driver went ok. Then I wanted to compile the alsa-util directory so I can use the alsaconf tool to detect my sound card and update the modules.conf and stuff. Again, I encountered the same error message I had received when trying to compile the CVS source. So, I figured something is not right with my setup! Here is the complete error message when I try to compile the alsa-util directory:

-------------------------------------------------------------
ghostrider:/home/james/alsa/alsa-utils-1.0.10 # make
Making all in include
make[1]: Entering directory `/home/james/alsa/alsa-utils-1.0.10/include'
make all-am
make[2]: Entering directory `/home/james/alsa/alsa-utils-1.0.10/include'
make[2]: Leaving directory `/home/james/alsa/alsa-utils-1.0.10/include'
make[1]: Leaving directory `/home/james/alsa/alsa-utils-1.0.10/include'
Making all in alsactl
make[1]: Entering directory `/home/james/alsa/alsa-utils-1.0.10/alsactl'
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -MT alsactl.o -MD -MP -MF ".deps/alsactl.Tpo" \
-c -o alsactl.o `test -f 'alsactl.c' || echo './'`alsactl.c; \
then mv -f ".deps/alsactl.Tpo" ".deps/alsactl.Po"; \
else rm -f ".deps/alsactl.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -MT state.o -MD -MP -MF ".deps/state.Tpo" \
-c -o state.o `test -f 'state.c' || echo './'`state.c; \
then mv -f ".deps/state.Tpo" ".deps/state.Po"; \
else rm -f ".deps/state.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -MT power.o -MD -MP -MF ".deps/power.Tpo" \
-c -o power.o `test -f 'power.c' || echo './'`power.c; \
then mv -f ".deps/power.Tpo" ".deps/power.Po"; \
else rm -f ".deps/power.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -MT names.o -MD -MP -MF ".deps/names.Tpo" \
-c -o names.o `test -f 'names.c' || echo './'`names.c; \
then mv -f ".deps/names.Tpo" ".deps/names.Po"; \
else rm -f ".deps/names.Tpo"; exit 1; \
fi
gcc -g -O2 -o alsactl alsactl.o state.o power.o names.o -lasound -lm -ldl -lpthread
state.o(.text+0x3e9): In function `add_user_control':
/home/james/alsa/alsa-utils-1.0.10/alsactl/state.c:727: undefined reference to `snd_ctl_elem_add_iec958'
state.o(.text+0x420):/home/james/alsa/alsa-utils-1.0.10/alsactl/state.c:721: undefined reference to `snd_ctl_elem_add_integer'
state.o(.text+0x431):/home/james/alsa/alsa-utils-1.0.10/alsactl/state.c:724: undefined reference to `snd_ctl_elem_add_boolean'
state.o(.text+0x202a): In function `get_control':
/home/james/alsa/alsa-utils-1.0.10/alsactl/state.c:185: undefined reference to `snd_ctl_elem_info_is_user'
names.o(.text+0x53b): In function `probe_timers':
/home/james/alsa/alsa-utils-1.0.10/alsactl/names.c:428: undefined reference to `snd_timer_ginfo_sizeof'
names.o(.text+0x55b):/home/james/alsa/alsa-utils-1.0.10/alsactl/names.c:428: undefined reference to `snd_timer_ginfo_sizeof'
names.o(.text+0x5c0):/home/james/alsa/alsa-utils-1.0.10/alsactl/names.c:438: undefined reference to `snd_timer_ginfo_set_tid'
names.o(.text+0x631):/home/james/alsa/alsa-utils-1.0.10/alsactl/names.c:448: undefined reference to `snd_timer_ginfo_get_name'
collect2: ld returned 1 exit status
make[1]: *** [alsactl] Error 1
make[1]: Leaving directory `/home/james/alsa/alsa-utils-1.0.10/alsactl'
make: *** [all-recursive] Error 1
ghostrider:/home/james/alsa/alsa-utils-1.0.10 #
-------------------------------------------------------------

Any help would be appreciated! Thanks!

djuhl30 12-16-2005 04:04 AM

wierd.. I compiled 10.0.10 on suse 9.3 no problems... I used the present module for the sound card in the kernel.

Don't know what to tell you dude. I don'r know C or C++

Dave


All times are GMT -5. The time now is 10:05 AM.