[blfs-dev] alsa-lib-1.0.26 patch to fix a missing include header
krejzi at email.com
Sun Mar 31 00:46:01 PDT 2013
On 03/30/2013 11:06 PM, Wayne Blaszczyk wrote:
> I had an issue building MythTV on LFS 7.3.
> Turns out to be the following bug(s) with alsa-lib:
> The following patch has been applied upstream:
> The following sed worked for me:
> sed -i '/#include <stdlib.h>/ a\
> #include <sys/types.h>' include/asoundlib-head.h
> Is it worth adding this into the book? I suspect it might impact other
> packages that rely on alsa-lib.
That's interesting. Glibc 2.17 and GCC 4.8.0 here. Yet I've built
alsa-lib without any problems. It looks that stdlib.h pulls sys/types.h
include. But from what I've seen, it appears to rely on some definition,
which probably the package that failed for you didn't had defined.
#if defined __USE_SVID || defined __USE_XOPEN_EXTENDED || defined __USE_BSD
# include <sys/types.h> /* we need int32_t... */
At lines 313 and 314 of /usr/include/stdlib.h
More information about the blfs-dev