On 03/30/2013 11:06 PM, Wayne Blaszczyk wrote: > Hi, > > I had an issue building MythTV on LFS 7.3. > Turns out to be the following bug(s) with alsa-lib: > https://bugs.launchpad.net/bugs/1109298 > https://bugzilla.redhat.com/show_bug.cgi?id=885306 > > The following patch has been applied upstream: > http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=3e7dc283ed2d3ed2341f0657811c588f4dbcba6d > > 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. > > Regards, > Wayne. >
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 -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page