asound.h:334:2: error: 'u_int32_t' does not name a type
Android AOSP Jelly Bean glibc sysroot seems to include an asound.h that relies on uint32t which isn't (normally) defined. Quick fix is to use the one from the kernel headers instead:
cp external/kernel-headers/original/sound/asound.h prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/sound/
Written by Anders Brownworth
Related protips
6 Responses
OK, I did this, still same issue?
@johnson You sure it's still there when during your compile? It might get stripped in some cases during compile.
I'm not sure. I just do a diff on the 2 files and they are the same. So I'm not sure what to do at this point. I'm new to android system platform development. So when I went though getting the code and setting things up to build , I just followed what is on AOSP for getting the code and building. here is my ENV when I start the build. Can you tell me if this looks OK. Thanks.
============================================
PLATFORMVERSIONCODENAME=AOSP
PLATFORMVERSION=4.2.2.2.2.2.2.2.2.2
TARGETPRODUCT=full
TARGETBUILDVARIANT=eng
TARGETBUILDTYPE=release
TARGETBUILDAPPS=
TARGETARCH=arm
TARGETARCHVARIANT=armv7-a
HOSTARCH=x86
HOSTOS=linux
HOSTOSEXTRA=Linux-2.6.18-348.1.1.el5-x8664-with-redhat-5.9-Final
HOSTBUILDTYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
Compare your file to http://anders.com/1offs/asound.h - that should define uint32t
OK, the last build I notice it is complaining about vi /usr/include/sound/asound.h, which looks completely different.
OK, Now I'm running into this error.
out/host/linux-x86/bin/tblgen: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9'
trying to update my libstdc++ package to include GLIBCXX_3.4.9, but don't see anything except for maybe I need to upgrade to Centos 6