I am guessing your host machine is ubuntu 12.04 (Precise)??<div><br></div><div>If so, I faced similar problem sometime back and I tried lot of things to resolve the same.</div><div>I am not remembering the exact steps or sequences but please do check this:</div>
<div><br></div><div>1. check for build-essential package: sudo apt-get build-essential</div><div>2. sometimes in 12.04 apt-get fails with --fix-missing suggestion, so carefully check the same do sudo apt-get update --fix-missing and then apt-get install <package> again.</div>
<div>3. install these packages:</div><div> sudo apt-get install libncurses5 libncurses5-dev libelf-dev libncurses5 <span style="background-color:rgb(247,246,245);font-size:13px">libncursesw5-dev</span></div><div>Another best way to install any packages in Ubuntu, </div>
<div>1. visit <a href="http://packages.ubuntu.com/">http://packages.ubuntu.com/</a> </div><div>2. find required package for required Ubuntu version. </div><div>3. Browse thorough your search result and pick deb packages for i386/amd64 (as per your machine).</div>
<div><br></div><div>Hope this will help you as well.</div><div><br></div><div>regards,</div><div><br><br><div class="gmail_quote">On Mon, Sep 17, 2012 at 7:31 AM, <a href="mailto:g.wangweihong@gmail.com">g.wangweihong@gmail.com</a> <span dir="ltr"><<a href="mailto:g.wangweihong@gmail.com" target="_blank">g.wangweihong@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
hello all:<br>
I had a problem. I want to build a kernel-2.6.22.19 in my ubuntu
which's kernel is 3.2 for embedded platform. But i failed in the
step of <i>make menuconfig</i>. <br>
It tips as this:<br>
<blockquote type="cite"><a href="mailto:kiongf@ubuntu:~/sigma/tarball.386/smp86xx_kernel_source_R2.6.22-35/linux$" target="_blank">kiongf@ubuntu:~/sigma/tarball.386/smp86xx_kernel_source_R2.6.22-35/linux$</a>
make menuconfig<br>
HOSTCC scripts/kconfig/lxdialog/checklist.o<br>
HOSTCC scripts/kconfig/lxdialog/inputbox.o<br>
HOSTCC scripts/kconfig/lxdialog/menubox.o<br>
HOSTCC scripts/kconfig/lxdialog/textbox.o<br>
scripts/kconfig/lxdialog/textbox.c: 在函数‘print_line’中:<br>
scripts/kconfig/lxdialog/textbox.c:323:9: 警告: 变量‘x’被设定但未被使用
[-Wunused-but-set-variable]<br>
scripts/kconfig/lxdialog/textbox.c:323:6: 警告: 变量‘y’被设定但未被使用
[-Wunused-but-set-variable]<br>
HOSTCC scripts/kconfig/lxdialog/util.o<br>
HOSTCC scripts/kconfig/lxdialog/yesno.o<br>
HOSTCC scripts/kconfig/mconf.o<br>
HOSTLD -static scripts/kconfig/mconf<br>
scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':<br>
checklist.c:(.text+0x5a): undefined reference to `acs_map'<br>
checklist.c:(.text+0xbc): undefined reference to `acs_map'<br>
checklist.c:(.text+0x105): undefined reference to `acs_map'<br>
checklist.c:(.text+0x116): undefined reference to `acs_map'<br>
checklist.c:(.text+0x127): undefined reference to `acs_map'<br>
scripts/kconfig/lxdialog/checklist.o:checklist.c:(.text+0x138):
more undefined references to `acs_map' follow<br>
scripts/kconfig/lxdialog/checklist.o: In function
`dialog_checklist':<br>
checklist.c:(.text+0x46d): undefined reference to `stdscr'<br>
checklist.c:(.text+0x4c3): undefined reference to `COLS'<br>
checklist.c:(.text+0x4d7): undefined reference to `LINES'<br>
</blockquote>
<blockquote type="cite">/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(hashmap.o):(.text+0x9c2):
more undefined references to `SP' follow<br>
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_beep.o):
In function `beep':<br>
(.text+0x5): undefined reference to `cur_term'<br>
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_beep.o):
In function `beep':<br>
(.text+0x1b): undefined reference to `putp'<br>
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_beep.o):
In function `beep':<br>
(.text+0x22): undefined reference to `_nc_flush'<br>
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_hline.o):
In function `whline':<br>
</blockquote>
I google for this problem, it says i didn't install the <i>ncurses.
<br>
</i><br>
<blockquote type="cite">i
libncurses5
- shared libraries for terminal
handling <br>
i
libncurses5-dbg
- debugging/profiling libraries for
ncurses <br>
i
libncurses5-dev
- developer's libraries for ncurses <br>
</blockquote>
But after I install the lib , it doesn't change.<br>
<br>
The script <i>linux/scripts/kconfig/lxdialog</i><i>/check-lxdialog.sh</i>
contain these messages:<br>
<blockquote type="cite">ldflags()<br>
{<br>
for ext in so a dylib ; do<br>
for lib in ncursesw ncurses curses ; do<br>
$cc -print-file-name=lib${lib}.${ext} |
grep -q /<br>
if [ $? -eq 0 ]; then<br>
echo "-l${lib}"<br>
exit<br>
fi<br>
done<br>
done<br>
exit 1<br>
}<br>
<br>
# Where is ncurses.h?<br>
ccflags()<br>
{<br>
if [ -f /usr/include/ncurses/ncurses.h ]; then<br>
echo '-I/usr/include/ncurses
-DCURSES_LOC="<ncurses.h>"'<br>
elif [ -f /usr/include/ncurses/curses.h ]; then<br>
echo '-I/usr/include/ncurses
-DCURSES_LOC="<ncurses/curses.h>"'<br>
elif [ -f /usr/include/ncurses.h ]; then<br>
echo '-DCURSES_LOC="<ncurses.h>"'<br>
else<br>
echo '-DCURSES_LOC="<curses.h>"'<br>
fi<br>
}<br>
</blockquote>
libncurses appear in /usr/lib ,and the head file appear in
/usr/include.<br>
<blockquote type="cite">kiongf@ubuntu:/usr/lib$ ls | grep curse<br>
libncurses_g.a<br>
libncurses++_g.a<br>
libncurses.so.5.7<br>
libncurses++w_g.a<br>
libncursesw_g.a<br>
</blockquote>
<blockquote type="cite">kiongf@ubuntu:/usr/include$ ls | grep ncurse<br>
ncurses_dll.h<br>
ncurses.h<br>
ncursesw<br>
</blockquote>
I have trapped in this problem for several days, please help me
if you have any good ideas.<br>
<br>
Thanks.<br>
<br>
<br>
<br>
<br>
</div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>With Best Regards,<div><b>Tirtha</b></div><div><img src="http://pinktentacle.com/images/10/354.gif" alt="Nico Nico animated GIF -- "> </div><br>
</div>