LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-28-2006, 03:09 PM   #1
sancho1980
Member
 
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Rep: Reputation: 15
trouble compiling kernel


Hi,
I have Kanotix 64 bit installed on my system and I'm trying to build the latest kernel linux-2.6.18.tar.gz (to be found under http://www.kernel.org/pub/linux/kernel/v2.6/

It doesn't work, though I followed exactly the instructions under http://www.kernel.org/pub/linux/kernel/README

-I copied linux-2.6.18.tar.gz to /usr/src
-I did: -cd /usr/src
-gzip -cd linux-2.0.XX.tar.gz | tar xfv -
-cd /usr/include
-rm -rf asm linux scsi
-ln -s /usr/src/linux/include/asm-i386 asm
-ln -s /usr/src/linux/include/linux linux
-ln -s /usr/src/linux/include/scsi scsi
-cd /usr/src/linux
-make mrproper
-next, I wanted to run make "make config" from within /usr/src/linux-2.6.18/ which gave me the following error:

root@KanotixBox:/usr/src/linux-2.6.18# make config
HOSTCC scripts/kconfig/mconf.o
In file included from /usr/include/asm/ioctls.h:4,
from /usr/include/bits/ioctls.h:24,
from /usr/include/sys/ioctl.h:27,
from scripts/kconfig/mconf.c:11:
/usr/include/asm/ioctl.h:1:31: error: asm-generic/ioctl.h: No such file or directory
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [config] Error 2

Please, what's the problem here?

Thanx,

Martin

PS: Does anyone know what I have to do in order to compile the new kernel for 64 bits? I can run the 32-bit version too but 64 bits would be cooler..
 
Old 09-28-2006, 03:26 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Forget that it is really old way for 2.0 kernels and changes have happened to 2.2 and 2.4 structure as well. Just extract to /usr/src/linux-2.6.18
Then go into /usr/src/linux-2.6.18 and run the ' make config ' or make xconfig '.

