LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-20-2004, 10:31 PM   #1
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Rep: Reputation: 30
Kernel 2.6.6


When i started compiling new kernel with following command it gave me following error, but it is working fine with "make menuconfig" and "make config"

[root@akshar linux-2.6.6]# make xconfig

HOSTLD scripts/kconfig/qconf
scripts/kconfig/qconf.o: In function `ConfigView::initMetaObject()':
scripts/kconfig/qconf.o(.text+0x29): undefined reference to `QVBox::className() const'
scripts/kconfig/qconf.o(.text+0x66): undefined reference to `QObject::badSuperclassWarning(char const*, char const*)'
scripts/kconfig/qconf.o: In function `ConfigView::tr(char const*)':
scripts/kconfig/qconf.o(.text+0x90): undefined reference to `QApplication::translate(char const*, char const*, char const*) const'
scripts/kconfig/qconf.o: In function `ConfigView::tr(char const*, char const*)':
scripts/kconfig/qconf.o(.text+0xbd): undefined reference to `QApplication::translate(char const*, char const*, char const*) const'
scripts/kconfig/qconf.o: In function `ConfigView::staticMetaObject()':
scripts/kconfig/qconf.o(.text+0xe1): undefined reference to `QVBox::staticMetaObject()'
scripts/kconfig/qconf.o(.text+0x104): undefined reference to `QMetaObject::new_metaobject(char const*, char const*, QMetaData*, int, QMetaData*, int, QMetaProperty*, int, QMetaEnum*, int, QClassInfo*, int)'
scripts/kconfig/qconf.o(.text+0x114): undefined reference to `QMetaObject::set_slot_access(QMetaData::Access*)'
scripts/kconfig/qconf.o: In function `ConfigList::initMetaObject()':

| | | | | |
| | | | | |
| | | | | |
| | | | | |
|| | | | | |
|| | | | | |
|| | | | | |
|| | | | | |

scripts/kconfig/qconf.o(.gnu.linkonce.d._ZTI16ConfigMainWindow+0x8): undefined reference to `typeinfo for QMainWindow'
collect2: ld returned 1 exit status

make[1]: *** [scripts/kconfig/qconf] Error 1
make: *** [xconfig] Error 2

[root@akshar linux-2.6.7]#


What might be the problem with the script "scripts/kconfig/qconf" ???
 
Old 08-21-2004, 12:04 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

first of all u ned to use the command
#make mrproper

this ensures everything is in the rifgt place
then u need to rweun
#make xconfig

if u still getting the errors
maybe u should get the source again from kernel.org

regards
gaurav
 
Old 08-22-2004, 09:35 PM   #3
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30


very very thanks , but

as u told that make mrproper only check that whether every thing is in right place then how it solves the problem.??

 
Old 08-22-2004, 09:48 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
you are probably jmissing a dependency. this will not effect the finished kernel. use menuconfg to configure the kernel.

also... since you are compiling a new kernel, why not compile the latest 2.6.8... or atleast 2.6.7.

the 2.6.6 kernel has bugs in it which are fixed in 2.6.7 and 2.6.8. its not a major bug... it allows un-privilaged users to crash the system.
 
Old 08-22-2004, 11:18 PM   #5
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
2.6.7 is probably the pick for noobies at the moment as 2.6.8.1 has some tricks to get cd burning to work.
 
Old 08-22-2004, 11:42 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by akshatyadav


very very thanks , but

as u told that make mrproper only check that whether every thing is in right place then how it solves the problem.??

hi

what make mrproper does it
deletes the temporary files then it checks the heirarchy of the code available

the solution to ur problem lies in getting urself a new source from kernel.org

regards
gaurav
 
Old 08-24-2004, 12:46 PM   #7
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
thanks

Dear masand,

I said u "very very thanks" becz my problem has been already solved with mrproper command.

thanks,
 
Old 08-24-2004, 12:53 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
so u now using a custom kernel,
u will soon be realizing the true power of linux

the more u compile these the more u learn
i just compiled my kernel for the 72nd time today

spread the power of linux

regards
gauarv
 
Old 08-24-2004, 01:03 PM   #9
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
Quote:
spread the power of linux
Ok Dear!



Akshat
Linux Lover
 
Old 08-24-2004, 01:59 PM   #10
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
Quote:
Originally posted by amosf
2.6.7 is probably the pick for noobies at the moment as 2.6.8.1 has some tricks to get cd burning to work.

what are the tricks to do so

cuz i want to recompile to 2.6.8.1
 
Old 08-24-2004, 04:38 PM   #11
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
The easiest way at this stage is to comment out two lines of code in

/usr/src/linux/drivers/block/scsi_ioctl.c

they are line 196 and 196 - so that it looks like...

/* if (verify_command(file, cmd))
return -EPERM;
*/

then recompile... you'll have to make clean or at least delete scsi_ioctl.o
 
Old 08-25-2004, 10:31 AM   #12
namraj-lyrad
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Does anyone know if this has been resolved?? I am trying to cross compile a PPC kernel (2.6.6) on cygwin and I am having the same problem? or at least a very similiar problem:

$ make ARCH=ppc CROSS_COMPILE=powerpc-604-linux-gnu- config
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
HOSTLD scripts/kconfig/conf
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
scripts/kconfig/libkconfig.so(.text+0x0):crtstuff.c: multiple definition of `___do_sjlj_init'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtbegin.o(.text+0x0):crtstuff.c: first defined here
make[1]: *** [scripts/kconfig/conf] Error 1
make: *** [config] Error 2

Should I move to the 2.6.7 kernel, or is there another resolution?
 
Old 08-25-2004, 10:41 AM   #13
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hey

did u try out "make mrproper" at first for that

i haven't tried on cygwin,so i do not more about compilng on that

regards
gaurav
 
Old 08-25-2004, 11:28 AM   #14
namraj-lyrad
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Thanks for your reply!!

I found someone who had the same problem when cross compiling for ARM. It is a problem with cygwin, specifically with the scripts/kconfig/Makefile. Cygwin cannot resolve the libkconfig.so dependency correctly. This need to be changed to libkconfig.o. A diff of the original and new Makefile shows this:

$ /usr/bin/diff Makefile.org Makefile
71,72c71,72
< conf-objs := conf.o libkconfig.so
< mconf-objs := mconf.o libkconfig.so
---
> conf-objs := conf.o libkconfig.o # libkconfig.so
> mconf-objs := mconf.o libkconfig.o # libkconfig.so
91c91,94
< clean-files := libkconfig.so lkc_defs.h qconf.moc .tmp_qtcheck \
---
> #clean-files := libkconfig.so lkc_defs.h qconf.moc .tmp_qtcheck \
> # .tmp_gtkcheck zconf.tab.c zconf.tab.h lex.zconf.c
>
> clean-files := libkconfig.o lkc_defs.h qconf.moc .tmp_qtcheck \
96a100
> HOSTCFLAGS_libkconfig.o := -I$(src)
107a112,114
> $(obj)/libkconfig.c: $(obj)/zconf.tab.c $(obj)/lex.zconf.c
> cp $< $@
>

Once I made the change, it configured without any problem.
 
  


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

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

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