LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel 2.6.6 (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-2-6-6-a-220389/)

LinuxRam 08-20-2004 10:31 PM

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" ???

masand 08-21-2004 12:04 AM

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

LinuxRam 08-22-2004 09:35 PM



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.??


qwijibow 08-22-2004 09:48 PM

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.

amosf 08-22-2004 11:18 PM

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.

masand 08-22-2004 11:42 PM

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

LinuxRam 08-24-2004 12:46 PM

thanks
 
Dear masand,

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

thanks,

masand 08-24-2004 12:53 PM

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

LinuxRam 08-24-2004 01:03 PM

Quote:

spread the power of linux
Ok Dear!



Akshat
Linux Lover

citrus 08-24-2004 01:59 PM

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

amosf 08-24-2004 04:38 PM

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

namraj-lyrad 08-25-2004 10:31 AM

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?

masand 08-25-2004 10:41 AM

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

namraj-lyrad 08-25-2004 11:28 AM

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.