[Android Q&A, Help & Troubleshooting] Quasar:
Hey fellas.

Compiling CM11 for golfu, and ran into this:

In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:39:32: error: conflicting declaration 'kKeyRawCodecSpecificData'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:130:5: error: 'android::kKeyRawCodecSpecificData' has a previous declaration as 'android::<anonymous enum> android::kKeyRawCodecSpecificData'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:40:32: error: conflicting declaration 'kKeyDivXVersion'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:131:5: error: 'android::kKeyDivXVersion' has a previous declaration as 'android::<anonymous enum> android::kKeyDivXVersion'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:41:32: error: conflicting declaration 'kKeyDivXDrm'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:132:5: error: 'android::kKeyDivXDrm' has a previous declaration as 'android::<anonymous enum> android::kKeyDivXDrm'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:42:32: error: conflicting declaration 'kKeyWMAEncodeOpt'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:133:5: error: 'android::kKeyWMAEncodeOpt' has a previous declaration as 'android::<anonymous enum> android::kKeyWMAEncodeOpt'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:43:32: error: conflicting declaration 'kKeyWMABlockAlign'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:134:5: error: 'android::kKeyWMABlockAlign' has a previous declaration as 'android::<anonymous enum> android::kKeyWMABlockAlign'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:44:32: error: conflicting declaration 'kKeyWMAVersion'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:135:5: error: 'android::kKeyWMAVersion' has a previous declaration as 'android::<anonymous enum> android::kKeyWMAVersion'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:45:32: error: conflicting declaration 'kKeyWMAAdvEncOpt1'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:136:5: error: 'android::kKeyWMAAdvEncOpt1' has a previous declaration as 'android::<anonymous enum> android::kKeyWMAAdvEncOpt1'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:46:32: error: conflicting declaration 'kKeyWMAAdvEncOpt2'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:137:5: error: 'android::kKeyWMAAdvEncOpt2' has a previous declaration as 'android::<anonymous enum> android::kKeyWMAAdvEncOpt2'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:47:32: error: conflicting declaration 'kKeyWMAFormatTag'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:138:5: error: 'android::kKeyWMAFormatTag' has a previous declaration as 'android::<anonymous enum> android::kKeyWMAFormatTag'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:48:32: error: conflicting declaration 'kKeyWMABitspersample'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:139:5: error: 'android::kKeyWMABitspersample' has a previous declaration as 'android::<anonymous enum> android::kKeyWMABitspersample'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:49:32: error: conflicting declaration 'kKeyWMAVirPktSize'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:140:5: error: 'android::kKeyWMAVirPktSize' has a previous declaration as 'android::<anonymous enum> android::kKeyWMAVirPktSize'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:68:29: error: conflicting declaration 'kKeySampleBits'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:190:5: error: 'android::kKeySampleBits' has a previous declaration as 'android::<anonymous enum> android::kKeySampleBits'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:78:5: error: conflicting declaration 'kTypeDivXVer_3_11'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:200:5: error: 'android::kTypeDivXVer_3_11' has a previous declaration as 'android::<anonymous enum> android::kTypeDivXVer_3_11'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:79:5: error: conflicting declaration 'kTypeDivXVer_4'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:201:5: error: 'android::kTypeDivXVer_4' has a previous declaration as 'android::<anonymous enum> android::kTypeDivXVer_4'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:80:5: error: conflicting declaration 'kTypeDivXVer_5'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:202:5: error: 'android::kTypeDivXVer_5' has a previous declaration as 'android::<anonymous enum> android::kTypeDivXVer_5'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:81:5: error: conflicting declaration 'kTypeDivXVer_6'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:203:5: error: 'android::kTypeDivXVer_6' has a previous declaration as 'android::<anonymous enum> android::kTypeDivXVer_6'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:84:5: error: conflicting declaration 'kTypeWMA'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:207:5: error: 'android::kTypeWMA' has a previous declaration as 'android::<anonymous enum> android::kTypeWMA'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:85:5: error: conflicting declaration 'kTypeWMAPro'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:208:5: error: 'android::kTypeWMAPro' has a previous declaration as 'android::<anonymous enum> android::kTypeWMAPro'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:42:0:
./hardware/qcom/media-legacy/mm-core/inc/QCMetaData.h:86:5: error: conflicting declaration 'kTypeWMALossLess'
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:34:0:
frameworks/av/include/media/stagefright/MetaData.h:209:5: error: 'android::kTypeWMALossLess' has a previous declaration as 'android::<anonymous enum> android::kTypeWMALossLess'
frameworks/av/media/libstagefright/AudioPlayer.cpp: In static member function 'static size_t android::AudioPlayer::AudioSinkCallback(android::MediaPlayerBase::AudioSink*, void*, size_t, void*, android::MediaPlayerBase::AudioSink::cb_event_t)':
frameworks/av/media/libstagefright/AudioPlayer.cpp:510:11: warning: enumeration value 'CB_EVENT_UNDERRUN' not handled in switch [-Wswitch]
frameworks/av/media/libstagefright/AudioPlayer.cpp:510:11: warning: enumeration value 'CB_EVENT_HW_FAIL' not handled in switch [-Wswitch]
make: *** [/home/rutash/android/system/out/target/product/golfu/obj/SHARED_LIBRARIES/libstagefright_intermediates/AudioPlayer.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/av/media/libstagefright/CameraSource.cpp:24:0:
frameworks/av/include/media/stagefright/CameraSource.h: In constructor 'android::CameraSource::CameraSource(const android::sp<android::ICamera>&, const android::sp<android::ICameraRecordingProxy>&, int32_t, const android::String16&, uid_t, android::Size, int32_t, const android::sp<android::IGraphicBufferProducer>&, bool)':
frameworks/av/include/media/stagefright/CameraSource.h:204:13: warning: 'android::CameraSource::mNumGlitches' will be initialized after [-Wreorder]
frameworks/av/include/media/stagefright/CameraSource.h:166:10: warning: 'bool android::CameraSource::mRecPause' [-Wreorder]
frameworks/av/media/libstagefright/CameraSource.cpp:170:1: warning: when initialized here [-Wreorder]

Any help?