The basics:
Extract to /usr/src/linux-2.6.18
ln -s linux-2.6.18 linux
cd /usr/src/linux
make mrproper ( clean kernel structure )
make config or make xconfig or make gconfig or a few others. All depends on installed items. Save and Exit.
make ( builds kernel and modules )
make modules_install ( installs modules in /lib/modules/
make install ( to install in grub boot loader )

While your at it might as well go to the latest 2.6.18.*

Brian1
 
Old 09-28-2006, 03:29 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Try using this guide for the kernel-package method of installing/compiling a kernel the Debian way. As to the 32/64 bit question is your install 64bits? Looks like it from your post so you should already be using 64 bit kernel/system and that is what you should install.
 
Old 09-28-2006, 03:40 PM   #4
sancho1980
Member
 
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Original Poster
Rep: Reputation: 15
wait a second: is the kernel source a different one for 64 bits?
If so, where can I find it?
i thought the source is the same as if im installing a 32 bit kernel only it has to be compiled differently...a bit confused now

Last edited by sancho1980; 09-28-2006 at 03:42 PM.
 
Old 09-28-2006, 03:49 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Its the same. normally it sees what you may have. But you can choose from the config tool to be more specfic as to type of cpu.

Brian1
 
Old 09-28-2006, 04:04 PM   #6
sancho1980
Member
 
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Original Poster
Rep: Reputation: 15
Ok, I'm able to run make config now; these questions seem to never end
all im doing is simply opting for the default option; and then I'm hitting the wrong key once in a while...it still never ends...is there no way to do this faster...all i want to specify is my amd64 processor

xconfig, gconfig and menuconfig dont work:

root@KanotixBox:/usr/src/linux# make xconfig
CHECK qt
*
* Unable to find the QT installation. Please make sure that
* the QT development package is correctly installed and
* either install pkg-config or set the QTDIR environment
* variable to the correct location.
*
sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
HOSTCC scripts/kconfig/kconfig_load.o
make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck', needed by `scripts/kconfig/qconf.o
'. Stop.
make: *** [xconfig] Error 2
root@KanotixBox:/usr/src/linux# make xconfig
CHECK qt
*
* Unable to find the QT installation. Please make sure that
* the QT development package is correctly installed and
* either install pkg-config or set the QTDIR environment
* variable to the correct location.
*
make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck', needed by `scripts/kconfig/qconf.o '. Stop.
make: *** [xconfig] Error 2




root@KanotixBox:/usr/src/linux# make gconfig
*
* Unable to find the GTK+ installation. Please make sure that
* the GTK+ 2.0 development package is correctly installed...
* You need gtk+-2.0, glib-2.0 and libglade-2.0.
*
make[1]: *** No rule to make target `scripts/kconfig/.tmp_gtkcheck', needed by `scripts/kconfig/gconf.o'. Stop.
make: *** [gconfig] Error 2




root@KanotixBox:/usr/src/linux# make menuconfig
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:128: error: syntax error before 'use_colors'
scripts/kconfig/lxdialog/dialog.h:128: warning: type defaults to 'int' in declaration of 'use_colors'
scripts/kconfig/lxdialog/dialog.h:128: warning: data definition has no type or storage class
scripts/kconfig/lxdialog/dialog.h:129: error: syntax error before 'use_shadow'
scripts/kconfig/lxdialog/dialog.h:129: warning: type defaults to 'int' in declaration of 'use_shadow'
scripts/kconfig/lxdialog/dialog.h:129: warning: data definition has no type or storage class
scripts/kconfig/lxdialog/dialog.h:131: error: syntax error before 'attributes'
scripts/kconfig/lxdialog/dialog.h:131: warning: type defaults to 'int' in declaration of 'attributes'
scripts/kconfig/lxdialog/dialog.h:131: warning: data definition has no type or storage class
scripts/kconfig/lxdialog/dialog.h:143: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:143: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:146: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:146: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:147: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:147: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:148: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:148: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:149: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:150: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:151: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:151: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c:31: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:33: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c: In function 'print_item':
scripts/kconfig/lxdialog/checklist.c:37: warning: implicit declaration of function 'wattrset'
scripts/kconfig/lxdialog/checklist.c:37: error: 'win' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:37: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:37: error: for each function it appears in.)
scripts/kconfig/lxdialog/checklist.c:38: warning: implicit declaration of function 'wmove'
scripts/kconfig/lxdialog/checklist.c:38: error: 'choice' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:40: warning: implicit declaration of function 'waddch'
scripts/kconfig/lxdialog/checklist.c:43: error: 'selected' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:44: warning: implicit declaration of function 'wprintw'
scripts/kconfig/lxdialog/checklist.c:44: error: 'status' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:47: warning: implicit declaration of function 'mvwaddch'
scripts/kconfig/lxdialog/checklist.c:47: error: 'item' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:49: warning: implicit declaration of function 'waddstr'
scripts/kconfig/lxdialog/checklist.c:52: warning: implicit declaration of function 'wrefresh'
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/checklist.c:59: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:61: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c: In function 'print_arrows':
scripts/kconfig/lxdialog/checklist.c:62: error: 'win' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:62: error: 'y' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:62: error: 'x' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:64: error: 'scroll' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:76: error: 'height' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:79: error: 'item_no' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:79: error: 'choice' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/checklist.c:95: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:96: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c: In function 'print_buttons':
scripts/kconfig/lxdialog/checklist.c:97: error: 'width' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:98: error: 'height' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:100: error: 'dialog' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:100: error: 'selected' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c: In function 'dialog_checklist':
scripts/kconfig/lxdialog/checklist.c:117: error: 'WINDOW' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: 'dialog' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: 'list' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of comma expression has no effect
scripts/kconfig/lxdialog/checklist.c:117: warning: statement with no effect
scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of function 'endwin'
scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of function 'fprintf'
scripts/kconfig/lxdialog/checklist.c:122: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/kconfig/lxdialog/checklist.c:122: error: 'stderr' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:140: error: 'COLS' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:141: error: 'LINES' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:143: error: 'stdscr' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function 'newwin'
scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of function 'keypad'
scripts/kconfig/lxdialog/checklist.c:146: error: 'TRUE' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of function 'subwin'
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function 'wnoutrefresh'
scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of function 'doupdate'
scripts/kconfig/lxdialog/checklist.c:207: warning: implicit declaration of function 'wgetch'
scripts/kconfig/lxdialog/checklist.c:214: error: 'KEY_UP' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:214: error: 'KEY_DOWN' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:224: error: 'FALSE' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:225: warning: implicit declaration of function 'scrollok'
scripts/kconfig/lxdialog/checklist.c:226: warning: implicit declaration of function 'wscrl'
scripts/kconfig/lxdialog/checklist.c:285: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/kconfig/lxdialog/checklist.c:286: warning: implicit declaration of function 'delwin'
scripts/kconfig/lxdialog/checklist.c:290: error: 'KEY_LEFT' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:291: error: 'KEY_RIGHT' undeclared (first use in this function)
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2
 
