LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiling my first kernel (2.4.32) (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-my-first-kernel-2-4-32-a-391419/)

jordan399 12-10-2005 09:16 PM

compiling my first kernel (2.4.32)
 
hi everyone,
i am very new to linux and am having troubles with a network adapter. i have located the module code for it but i get some compile errors because i need a newer kernel (according to sources from other forums). currently i have kernel 2.4.21 and am running suse 9.0. my progress so far is rather lame, i have downloaded and extract 2.4.30 to /usr/src/linux-2.4.32. when i go into that directory and type make menuconfig i get the following errors:

linux01:/usr/src/linux-2.4.32 # make menuconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/src/linux-2.4.32/scripts/lxdialog'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<ncurses.h>" -c -o checklist.o checklist.c
In file included from checklist.c:24:
dialog.h:22:23: sys/types.h: No such file or directory
dialog.h:23:19: fcntl.h: No such file or directory
dialog.h:24:20: unistd.h: No such file or directory
dialog.h:25:19: ctype.h: No such file or directory
dialog.h:26:20: stdlib.h: No such file or directory
dialog.h:27:20: string.h: No such file or directory
In file included from dialog.h:29,
from checklist.c:24:
/usr/include/ncurses.h:101:22: features.h: No such file or directory
/usr/include/ncurses.h:102:23: sys/types.h: No such file or directory
/usr/include/ncurses.h:103:19: stdio.h: No such file or directory
In file included from dialog.h:29,
from checklist.c:24:
/usr/include/ncurses.h:561: error: parse error before '*' token
/usr/include/ncurses.h:647: error: parse error before "FILE"
/usr/include/ncurses.h:667: error: parse error before "FILE"
checklist.c: In function `dialog_checklist':
checklist.c:131: warning: implicit declaration of function `malloc'
checklist.c:131: warning: assignment makes pointer from integer without a cast
checklist.c:131: error: `NULL' undeclared (first use in this function)
checklist.c:131: error: (Each undeclared identifier is reported only once
checklist.c:131: error: for each function it appears in.)
checklist.c:133: warning: implicit declaration of function `fprintf'
checklist.c:133: error: `stderr' undeclared (first use in this function)
checklist.c:135: warning: implicit declaration of function `exit'
checklist.c:140: warning: implicit declaration of function `strcasecmp'
checklist.c:164: warning: implicit declaration of function `strlen'
checklist.c:166: warning: initialization makes pointer from integer without a cast
checklist.c:167: warning: implicit declaration of function `memcpy'
checklist.c:227: warning: implicit declaration of function `toupper'
checklist.c:306: warning: implicit declaration of function `free'
make[1]: *** [checklist.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.32/scripts/lxdialog'
make: *** [menuconfig] Error 2

if anyone has any pointers it would be greatly appreciated.
thanks

btmiller 12-10-2005 10:16 PM

Looks like you don't have any of the header files installed on your system. Try installing the glibc-devel package. You'll also need the gcc packages installed, if you don't have them. If you would post what distribution you're using, someone could help a bit more with the details of installing these packages.

EclipseAgent 12-10-2005 11:43 PM

Install kdelibs3-devel

jordan399 12-11-2005 02:09 AM

thanks for the replies, i already had the glibc-devel and gcc packages installed. i installed kdelibs3-devel package but that didnt help either, i am using suse 9.0 by the way.

any other ideas?
thanks

T.Hsu 12-11-2005 02:15 AM

make menuconfig need ncurses-devel installed.

jordan399 12-11-2005 03:30 AM

i have ncurses installed


All times are GMT -5. The time now is 02:15 AM.