LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2005, 09:16 PM   #1
jordan399
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
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
 
Old 12-10-2005, 10:16 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 12-10-2005, 11:43 PM   #3
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Rep: Reputation: 30
Install kdelibs3-devel
 
Old 12-11-2005, 02:09 AM   #4
jordan399
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 12-11-2005, 02:15 AM   #5
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
make menuconfig need ncurses-devel installed.
 
Old 12-11-2005, 03:30 AM   #6
jordan399
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
i have ncurses installed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM
Compiling 2.0.39 kernel wartstew Linux - Newbie 3 06-13-2002 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration