Help - Search - Members - Calendar
Full Version: Compiling Kernel 2.5.75 Problems
Linuxhelp > Support > Technical Support
wragen22
I am trying to compile kernel 2.5.75 on redhat.
When i run make menuconfig i get these errors:
make[1]: *** [scripts/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2

But if i do make xconfig everything works fine until i run make modules and i will get varius driver errors in the char folder. specifically riscom8.

If you guys could help me out that would be great.

Thanks,
Brad
hughesjr
(concerning the make menuconfig error) ... You need to move up higher than the error to the actual first sign of trouble....do you have the package dialog installed?

Why compile 2.5.75 ... I would instead do 2.6.0test3 ... but reguardless, the easiest way (in my opinion) to compile the new 2.5 / 2.6 kernel is to use initally use these options:

make mrproper - Removes any old compiles

make defconfig - Sets all values to the default

make menuconfig - (or make xconfig / make gconfig) - set your specific parameters....only turn on what you need.

make bzImage

cp arch/i386/boot/bzImage /boot/kernelname

make modules

make modules_install

This configuration requires that you know what you want to change from the default ... normally only the drivers you need to boot ... which you can normally get by doing lsmod right after you boot up on your current kernel.
wragen22
here is the line above
/usr/include/bits/string2.h: At top level:
scripts/lxdialog/dialog.h:130: warning: array `attributes' assumed to have one element

I'll give the 2.6 a try and post any problems that i have.

Brad
wragen22
downloaded kernel 2.6 test 3
when i ran make menuconfig i got this. Which was the same error as last time. I have dialog installed.

HOSTCC scripts/fixdep
HOSTCC scripts/split-include
HOSTCC scripts/conmakehash
HOSTCC scripts/docproc
HOSTCC scripts/kallsyms
CC scripts/empty.o
HOSTCC scripts/mk_elfconfig
MKELF scripts/elfconfig.h
HOSTCC scripts/file2alias.o
HOSTCC scripts/modpost.o
HOSTLD scripts/modpost
HOSTCC scripts/pnmtologo
SHIPPED scripts/kconfig/zconf.tab.h
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
HOSTCC -fPIC scripts/kconfig/zconf.tab.o
HOSTLLD -shared scripts/kconfig/libkconfig.so
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/lxdialog/checklist.o
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:29:20: curses.h: No such file or directory
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:127: parse error before "use_colors"
scripts/lxdialog/dialog.h:127: warning: type defaults to `int' in declaration of `use_colors'
scripts/lxdialog/dialog.h:127: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:128: parse error before "use_shadow"
scripts/lxdialog/dialog.h:128: warning: type defaults to `int' in declaration of `use_shadow'
scripts/lxdialog/dialog.h:128: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:130: parse error before "attributes"
scripts/lxdialog/dialog.h:130: warning: type defaults to `int' in declaration of `attributes'
scripts/lxdialog/dialog.h:130: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:143: parse error before '*' token
scripts/lxdialog/dialog.h:143: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:146: parse error before '*' token
scripts/lxdialog/dialog.h:146: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:147: parse error before '*' token
scripts/lxdialog/dialog.h:147: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:148: parse error before '*' token
scripts/lxdialog/dialog.h:149: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:150: parse error before '*' token
scripts/lxdialog/dialog.h:150: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c:32: parse error before '*' token
scripts/lxdialog/checklist.c:34: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c: In function `print_item':
scripts/lxdialog/checklist.c:38: warning: implicit declaration of function `wattrset'
scripts/lxdialog/checklist.c:38: `win' undeclared (first use in this function)
scripts/lxdialog/checklist.c:38: (Each undeclared identifier is reported only once
scripts/lxdialog/checklist.c:38: for each function it appears in.)
scripts/lxdialog/checklist.c:39: warning: implicit declaration of function `wmove'
scripts/lxdialog/checklist.c:39: `choice' undeclared (first use in this function)
scripts/lxdialog/checklist.c:41: warning: implicit declaration of function `waddch'
scripts/lxdialog/checklist.c:44: `selected' undeclared (first use in this function)
scripts/lxdialog/checklist.c:46: warning: implicit declaration of function `wprintw'
scripts/lxdialog/checklist.c:46: `status' undeclared (first use in this function)
scripts/lxdialog/checklist.c:51: warning: implicit declaration of function `mvwaddch'
scripts/lxdialog/checklist.c:51: `item' undeclared (first use in this function)
scripts/lxdialog/checklist.c:53: warning: implicit declaration of function `waddstr'
scripts/lxdialog/checklist.c:56: warning: implicit declaration of function `wrefresh'
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/checklist.c:64: parse error before '*' token
scripts/lxdialog/checklist.c:66: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c: In function `print_arrows':
scripts/lxdialog/checklist.c:67: `win' undeclared (first use in this function)
scripts/lxdialog/checklist.c:67: `y' undeclared (first use in this function)
scripts/lxdialog/checklist.c:67: `x' undeclared (first use in this function)
scripts/lxdialog/checklist.c:69: `scroll' undeclared (first use in this function)
scripts/lxdialog/checklist.c:82: `height' undeclared (first use in this function)
scripts/lxdialog/checklist.c:85: `item_no' undeclared (first use in this function)
scripts/lxdialog/checklist.c:85: `choice' undeclared (first use in this function)
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/checklist.c:103: parse error before '*' token
scripts/lxdialog/checklist.c:104: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c: In function `print_buttons':
scripts/lxdialog/checklist.c:105: `width' undeclared (first use in this function)
scripts/lxdialog/checklist.c:106: `height' undeclared (first use in this function)
scripts/lxdialog/checklist.c:108: `dialog' undeclared (first use in this function)
scripts/lxdialog/checklist.c:108: `selected' undeclared (first use in this function)
scripts/lxdialog/checklist.c: In function `dialog_checklist':
scripts/lxdialog/checklist.c:126: `WINDOW' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: `dialog' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: `list' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: warning: left-hand operand of comma expression has no effect
scripts/lxdialog/checklist.c:132: warning: implicit declaration of function `endwin'
scripts/lxdialog/checklist.c:133: warning: implicit declaration of function `fprintf'
scripts/lxdialog/checklist.c:133: `stderr' undeclared (first use in this function)
scripts/lxdialog/checklist.c:148: `COLS' undeclared (first use in this function)
scripts/lxdialog/checklist.c:149: `LINES' undeclared (first use in this function)
scripts/lxdialog/checklist.c:151: `stdscr' undeclared (first use in this function)
scripts/lxdialog/checklist.c:153: warning: implicit declaration of function `newwin'
scripts/lxdialog/checklist.c:154: warning: implicit declaration of function `keypad'
scripts/lxdialog/checklist.c:154: `TRUE' undeclared (first use in this function)
scripts/lxdialog/checklist.c:187: warning: implicit declaration of function `subwin'
scripts/lxdialog/checklist.c:219: warning: implicit declaration of function `wnoutrefresh'
scripts/lxdialog/checklist.c:221: warning: implicit declaration of function `doupdate'
scripts/lxdialog/checklist.c:224: warning: implicit declaration of function `wgetch'
scripts/lxdialog/checklist.c:231: `KEY_UP' undeclared (first use in this function)
scripts/lxdialog/checklist.c:231: `KEY_DOWN' undeclared (first use in this function)
scripts/lxdialog/checklist.c:241: `FALSE' undeclared (first use in this function)
scripts/lxdialog/checklist.c:242: warning: implicit declaration of function `scrollok'
scripts/lxdialog/checklist.c:243: warning: implicit declaration of function `wscrl'
scripts/lxdialog/checklist.c:270: called object is not a function
scripts/lxdialog/checklist.c:305: warning: implicit declaration of function `delwin'
scripts/lxdialog/checklist.c:309: `KEY_LEFT' undeclared (first use in this function)
scripts/lxdialog/checklist.c:310: `KEY_RIGHT' undeclared (first use in this function)
/usr/include/bits/string2.h: At top level:
scripts/lxdialog/dialog.h:130: warning: array `attributes' assumed to have one element
make[1]: *** [scripts/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2
[root@localhost linux-2.6.0-test3]#
hughesjr
the line that tells you what is wrong with your make menuconfig is this one:

scripts/lxdialog/dialog.h:29:20: curses.h: No such file or directory

(everything else is probably a continuation of this error)...curses.h is provided by the package ncurses-devel.

Have you upgraded your RedHat install to the latest packages using either up2date or apt-get? You can use either of these to get the latest ncurses-devel ... you can also install ncurses-devel from your CD if you haven't done any upgrades ... but you should use the latest software to compile the new kernel. Make sure you have the same version of ncurses and ncurses-devel ... I am using RedHat 9 with apt-get for updates and my ncurses packages are as follows:

ncurses-5.3-4
ncurses-devel-5.3-4
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.