Old 09-28-2006, 04:33 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by sancho1980
Ok, I'm able to run make config now; these questions seem to never end
all im doing is simply opting for the default option; and then I'm hitting the wrong key once in a while...it still never ends...is there no way to do this faster...all i want to specify is my amd64 processor



root@KanotixBox:/usr/src/linux# make menuconfig
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:128: error: syntax error before 'use_colors'
scripts/kconfig/lxdialog/dialog.h:128: warning: type defaults to 'int' in declaration of 'use_colors'
scripts/kconfig/lxdialog/dialog.h:128: warning: data definition has no type or storage class
scripts/kconfig/lxdialog/dialog.h:129: error: syntax error before 'use_shadow'
scripts/kconfig/lxdialog/dialog.h:129: warning: type defaults to 'int' in declaration of 'use_shadow'
scripts/kconfig/lxdialog/dialog.h:129: warning: data definition has no type or storage class
scripts/kconfig/lxdialog/dialog.h:131: error: syntax error before 'attributes'
scripts/kconfig/lxdialog/dialog.h:131: warning: type defaults to 'int' in declaration of 'attributes'
scripts/kconfig/lxdialog/dialog.h:131: warning: data definition has no type or storage class
scripts/kconfig/lxdialog/dialog.h:143: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:143: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:146: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:146: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:147: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:147: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:148: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:148: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:149: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:150: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:151: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:151: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c:31: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:33: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c: In function 'print_item':
scripts/kconfig/lxdialog/checklist.c:37: warning: implicit declaration of function 'wattrset'
scripts/kconfig/lxdialog/checklist.c:37: error: 'win' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:37: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:37: error: for each function it appears in.)
scripts/kconfig/lxdialog/checklist.c:38: warning: implicit declaration of function 'wmove'
scripts/kconfig/lxdialog/checklist.c:38: error: 'choice' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:40: warning: implicit declaration of function 'waddch'
scripts/kconfig/lxdialog/checklist.c:43: error: 'selected' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:44: warning: implicit declaration of function 'wprintw'
scripts/kconfig/lxdialog/checklist.c:44: error: 'status' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:47: warning: implicit declaration of function 'mvwaddch'
scripts/kconfig/lxdialog/checklist.c:47: error: 'item' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:49: warning: implicit declaration of function 'waddstr'
scripts/kconfig/lxdialog/checklist.c:52: warning: implicit declaration of function 'wrefresh'
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/checklist.c:59: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:61: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c: In function 'print_arrows':
scripts/kconfig/lxdialog/checklist.c:62: error: 'win' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:62: error: 'y' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:62: error: 'x' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:64: error: 'scroll' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:76: error: 'height' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:79: error: 'item_no' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:79: error: 'choice' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/checklist.c:95: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:96: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c: In function 'print_buttons':
scripts/kconfig/lxdialog/checklist.c:97: error: 'width' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:98: error: 'height' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:100: error: 'dialog' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:100: error: 'selected' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c: In function 'dialog_checklist':
scripts/kconfig/lxdialog/checklist.c:117: error: 'WINDOW' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: 'dialog' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: 'list' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of comma expression has no effect
scripts/kconfig/lxdialog/checklist.c:117: warning: statement with no effect
scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of function 'endwin'
scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of function 'fprintf'
scripts/kconfig/lxdialog/checklist.c:122: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/kconfig/lxdialog/checklist.c:122: error: 'stderr' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:140: error: 'COLS' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:141: error: 'LINES' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:143: error: 'stdscr' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function 'newwin'
scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of function 'keypad'
scripts/kconfig/lxdialog/checklist.c:146: error: 'TRUE' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of function 'subwin'
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function 'wnoutrefresh'
scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of function 'doupdate'
scripts/kconfig/lxdialog/checklist.c:207: warning: implicit declaration of function 'wgetch'
scripts/kconfig/lxdialog/checklist.c:214: error: 'KEY_UP' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:214: error: 'KEY_DOWN' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:224: error: 'FALSE' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:225: warning: implicit declaration of function 'scrollok'
scripts/kconfig/lxdialog/checklist.c:226: warning: implicit declaration of function 'wscrl'
scripts/kconfig/lxdialog/checklist.c:285: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/kconfig/lxdialog/checklist.c:286: warning: implicit declaration of function 'delwin'
scripts/kconfig/lxdialog/checklist.c:290: error: 'KEY_LEFT' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:291: error: 'KEY_RIGHT' undeclared (first use in this function)
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2
If you had read the link I provided you would have seen the list of packages required in this case libncurses5-dev and while your at it make sure that the build-essential package is installed.
 
