[CentOS] Has anybody recompiled Centos' default kernel on x86_64

James Pearson james-p at moving-picture.com
Fri Mar 31 09:16:51 UTC 2006


Bogdan Nicolescu wrote:
> I haven't been able to recompile Centos' default kernel on 4.2, nor on 4.3 on an x86_64
>    
>   The process fails with two different problems:
>    
>   1. 'cannot find -lqt' error

You will get that error on x86_64 if you try and run 'make xconfig' on 
the source tree that is extracted after, for example, running 'rpmbuild -bp'

As the normal build process is all command line driven, then this is not 
a problem.

There are a few patches out there to work round this (and I believe it's 
fixed in more recent kernels). The patch I use which works for me is 
attached.

James Pearson

-------------- next part --------------
--- ./scripts/kconfig/Makefile.dist	2006-03-31 09:58:34.118069718 +0100
+++ ./scripts/kconfig/Makefile	2006-03-31 10:09:15.851424670 +0100
@@ -130,8 +130,8 @@
 	  false; \
 	fi; \
 	LIBPATH=$$DIR/lib; LIB=qt; \
-	$(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \
-	  LIBPATH=$$DIR/lib/$$($(HOSTCXX) -print-multi-os-directory); \
+	$(HOSTCXX)-print-multi-os-directory > /dev/null 2>&1 && \
+	  LIBPATH=$$DIR/lib/$$($(HOSTCXX)-print-multi-os-directory); \
 	if [ -f $$LIBPATH/libqt-mt.so ]; then LIB=qt-mt; fi; \
 	echo "QTDIR=$$DIR" > $@; echo "QTLIBPATH=$$LIBPATH" >> $@; \
 	echo "QTLIB=$$LIB" >> $@; \


More information about the CentOS mailing list