[Pkg-alsa-devel] building alsa-plugins fails w/ libasound has no external plugin SDK

Darren Hart darren at dvhart.com
Sat Dec 13 16:11:53 UTC 2008


On Sat, Dec 13, 2008 at 1:43 AM, Elimar Riesebieter <riesebie at lxtec.de> wrote:
> * Darren Hart [081213 03:40 +0100]
> [...]> Then ran:
>> $ dpkg-source -x alsa-plugins_1.0.18-1.dsc
>> $ cd alsa-plugins-1.0.18
>> $ dpkg-buildpackage -rfakeroot -b
>>
>> Which runs and eventually fails with:
>>
>> checking for snd_pcm_ioplug_create in -lasound... no configure:
>> error: *** libasound has no external plugin SDK make: ***
>> [configure-biarch-stamp] Error 1 dpkg-buildpackage: failure:
>> debian/rules build gave error exit status 2
>>
>> I checked the lib with objdump and the symbol appears to exist, so
>> I am not sure why the build fails.  Any thoughts on what I might
>> be doing wrong?
>
> Did you checked config.log ?

I found config.log in bibuild, but nowhere else... Checking it, the
apparently relevant section complains about my installed libasound
libs being "incompatible".  The alsa-utils and alsa-tools packages
were able to use the ok...

I tried to build the conftest source myself and got the same error
using the gcc command line mentioned below.  I noticed the -m32 on the
gcc command line and if I remove that the compile succeeds.  (running
it segfaults, but I'm not sure if it's meant to be run).


------- segment from bibuild/config.log -------
configure:20249: checking for snd_pcm_ioplug_create in -lasound
configure:20284: gcc -m32 -o conftest -g -Wall -O2
-Wl,-Bsymbolic-functions conftest.c -lasound -ldl  >&5
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libasound.so when
searching for -lasound
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libasound.a when
searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.so when
searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.a when searching
for -lasound
/usr/bin/ld: cannot find -lasound
collect2: ld returned 1 exit status
configure:20290: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "alsa-plugins"
| #define VERSION "1.0.18"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char snd_pcm_ioplug_create ();
| int
| main ()
| {
| return snd_pcm_ioplug_create ();
|   ;
|   return 0;
| }
configure:20324: result: no
configure:20334: error: *** libasound has no external plugin SDK



-- 
Darren Hart



More information about the Pkg-alsa-devel mailing list