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" ??? |
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 |
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.?? |
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. |
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.
|
Quote:
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 |
thanks
Dear masand,
I said u "very very thanks" becz my problem has been already solved with mrproper command. thanks, |
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 |
Quote:
Akshat Linux Lover |
Quote:
what are the tricks to do so cuz i want to recompile to 2.6.8.1 |
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 |
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? |
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 |
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. |
All times are GMT -5. The time now is 04:54 AM. |