Old 09-28-2006, 04:53 PM   #8
sancho1980
Member
 
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Original Poster
Rep: Reputation: 15
ah ok
i tried to use your link before but it seems it was dead for a sec so i wasnt able to go there
works now...
 
Old 09-28-2006, 08:45 PM   #9
JackieBrown
Member
 
Registered: Dec 2004
Location: San Antonio, TX
Distribution: Debian-AMD64 Sid
Posts: 481

Rep: Reputation: 31
You need to install libqt3-mt-dev for make xconfig

here is a easy guide

http://debcentral.org/modules/newbb/...id=269&forum=8
 
Old 09-29-2006, 08:35 AM   #10
sancho1980
Member
 
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Original Poster
Rep: Reputation: 15
hi
i tried the instructions given in your link; it doesn't work
what's that apt-get instruction supposed to do?

it gives me this

root@KanotixBox:~# apt-get install linux-source-2-6-18 kernel-package libncurses5-dev libqt3-mt-dev linux-patch-bootsplash
Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list http://amd64.debian.net sid/main Packages (/var/lib/apt/lists/amd64.debian.net_debian-pure64_dists_sid_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://amd64.debian.net sid/contrib Packages (/var/lib/apt/lists/amd64.debian.net_debian-pure64_dists_sid_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://amd64.debian.net sid/non-free Packages (/var/lib/apt/lists/amd64.debian.net_debian-pure64_dists_sid_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://kanotix.com sid/main Packages (/var/lib/apt/lists/kanotix.com_files_debian_dists_sid_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://kanotix.com sid/contrib Packages (/var/lib/apt/lists/kanotix.com_files_debian_dists_sid_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://kanotix.com sid/non-free Packages (/var/lib/apt/lists/kanotix.com_files_debian_dists_sid_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package linux-source-2-6-18

Btw, whats this bootsplash all about? something like lilo?
 
Old 09-29-2006, 08:55 AM   #11
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by sancho1980
hi
i tried the instructions given in your link; it doesn't work
what's that apt-get instruction supposed to do?

it gives me this

root@KanotixBox:~# apt-get install linux-source-2-6-18 kernel-package libncurses5-dev libqt3-mt-dev linux-patch-bootsplash
Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list http://amd64.debian.net sid/main Packages (/var/lib/apt/lists/amd64.debian.net_debian-pure64_dists_sid_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://amd64.debian.net sid/contrib Packages (/var/lib/apt/lists/amd64.debian.net_debian-pure64_dists_sid_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://amd64.debian.net sid/non-free Packages (/var/lib/apt/lists/amd64.debian.net_debian-pure64_dists_sid_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://kanotix.com sid/main Packages (/var/lib/apt/lists/kanotix.com_files_debian_dists_sid_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://kanotix.com sid/contrib Packages (/var/lib/apt/lists/kanotix.com_files_debian_dists_sid_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://kanotix.com sid/non-free Packages (/var/lib/apt/lists/kanotix.com_files_debian_dists_sid_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package linux-source-2-6-18

Btw, whats this bootsplash all about? something like lilo?

You have not updated your package cache so you need to either do apt-get update or dselect update then you can try to install.
 
Old 09-29-2006, 10:15 AM   #12
sancho1980
Member
 
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Original Poster
Rep: Reputation: 15
Why am I getting ever more error messages:

