[HTC Droid DNA] jamiethemorris:
I'm trying to build tripndroid, I ran into a few other errors that I fixed already, but I'm hitting this now

In file included from frameworks/av/services/audioflinger/Tracks.cpp:32:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
In file included from frameworks/av/services/audioflinger/Effects.cpp:30:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
frameworks/av/services/audioflinger/Effects.cpp: In member function 'android::sp<android::AudioFlinger::EffectModule> android::AudioFlinger::EffectChain::getEffectFromIndex_l(int)':
frameworks/av/services/audioflinger/Effects.cpp:1343:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/Tracks.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/Effects.o] Error 1
In file included from frameworks/av/media/mediaserver/main_mediaserver.cpp:32:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/EXECUTABLES/mediaserver_intermediates/main_mediaserver.o] Error 1
In file included from frameworks/av/services/audioflinger/AudioFlinger.cpp:46:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
In file included from frameworks/av/services/audioflinger/AudioFlinger.cpp:46:0:
frameworks/av/services/audioflinger/AudioFlinger.h: In constructor 'android::AudioFlinger::AudioFlinger()':
frameworks/av/services/audioflinger/AudioFlinger.h:833:13: warning: 'android::AudioFlinger::mGlobalEffectEnableTime' will be initialized after [-Wreorder]
In file included from frameworks/av/services/audioflinger/AudioFlinger.cpp:46:0:
frameworks/av/services/audioflinger/AudioFlinger.h:779:31: warning: 'volatile bool android::AudioFlinger::mAllChainsLocked' [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.cpp:146:1: warning: when initialized here [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.cpp: In member function 'virtual android::sp<android::IDirectTrack> android::AudioFlinger::createDirectTrack(pid_t, uint32_t, audio_channel_mask_t, audio_io_handle_t, int*, android::IDirectTrackClient*, audio_stream_type_t, android::status_t*)':
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:9: error: 'AudioEventObserver' was not declared in this scope
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:29: error: 'obv' was not declared in this scope
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:48: error: expected type-specifier before 'AudioEventObserver'
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:48: error: expected '>' before 'AudioEventObserver'
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:48: error: expected '(' before 'AudioEventObserver'
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:68: error: expected primary-expression before '>' token
frameworks/av/services/audioflinger/AudioFlinger.cpp:651:82: error: expected ')' before ';' token
frameworks/av/services/audioflinger/AudioFlinger.cpp:653:23: error: 'audio_stream_out_t' has no member named 'set_observer'
make: *** [/run/media/jamiethemorris/LinuxExternal/android/tripndroid_kk/out/target/product/dlx/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioFlinger.o] Error 1
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:518:5: error: expected class-name before '{' token
In file included from frameworks/av/services/audioflinger/AudioFlinger.h:440:0,
from frameworks/av/services/audioflinger/Threads.cpp:52:
frameworks/av/services/audioflinger/Threads.h: In constructor 'android::AudioFlinger::PlaybackThread::PlaybackThread(const android::sp<android::AudioFlinger>&, android::AudioFlinger::AudioStreamOut*, audio_io_handle_t, audio_devices_t, android::AudioFlinger::ThreadBase::type_t)':
frameworks/av/services/audioflinger/Threads.h:628:14: warning: 'android::AudioFlinger::PlaybackThread::mScreenState' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/Threads.h:564:26: warning: 'audio_output_flags_t android::AudioFlinger::PlaybackThread::mOutputFlags' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:1050:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h: In constructor 'android::AudioFlinger::DirectAudioTrack::DirectAudioTrack(const android::sp<android::AudioFlinger>&, int, android::AudioFlinger::AudioSessionDescriptor*, android::IDirectTrackClient*, audio_output_flags_t)':
frameworks/av/services/audioflinger/AudioFlinger.h:594:26: warning: 'android::AudioFlinger::DirectAudioTrack::mAudioFlinger' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:541:13: warning: 'int android::AudioFlinger::DirectAudioTrack::mOutput' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:541:13: warning: 'android::AudioFlinger::DirectAudioTrack::mOutput' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:540:33: warning: 'android::AudioFlinger::AudioSessionDescriptor* android::AudioFlinger::DirectAudioTrack::mOutputDesc' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:540:33: warning: 'android::AudioFlinger::DirectAudioTrack::mOutputDesc' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:539:29: warning: 'android::IDirectTrackClient* android::AudioFlinger::DirectAudioTrack::mClient' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:574:14: warning: 'android::AudioFlinger::DirectAudioTrack::mEffectConfigChanged' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:572:14: warning: 'bool android::AudioFlinger::DirectAudioTrack::mKillEffectsThread' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
In file included from frameworks/av/services/audioflinger/Threads.cpp:52:0:
frameworks/av/services/audioflinger/AudioFlinger.h:572:14: warning: 'android::AudioFlinger::DirectAudioTrack::mKillEffectsThread' will be initialized after [-Wreorder]
frameworks/av/services/audioflinger/AudioFlinger.h:543:30: warning: 'audio_output_flags_t android::AudioFlinger::DirectAudioTrack::mFlag' [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp:5494:1: warning: when initialized here [-Wreorder]
frameworks/av/services/audioflinger/Threads.cpp: In member function 'virtual android::status_t android::AudioFlinger::DirectAudioTrack::start()':
frameworks/av/services/audioflinger/Threads.cpp:5565:30: error: 'audio_stream_out_t' has no member named 'start'
frameworks/av/services/audioflinger/Threads.cpp: In member function 'virtual void android::AudioFlinger::DirectAudioTrack::stop()':
frameworks/av/services/audioflinger/Threads.cpp:5577:26: error: 'audio_stream_out_t' has no member named 'stop'
frameworks/av/services/audioflinger/Threads.cpp: In member function 'virtual ssize_t android::AudioFlinger::DirectAudioTrack::write(const void*, size_t)':
frameworks/av/services/audioflinger/Threads.cpp:5593:26: error: 'audio_stream_out_t' has no member named 'is_buffer_available'
frameworks/av/services/audioflinger/Threads.cpp: In member function 'void android::AudioFlinger::DirectAudioTrack::allocateBufPool()':
frameworks/av/services/audioflinger/Threads.cpp:5667:26: error: 'audio_stream_out_t' has no member named 'get_buffer_info'
frameworks/av/services/audioflinger/Threads.cpp:5673:20: error: invalid use of incomplete type 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5666:12: error: forward declaration of 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5674:26: error: invalid use of incomplete type 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5666:12: error: forward declaration of 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5678:30: error: invalid use of incomplete type 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'
frameworks/av/services/audioflinger/Threads.cpp:5666:12: error: forward declaration of 'struct android::AudioFlinger::DirectAudioTrack::allocateBufPool()::buf_info'

I don't even know where to start with that... This is the part it's complaining about in Audioflinger.h:

#ifdef QCOM_HARDWARE
// server side of the client's IAudioTrack
class DirectAudioTrack : public android::BnDirectTrack,
public AudioEventObserver
{

I think maybe it's missing an #include or something? I just don't understand why I'm getting all of these errors. I would assume anyone building the ROM would get the same ones?