Default Porting error

Okey well here is what is causing my error
Code:
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'OMX_U32 venc_dev::pmem_allocate(OMX_U32, OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1292:26: error: aggregate 'venc_dev::pmem_allocate(OMX_U32, OMX_U32, OMX_U32)::pmem_allocation allocation' has incomplete type and cannot be defined
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1307:22: error: 'PMEM_ALLOCATE_ALIGNED' was not declared in this scope
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1362:215: warning: format '%d' expects argument of type 'int', but argument 7 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
and this is the error
Code:
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device.o] Error 1
Devices:
Asus nexus 7 (2013) rooted cyanogenmod 11
LG Optimus F6 rooted(finally) cm11 ( i ported with lots of help)
Work:
Ported Cyanogenmod 11 for the LG Optimus F6
HTML Code:
<DOCTYPE html>
<head></head>
<body>
<p>Got HTML</p>
</body>
</html>
Help a 13 year old dev out and donate bitcoins here it will be a big help
address:1BHvJkWAUuNoQvMLfJU3aT2xr4HF3PT2Nh
And please hit that thanks button if i helped