root@KanotixBox:/home/sancho# apt-get update
Ign http://amd64.debian.net sid Release.gpg
Ign http://amd64.debian.net sid Release
Ign http://amd64.debian.net sid/main Packages
Ign http://amd64.debian.net sid/contrib Packages
Ign http://amd64.debian.net sid/non-free Packages
Ign http://amd64.debian.net sid/main Sources
Ign http://amd64.debian.net sid/contrib Sources
Ign http://amd64.debian.net sid/non-free Sources
Err http://amd64.debian.net sid/main Packages
404 Not Found
Get:1 http://kanotix.com sid Release.gpg [189B]
Err http://amd64.debian.net sid/contrib Packages
404 Not Found
Get:2 http://kanotix.com sid Release [16.9kB]
Err http://amd64.debian.net sid/non-free Packages
404 Not Found
Err http://amd64.debian.net sid/main Sources
404 Not Found
Err http://amd64.debian.net sid/contrib Sources
404 Not Found
Err http://amd64.debian.net sid/non-free Sources
404 Not Found
Get:3 http://kanotix.com sid/main Packages [48.6kB]
Get:4 http://kanotix.com sid/contrib Packages [3415B]
Get:5 http://kanotix.com sid/non-free Packages [7660B]
Get:6 http://kanotix.com sid/main Sources [12.4kB]
Get:7 http://kanotix.com sid/contrib Sources [1781B]
Get:8 http://kanotix.com sid/non-free Sources [3256B]
Fetched 94.2kB in 0s (122kB/s)
Failed to fetch http://amd64.debian.net/debian-pure6...64/Packages.gz 404 Not
Found
Failed to fetch http://amd64.debian.net/debian-pure6...64/Packages.gz 404
Not Found
Failed to fetch http://amd64.debian.net/debian-pure6...64/Packages.gz 404
Not Found
Failed to fetch http://amd64.debian.net/debian-pure6...rce/Sources.gz 404 Not Found
Failed to fetch http://amd64.debian.net/debian-pure6...rce/Sources.gz 404 Not Fou nd
Failed to fetch http://amd64.debian.net/debian-pure6...rce/Sources.gz 404 Not Fo und
Reading package lists... Done
W: Couldn't stat source package list http://amd64.debian.net sid/main Packages (/var/lib/apt/lists/amd 64.debian.net_debian-pure64_dists_sid_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://amd64.debian.net sid/contrib Packages (/var/lib/apt/lists/ amd64.debian.net_debian-pure64_dists_sid_contrib_binary-amd64_Packages) - stat (2 No such file or dire ctory)
W: Couldn't stat source package list http://amd64.debian.net sid/non-free Packages (/var/lib/apt/lists /amd64.debian.net_debian-pure64_dists_sid_non-free_binary-amd64_Packages) - stat (2 No such file or di rectory)
W: Couldn't stat source package list http://amd64.debian.net sid/main Packages (/var/lib/apt/lists/amd 64.debian.net_debian-pure64_dists_sid_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://amd64.debian.net sid/contrib Packages (/var/lib/apt/lists/ amd64.debian.net_debian-pure64_dists_sid_contrib_binary-amd64_Packages) - stat (2 No such file or dire ctory)
W: Couldn't stat source package list http://amd64.debian.net sid/non-free Packages (/var/lib/apt/lists /amd64.debian.net_debian-pure64_dists_sid_non-free_binary-amd64_Packages) - stat (2 No such file or di rectory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
root@KanotixBox:/home/sancho# dselect update
Get:1 http://kanotix.com sid Release.gpg [189B]
Hit http://kanotix.com sid Release
Ign http://amd64.debian.net sid Release.gpg
Hit http://kanotix.com sid/main Packages
Hit http://kanotix.com sid/contrib Packages
Hit http://kanotix.com sid/non-free Packages
Hit http://kanotix.com sid/main Sources
Hit http://kanotix.com sid/contrib Sources
Hit http://kanotix.com sid/non-free Sources
Ign http://amd64.debian.net sid Release
Ign http://amd64.debian.net sid/main Packages
Ign http://amd64.debian.net sid/contrib Packages
Ign http://amd64.debian.net sid/non-free Packages
Ign http://amd64.debian.net sid/main Sources
Ign http://amd64.debian.net sid/contrib Sources
Ign http://amd64.debian.net sid/non-free Sources
Err http://amd64.debian.net sid/main Packages
404 Not Found
Err http://amd64.debian.net sid/contrib Packages
404 Not Found
Err http://amd64.debian.net sid/non-free Packages
404 Not Found
Err http://amd64.debian.net sid/main Sources
404 Not Found
Err http://amd64.debian.net sid/contrib Sources
404 Not Found
Err http://amd64.debian.net sid/non-free Sources
404 Not Found
Fetched 1B in 0s (3B/s)
Failed to fetch http://amd64.debian.net/debian-pure6...64/Packages.gz 404 Not Found
Failed to fetch http://amd64.debian.net/debian-pure6...64/Packages.gz 404 Not Found
Failed to fetch http://amd64.debian.net/debian-pure6...64/Packages.gz 404 Not Found
Failed to fetch http://amd64.debian.net/debian-pure6...rce/Sources.gz 404 Not Found
Failed to fetch http://amd64.debian.net/debian-pure6...rce/Sources.gz 404 Not Found
Failed to fetch http://amd64.debian.net/debian-pure6...rce/Sources.gz 404 Not Found
Reading package lists... Done
W: Couldn't stat source package list http://amd64.debian.net sid/main Packages (/var/lib/apt/lists/amd64.debian.net_debian-pure64_dists_sid_main_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://amd64.debian.net sid/contrib Packages (/var/lib/apt/lists/amd64.debian.net_debian-pure64_dists_sid_contrib_binary-amd64_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://amd64.debian.net sid/non-free Packages (/var/lib/apt/lists/amd64.debian.net_debian-pure64_dists_sid_non-free_binary-amd64_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.

