* some problem about make menuconfig
@ 2012-09-17 2:01 g.wangweihong at gmail.com
2012-09-17 9:04 ` Tirtha Ghosh
0 siblings, 1 reply; 2+ messages in thread
From: g.wangweihong at gmail.com @ 2012-09-17 2:01 UTC (permalink / raw)
To: kernelnewbies
hello all:
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 /make
menuconfig/.
It tips as this:
> kiongf at ubuntu:~/sigma/tarball.386/smp86xx_kernel_source_R2.6.22-35/linux$
> make menuconfig
> HOSTCC scripts/kconfig/lxdialog/checklist.o
> HOSTCC scripts/kconfig/lxdialog/inputbox.o
> HOSTCC scripts/kconfig/lxdialog/menubox.o
> HOSTCC scripts/kconfig/lxdialog/textbox.o
> scripts/kconfig/lxdialog/textbox.c: ????print_line??:
> scripts/kconfig/lxdialog/textbox.c:323:9: ??? ???x????????
> ? [-Wunused-but-set-variable]
> scripts/kconfig/lxdialog/textbox.c:323:6: ??? ???y????????
> ? [-Wunused-but-set-variable]
> HOSTCC scripts/kconfig/lxdialog/util.o
> HOSTCC scripts/kconfig/lxdialog/yesno.o
> HOSTCC scripts/kconfig/mconf.o
> HOSTLD -static scripts/kconfig/mconf
> scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':
> checklist.c:(.text+0x5a): undefined reference to `acs_map'
> checklist.c:(.text+0xbc): undefined reference to `acs_map'
> checklist.c:(.text+0x105): undefined reference to `acs_map'
> checklist.c:(.text+0x116): undefined reference to `acs_map'
> checklist.c:(.text+0x127): undefined reference to `acs_map'
> scripts/kconfig/lxdialog/checklist.o:checklist.c:(.text+0x138): more
> undefined references to `acs_map' follow
> scripts/kconfig/lxdialog/checklist.o: In function `dialog_checklist':
> checklist.c:(.text+0x46d): undefined reference to `stdscr'
> checklist.c:(.text+0x4c3): undefined reference to `COLS'
> checklist.c:(.text+0x4d7): undefined reference to `LINES'
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(hashmap.o):(.text+0x9c2):
> more undefined references to `SP' follow
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_beep.o):
> In function `beep':
> (.text+0x5): undefined reference to `cur_term'
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_beep.o):
> In function `beep':
> (.text+0x1b): undefined reference to `putp'
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_beep.o):
> In function `beep':
> (.text+0x22): undefined reference to `_nc_flush'
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_hline.o):
> In function `whline':
I google for this problem, it says i didn't install the /ncurses.
/
> i libncurses5 - shared libraries for terminal handling
> i libncurses5-dbg - debugging/profiling libraries for ncurses
> i libncurses5-dev - developer's libraries for ncurses
But after I install the lib , it doesn't change.
The script /linux/scripts/kconfig/lxdialog///check-lxdialog.sh/ contain
these messages:
> ldflags()
> {
> for ext in so a dylib ; do
> for lib in ncursesw ncurses curses ; do
> $cc -print-file-name=lib${lib}.${ext} | grep -q /
> if [ $? -eq 0 ]; then
> echo "-l${lib}"
> exit
> fi
> done
> done
> exit 1
> }
>
> # Where is ncurses.h?
> ccflags()
> {
> if [ -f /usr/include/ncurses/ncurses.h ]; then
> echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
> elif [ -f /usr/include/ncurses/curses.h ]; then
> echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
> elif [ -f /usr/include/ncurses.h ]; then
> echo '-DCURSES_LOC="<ncurses.h>"'
> else
> echo '-DCURSES_LOC="<curses.h>"'
> fi
> }
libncurses appear in /usr/lib ,and the head file appear in /usr/include.
> kiongf at ubuntu:/usr/lib$ ls | grep curse
> libncurses_g.a
> libncurses++_g.a
> libncurses.so.5.7
> libncurses++w_g.a
> libncursesw_g.a
> kiongf at ubuntu:/usr/include$ ls | grep ncurse
> ncurses_dll.h
> ncurses.h
> ncursesw
I have trapped in this problem for several days, please help me if you
have any good ideas.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120917/5a8c289f/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* some problem about make menuconfig
2012-09-17 2:01 some problem about make menuconfig g.wangweihong at gmail.com
@ 2012-09-17 9:04 ` Tirtha Ghosh
0 siblings, 0 replies; 2+ messages in thread
From: Tirtha Ghosh @ 2012-09-17 9:04 UTC (permalink / raw)
To: kernelnewbies
I am guessing your host machine is ubuntu 12.04 (Precise)??
If so, I faced similar problem sometime back and I tried lot of things to
resolve the same.
I am not remembering the exact steps or sequences but please do check this:
1. check for build-essential package: sudo apt-get build-essential
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.
3. install these packages:
sudo apt-get install libncurses5 libncurses5-dev libelf-dev libncurses5
libncursesw5-dev
Another best way to install any packages in Ubuntu,
1. visit http://packages.ubuntu.com/
2. find required package for required Ubuntu version.
3. Browse thorough your search result and pick deb packages for i386/amd64
(as per your machine).
Hope this will help you as well.
regards,
On Mon, Sep 17, 2012 at 7:31 AM, g.wangweihong at gmail.com <
g.wangweihong@gmail.com> wrote:
> hello all:
> 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 *make
> menuconfig*.
> It tips as this:
>
> kiongf at ubuntu:~/sigma/tarball.386/smp86xx_kernel_source_R2.6.22-35/linux$make menuconfig
> HOSTCC scripts/kconfig/lxdialog/checklist.o
> HOSTCC scripts/kconfig/lxdialog/inputbox.o
> HOSTCC scripts/kconfig/lxdialog/menubox.o
> HOSTCC scripts/kconfig/lxdialog/textbox.o
> scripts/kconfig/lxdialog/textbox.c: ????print_line??:
> scripts/kconfig/lxdialog/textbox.c:323:9: ??? ???x?????????
> [-Wunused-but-set-variable]
> scripts/kconfig/lxdialog/textbox.c:323:6: ??? ???y?????????
> [-Wunused-but-set-variable]
> HOSTCC scripts/kconfig/lxdialog/util.o
> HOSTCC scripts/kconfig/lxdialog/yesno.o
> HOSTCC scripts/kconfig/mconf.o
> HOSTLD -static scripts/kconfig/mconf
> scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':
> checklist.c:(.text+0x5a): undefined reference to `acs_map'
> checklist.c:(.text+0xbc): undefined reference to `acs_map'
> checklist.c:(.text+0x105): undefined reference to `acs_map'
> checklist.c:(.text+0x116): undefined reference to `acs_map'
> checklist.c:(.text+0x127): undefined reference to `acs_map'
> scripts/kconfig/lxdialog/checklist.o:checklist.c:(.text+0x138): more
> undefined references to `acs_map' follow
> scripts/kconfig/lxdialog/checklist.o: In function `dialog_checklist':
> checklist.c:(.text+0x46d): undefined reference to `stdscr'
> checklist.c:(.text+0x4c3): undefined reference to `COLS'
> checklist.c:(.text+0x4d7): undefined reference to `LINES'
>
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(hashmap.o):(.text+0x9c2):
> more undefined references to `SP' follow
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_beep.o):
> In function `beep':
> (.text+0x5): undefined reference to `cur_term'
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_beep.o):
> In function `beep':
> (.text+0x1b): undefined reference to `putp'
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_beep.o):
> In function `beep':
> (.text+0x22): undefined reference to `_nc_flush'
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libncursesw.a(lib_hline.o):
> In function `whline':
>
> I google for this problem, it says i didn't install the *ncurses.
> *
>
> i
> libncurses5 -
> shared libraries for terminal
> handling
> i
> libncurses5-dbg -
> debugging/profiling libraries for
> ncurses
> i
> libncurses5-dev -
> developer's libraries for ncurses
>
> But after I install the lib , it doesn't change.
>
> The script *linux/scripts/kconfig/lxdialog**/check-lxdialog.sh*contain these messages:
>
>
> ldflags()
> {
> for ext in so a dylib ; do
> for lib in ncursesw ncurses curses ; do
> $cc -print-file-name=lib${lib}.${ext} | grep -q /
> if [ $? -eq 0 ]; then
> echo "-l${lib}"
> exit
> fi
> done
> done
> exit 1
> }
>
> # Where is ncurses.h?
> ccflags()
> {
> if [ -f /usr/include/ncurses/ncurses.h ]; then
> echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
> elif [ -f /usr/include/ncurses/curses.h ]; then
> echo '-I/usr/include/ncurses
> -DCURSES_LOC="<ncurses/curses.h>"'
> elif [ -f /usr/include/ncurses.h ]; then
> echo '-DCURSES_LOC="<ncurses.h>"'
> else
> echo '-DCURSES_LOC="<curses.h>"'
> fi
> }
>
> libncurses appear in /usr/lib ,and the head file appear in /usr/include.
>
> kiongf at ubuntu:/usr/lib$ ls | grep curse
> libncurses_g.a
> libncurses++_g.a
> libncurses.so.5.7
> libncurses++w_g.a
> libncursesw_g.a
>
> kiongf at ubuntu:/usr/include$ ls | grep ncurse
> ncurses_dll.h
> ncurses.h
> ncursesw
>
> I have trapped in this problem for several days, please help me if you
> have any good ideas.
>
> Thanks.
>
>
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
--
With Best Regards,
*Tirtha*
[image: Nico Nico animated GIF --]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120917/59a0a0c4/attachment-0001.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-17 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-17 2:01 some problem about make menuconfig g.wangweihong at gmail.com
2012-09-17 9:04 ` Tirtha Ghosh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).