[Samsung Galaxy Mini] cmotc:
Porting for similar device, did you encounter this problem?

I'm not sure, but this may be my first post on XDA-Developers. First of all, I'd like to extend a special thanks to TheWhisp and all the people who have been helping him on this port so far. I was working on a port for a very similar(almost identical) device, the Samsung Galaxy Centura, when I first found your MSM7x27a-common repositories and they helped me immensely in figuring out how to progress on my port, and I've forked them in order to do what I can to help you with this project. I'll also hang around this thread and do what I can for people who have issues here, personally I think the MSM7x27a platform is cool in part because it is less expensive and more readily available to the average person than the Raspberry Pi, which is why I decided to use it to teach myself CM porting, I plan to experiment on it for the forseeable future.

But on to my question, I'm working on building CM11 for the Centura and I've cleared every obstacle so far but this one is giving me trouble. I've googled and forum dived, and asked on IRC, thusfar to no avail. For some reason, when I try to build libstagefright, I get the following error.

I've got all the build output saved, if you need more of it, just let me know.
Copying: /home/dyngar-f/android/android/out/target/common/obj/JAVA_LIBRARIES/mms-common_intermediates/noproguard.classes.jar
frameworks/av/media/libstagefright/AwesomePlayer.cpp:1282: error: undefined reference to 'android::LPAPlayer::LPAPlayer(android::sp<android::MediaPlayerBase::AudioSink> const&, bool&, android::AwesomePlayer*)'
frameworks/av/media/libstagefright/AwesomePlayer.cpp:1306: error: undefined reference to 'android::LPAPlayer::mObjectsAlive'
frameworks/av/media/libstagefright/AwesomePlayer.cpp:1882: error: undefined reference to 'android::LPAPlayer::mObjectsAlive'
collect2: error: ld returned 1 exit status
build/core/shared_library.mk:81: recipe for target '/home/dyngar-f/android/android/out/target/product/schS738c/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so' failed
make: *** [/home/dyngar-f/android/android/out/target/product/schS738c/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so] Error 1
make: *** Waiting for unfinished jobs....

Did you encounter this problem already in porting to the Mini, and am I right in thinking that it appears that lpaplayer.h isn't correctly being included in the AwesomePlayer.cpp file, or is it something else, and if so, what is it?

Also, it appears that the file in patches/common/frameworks_native cannot be applied to the stable/cm-11.0 or cm-11.0 versions of the files. I made 2 patches which recreate the modifications described, assuming they aren't obsolete, and put them in my device tree, but I'm hesitant to reccomend them to you because since I haven't built mine successfully yet, I don't know if that patch is simply obsolete or something, or if I had the right idea but executed it incorrectly. So far I only have it in the tree I made especially for the Centura, but if you want to take a look, it's here. https://github.com/cmotc/android_device_samsung_schS738c/tree/master/patches/common/frameworks_native