LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   alsa 1.0.13rc1 compile issue (http://www.linuxquestions.org/questions/linux-software-2/alsa-1-0-13rc1-compile-issue-483497/)

PaladinOfKaos 09-14-2006 01:26 PM

alsa 1.0.13rc1 compile issue
 
I'm trying to build the 1.0.13rc1 ALSA distribution on SLED10 64-bit. The driver and libraries build fine, but I'm having a strange issue building the utilities.

When alsactl is (not) linking, gcc complains about four missing symbols. Here's the relevent output:
Code:

Making all in alsactl
make[1]: Entering directory `/root/alsa-utils-1.0.13rc1/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 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 state.c; \
then mv -f ".deps/alsactl.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 names.o -MD -MP -MF ".deps/names.Tpo" -c -o names.o names.c; \
then mv -f ".deps/names.Tpo" ".deps/names.Po"; else rm -f ".deps/alsactl.Tpo"; exit 1; fi
gcc -g -O2 -o alsactl alsactl.o state.o names.o -lasound -lm -ldl -lpthread
state.o: In function `add_user_control':
/root/alsa-utils-1.0.13rc1/alsactl/state.c:815: undefined reference to `snd_ctl_elem_tlv_write'
state.o: In function `get_control':
/root/alsa-utils-1.0.13rc1/alsactl/state.c:288: undefined reference to `sdn_ctl_elem_info_is_tlv_readable'
/root/alsa-utils-1.0.13rc1/alsactl/state.c:288: undefined reference to `snd_ctl_elem_info_is_tlv_writable'
/root/alsa-utils-1.0.13rc1/alsactl/state.c:291: undefined reference to `snd_ctl_elem_tlv_read'
collect2: ld returned 1 exit status
make[1]: *** [alsactl] Error 1
make[1]: *** Leaving directory `/root/alsa-utils-1.0.13rc1/alsactl'
make: *** [all-recursive] Error 1

Now for the strange bit. Doing
Code:

objdump -x /usr/lib/libasound.so | grep <undefined reference>
shows that all four missing functions are, in fact, in the library. Any ideas? Is this a SLED issue? a 64-bit issue?

GrueMaster 09-16-2006 03:14 AM

YOu need to build and install the alsa-libs before building the utils. It is also recommended that you build and install each package in this order: drivers, libs, utils, (any other alsa package). The libs depend on headers from the drivers, and the utils depend on headers from the libs. Since all of these are moving targets, it is necessary to build and install each in the proper order.

PaladinOfKaos 09-16-2006 01:06 PM

That's what I had done. I tried the same thing on RHDT4U4, and it built fine (after commenting out redundant typedefs in the driver). It seems to be an issue with ld on SLED10.


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