[blfs-dev] alsa-lib-1.0.26 patch to fix a missing include header
wblaszcz at bigpond.net.au
Sun Mar 31 18:58:11 PDT 2013
On 31/03/13 18:46, Armin K. wrote:
> 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
Could it be that I don't have SystemV or Xopen installed?
Whatever the case, the patch was applied to alsa-lib upstream, so I
would assume the fault was with alsa-lib.
More information about the blfs-dev