Last Updated: February 25, 2016
·
3.379K
· andersbrownwort

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/

6 Responses
Add your response

OK, I did this, still same issue?

over 1 year ago ·

@johnson You sure it's still there when during your compile? It might get stripped in some cases during compile.

over 1 year ago ·

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
TARGET
PRODUCT=full
TARGETBUILDVARIANT=eng
TARGETBUILDTYPE=release
TARGETBUILDAPPS=
TARGETARCH=arm
TARGET
ARCHVARIANT=armv7-a
HOST
ARCH=x86
HOSTOS=linux
HOST
OSEXTRA=Linux-2.6.18-348.1.1.el5-x8664-with-redhat-5.9-Final
HOSTBUILDTYPE=release
BUILD_ID=OPENMASTER

OUT_DIR=out

over 1 year ago ·

Compare your file to http://anders.com/1offs/asound.h - that should define uint32t

over 1 year ago ·

OK, the last build I notice it is complaining about vi /usr/include/sound/asound.h, which looks completely different.

over 1 year ago ·

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

over 1 year ago ·