Reg cross compilation issue

"$rik@nth " <[email protected]>
Newsgroups gmane.comp.gnu.screen.devel,gmane.comp.gnu.screen.user
Message-ID <CANKSX+FbtgzvuUsOiwyL6RZbOU1T6-ca1DMESkX-X97o=mw4VQ@mail.gmail.com>
Hi,

I am trying to cross compile the screen for arm and getting stuck
while linking the ncurses libraries.

Screen version i am trying screen-4.0.3.

arm-linux-gnueabi-gcc  -o screen screen.o ansi.o fileio.o mark.o
misc.o resize.o socket.o search.o tty.o term.o window.o utmp.o
loadav.o putenv.o help.o termcap.o input.o attacher.o pty.o process.o
display.o comm.o kmapdef.o acls.o braille.o braille_tsi.o logfile.o
layer.o sched.o teln.o nethack.o encoding.o -lncurses -lcrypt
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld:
cannot find -lncurses
collect2: error: ld returned 1 exit status
make: *** [screen] Error 1

I have cross checked the lib path and able to retrieve the installed libs
/lib/x86_64-linux-gnu/libncurses.so.5
/lib/x86_64-linux-gnu/libncurses.so.5.9
/lib/x86_64-linux-gnu/libncursesw.so.5
/lib/x86_64-linux-gnu/libncursesw.so.5.9
/lib32/libncurses.so.5
/lib32/libncurses.so.5.9
/lib32/libncursesw.so.5
/lib32/libncursesw.so.5.9

Even ldconfig is returning
sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.19.so is the dynamic
linker, ignoring
    libncursesw.so.5 -> libncursesw.so.5.9
    libncurses.so.5 -> libncurses.so.5.9
/sbin/ldconfig.real: /lib32/ld-2.19.so is the dynamic linker, ignoring
/sbin/ldconfig.real: /libx32/ld-2.19.so is the dynamic linker, ignoring
    libncursesw.so.5 -> libncursesw.so.5.9
    libncurses.so.5 -> libncurses.so.5.9

Any help would really helpful.

-- 
Thanks & Regards,
M.Srikanth Kumar.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.