Cross compile asterisk

Hi…

I am trying to cross compile asterisk asterisk-11.0.1for powerpc platform.
It is asking for ncurses and its dependent libraries.
So i have downloaded ncurses source code and trying to cross compile which is giving me error
" undefined reference to `Gpm_GetEvent’ "
I have tried usign ncurses 5.7/5.8/5.9 and older versions also.

Please suggest me solution.
Thanks in advance.

Regards,
Deepak BK