[alsa-devel] alsa-lib 1.0.27.2 and musl

Waldemar Brodkorb wbx at openadk.org
Tue Sep 17 19:22:25 CEST 2013


Hi Developers,

I am trying to cross-compile alsa-lib with a musl¹ libc based
toolchain. Unfortunately src/compat/hsearch_r.c is failing to
compile, because of some glibc specific macros (like _P) normally
defined in sys/cdefs.h. After grepping through the code I can not
find any consumer for any functions implemented in hsearch_r.c.
When I just comment out the code, everything compiles fine.

Seems that that usage of hsearch functions was removed in the code 
long time ago.
commit 273d115de05574251bdd661747ecb68449a5cf1d
Author: Jaroslav Kysela <perex at perex.cz>
Date:   Sat Jul 15 10:20:32 2000 +0000

    Removed old mixer API functions.
    Added simple control layer (experimental).

Can it just be removed?

thanks for any advice or comment.

best regards
 Waldemar


¹ http://www.musl-libc.org/


More information about the Alsa-devel mailing list