LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-02-2004, 09:10 AM   #1
Duukkis
Member
 
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75

Rep: Reputation: 15
"make-kpkg --revision=foo.1.0 kernel_image" gives some errors (kernel 2.6.3)


When I have done "make menuconfig", "make-kpkg clean" and "make-kpkg --revision=foo.1.0 kernel_image" it gives me errors:

make[2]: *** [_modinst_post] Error 1
make[2]: Leaving directory `/usr/local/src/linux-2.6.3'
make[1]: *** [real_stamp_image] Error 2
make[1]: Leaving directory `/usr/local/src/linux-2.6.3'

The linux folder and all linux-2.6.3 files have my normal user rights to read, write and execute. I think that I have installed all packages which have dependencies with kernel-package scripts and programs which are needed to compile kernel in the "normal way" (not the "debian way"). What are these errors?
 
Old 05-10-2004, 04:44 PM   #2
dgarske
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
I'm a newbie, but I have had the same problem with my kernel compilation.

make[2]: *** [_modinst_post] Error 1
make[2]: Leaving directory `/usr/src/linux-2.6.6'
make[1]: *** [real_stamp_image] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.6'

Does anyone have a solution to this problem? I am not even sure what it's saying.

I used these commands to start the compile:
make-kpkg clean
make-kpkg --revision=786:MyKernel2.6.6 kernel_image

David Garske
 
Old 05-10-2004, 06:34 PM   #3
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 31
Dagarskie

Change this:

make-kpkg --revision=786:MyKernel2.6.6 kernel_image

to this:

make-kpkg --revision=.786:MyKernel2.6.6 kernel_image

You left out the period plus using the colon could be a problem too. Just use a space instead.

Duukis

make-kpkg --revision=foo.1.0 kernel_image should be make-kpkg --revision=.foo.1.0 kernel_image

Last edited by CBlue; 05-10-2004 at 06:44 PM.
 
Old 05-10-2004, 06:41 PM   #4
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 31
Great resouce http://newbiedoc.sourceforge.net/sys...ALL-KERNEL-PKG Says woody but it works for sid too, which is what I have.

I followed this to the letter and was able to get the 2.6.5 kernel installed and working perfectly. Xconfig is much easier than menuconfig.

Last edited by CBlue; 05-10-2004 at 06:42 PM.
 
Old 05-21-2004, 11:06 AM   #5
Duukkis
Member
 
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75

Original Poster
Rep: Reputation: 15
CBlue, thanks for help. Now when I'm configuring 2.6.6 kernel with make xconfig, I get:

temonen@debianmasiina:/usr/src/linux-2.6.6$ make xconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
*
* Unable to find the QT installation. Please make sure that the
* QT development package is correctly installed and the QTDIR
* environment variable is set to the correct location.
*
make[1]: *** [scripts/kconfig/.tmp_qtcheck] Error 1
make: *** [xconfig] Error 2

I don't know which packages I should install for executing "make xconfig". I tried anyway to find any QT packages and installed them. What should I do to get QT working (whatever it is)? The list of QT programs I have :

temonen@debianmasiina:/usr/src/linux-2.6.6$ dpkg -l | grep qt
ii libqt2 2.3.2-14 Qt GUI Library (runtime version)
ii libqt3c102-mt 3.2.3-2 Qt GUI Library (Threaded runtime version)
ii qt-doc 2.3.2-14 Reference documentation for Qt
ii qt2-dev-tools 2.3.2-14 Qt2 development tools
ii qt3-dev-tools 3.2.3-2 Qt3 development tools
ii qt3-dev-tools- 3.2.3-2 Conversion utilities for Qt3 development
ii qt3-doc 3.2.3-2 Qt3 API documentation
ii qt3-qtconfig 3.2.3-2 The Qt3 Configuration Application
 
Old 05-21-2004, 07:08 PM   #6
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 31
Post your /etc/ld.so.conf file

Here's mine:

/lib
/usr/lib
/usr/X11R6/lib
/usr/i486-linuxlibc1/lib

/usr/lib/libc5-compat
/lib/libc5-compat

This file needs to have correct paths to library files that are needed to compile many programs. Post yours here and let's see what you have.
 
Old 05-21-2004, 07:15 PM   #7
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 31
Something else, Duukkis, you may need to upgrade xfree86 in order to use xconfig. Or you can just use make menuconfig if that one will work for you.

Last edited by CBlue; 05-21-2004 at 07:16 PM.
 
Old 05-22-2004, 04:38 AM   #8
Duukkis
Member
 
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75

Original Poster
Rep: Reputation: 15
My ld.so.conf file:

temonen@debianmasiina:~$ cat /etc/ld.so.conf
/usr/X11R6/lib

Why should I have upgrade xfree86 to use xconfig? I think that I have 4.3.0-7 version of xfree86 and that's the most recent version in Debian/testing:

temonen@debianmasiina:~$ dpkg -l | grep xserver
ii xserver-common 4.3.0-7 files and utilities common to all X servers
ii xserver-xfree8 4.3.0-7 the XFree86 X server

Should it be the most recent "beta" version?
 
Old 05-22-2004, 05:13 AM   #9
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 31
Try adding:
/lib
/usr/lib

to your ld.so.conf. You really do need the root lib path and the usr lib path in that file. It will help programs that you compile be able to find the other programs when you install them.

And no, you don't need the most recent version of xfree86, you just need have xfree86 installed and you do.

Last edited by CBlue; 05-22-2004 at 05:14 AM.
 
Old 05-22-2004, 07:12 AM   #10
Duukkis
Member
 
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75

Original Poster
Rep: Reputation: 15
It doesn't help I added the paths to /etc/ld.so.conf and rebooted --> still the same error appears.

temonen@debianmasiina:/usr/src/linux$ make xconfig
*
* Unable to find the QT installation. Please make sure that the
* QT development package is correctly installed and the QTDIR
* environment variable is set to the correct location.
*
make[1]: *** [scripts/kconfig/.tmp_qtcheck] Error 1
make: *** [xconfig] Error 2
temonen@debianmasiina:/usr/src/linux$ cat /etc/ld.so.conf
/lib
/usr/lib
/usr/X11R6/lib
 
Old 05-22-2004, 07:48 AM   #11
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 31
Get these debs libqt3 and libqt3-dev from apt-get or here http://packages.debian.org/cgi-bin/s...e&release=all.
You may not have the libqt3-dev file installed. And it's asking for the dev installation.
 
Old 05-22-2004, 08:55 AM   #12
Duukkis
Member
 
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75

Original Poster
Rep: Reputation: 15
Thanks a lot CBlue! Now it works. I have these packages installed:

temonen@debianmasiina:/usr/src/linux$ dpkg -l | grep libqt3
ii libqt3-dev 3.2.3-2 Qt development files
ii libqt3-headers 3.2.3-2 Qt3 header files
ii libqt3c102 3.2.3-2 Qt Library
ii libqt3c102-mt 3.2.3-2 Qt GUI Library (Threaded runtime version)
 
Old 05-23-2004, 03:01 AM   #13
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 31
Great! So that was all you needed to get make xconfig to work then? I should have thought of that one in the first place!
 
Old 05-23-2004, 03:52 AM   #14
Duukkis
Member
 
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75

Original Poster
Rep: Reputation: 15
Hmm, I don't even remember if the first problem is solved (make kpkg) but I used other steps to compile that kernel and it succeeded. Maybe I will try make kpkg again with newer kernel but now 2.6.6 kernel works when I have done: make bzImage, make modules, make modules_install.

Thanks for helping me CBlue. I have really learned much on yesterday. Maybe I can help the noobs now for compiling a kernel
 
Old 05-23-2004, 03:58 AM   #15
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 31
Your welcome Duukkis! Yes, it's a great feeling when you can compile and install the latest kernel and it actually works! Until I tried the guide I posted, I had a problem getting my kernels to work right after compiling them. I was using the make oldconfig all the time and using make xconfig instead (for me) has given me a perfectly working kernel.
 
  


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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
Errors Trying to "make menuconfig" kernel-source-2.6.10 Royle Debian 2 02-14-2005 06:53 AM
WPC11 Ver4 and "Make" errors. plz help JRR Linux - Hardware 4 05-22-2004 05:08 PM
What the? "make nvnet" gives strange errors on A7N8X-VM. Dunedain Linux - Newbie 1 02-03-2004 07:49 AM
make-kpkg errors "multiple instances" rickenbacherus Linux - Software 0 06-06-2003 08:16 PM

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

All times are GMT -5. The time now is 06:40 PM.

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