update available list script returned error exit status 1.
Press <enter> to continue.


Btw, what is it that this is update is supposed to achieve?
 
Old 09-29-2006, 10:35 AM   #13
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
You need to change to Debian sources now the amd64 has been removed as they are now on official mirrors, sorry I should have seen that the first time try this for the line in your sources.list to replace the amd64 ones.

Code:
## Unstable Sources
deb http://ftp.de.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.de.debian.org/debian/ sid main contrib non-free
You can change the ftp.de.debian.org to a mirror in your country if you want but I find the German mirrors to be pretty much the fastest around. Now when you do the update you should apt-get upgrade after this and don't be surprised when you see that basically your entire install is going to be upgraded even if the package version number has not changed the packages from the official mirror would be downloaded then installed to replace them.

Edit: The apt-get update gets the list of packages on a mirror and replaces the list that is stored in the cache, once this is done then any software you install will be installed/upgraded to the newer version. With an out of date cache what usually happens when you try to install packages is that you will get an error telling you that it could not find the package at a certain version number this is because it has been replaced on the mirror with newer one. This applies to the testing/unstable (sid) flavors of Debian on the stable version packages only change when there has been a security problem discovered and a fixed package is uploaded to the security repository then the newer package gets installed if you have this repository in your sources.list.

Last edited by HappyTux; 09-29-2006 at 10:43 AM.
 
Old 09-29-2006, 09:57 PM   #14
JackieBrown
Member
 
Registered: Dec 2004
Location: San Antonio, TX
Distribution: Debian-AMD64 Sid
Posts: 481

Rep: Reputation: 31
If that was your source list, be ready for a big upgrade.

That change happened about half a year ago
 
Old 09-30-2006, 04:44 PM   #15
PingFloyd
Member
 
Registered: Jun 2006
Posts: 94

Rep: Reputation: 16
There's an easier way that has a couple of advantages.

1. $ ln -s /usr/src/<kernel-source-dir> linux
2. $ cd /usr/src/linux
3. $ make menuconfig
4. $ fakeroot make-kpkg clean
5. $ fakeroot make-kpkg --append-to-version=<whatever internal versioning scheme you want to use here> kernel_image modules_image
6. now all your do is just install the two packages created logged in as root (i.e. dpkg -i).

The advantage of doing it this way is that kernel-package takes care of alot the grunt work and creates nice debian packages that allow you to easier manage your kernels and modules (i.e. easy install, removal, and archival). Another plus is that you don't have to be logged in as root other than the install the packages. You much of course make sure you have proper permissions inside the kernel tree you're working on though. That's pretty easy to take care of though. Just make sure that you unpack the kernel tarball into a directory that you have write access to and that you stay logged in as the same user as the one you unpacked with.

Using kernel-package especially comes in handy if you're ever building a kernel that you intend to use for multiple systems since they become debian packages.

Gotta love Debian.
 
  


Reply



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
Trouble Compiling Kernel Module... Elric of Grans Linux - General 2 05-31-2006 12:57 AM
Trouble compiling Kernel 2.6.10 AJones Debian 8 02-13-2005 03:28 AM
having trouble while compiling kernel.. The_eXXe Mandriva 12 09-02-2004 01:53 PM
Having trouble compiling 2.6.3 kernel s1lv1a9999 Linux - Software 2 03-03-2004 01:14 AM
Trouble when compiling the 2.6.2 kernel Menestrel Linux - Software 1 02-14-2004 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:03 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