hello list,
I have the following problem. I needed to add some patches to the 2.6.24.4-64-fc8 kernel. Being more specific , the patch allows an upgrade to the version 1.7.5 of TIPC I added a patch to the kernel.spec.
Even before building the kernel, when it is creating the .configs, I guess, it reports an error.
I used the command : rpmbuild -bp --target=`uname -m` kernel.spec
It reports the following error :
++ grep -c kernel-2.6.24.4-x86_64.config + '[' 0 -eq 0 ']' + rm -f kernel-2.6.24.4-x86_64.config + for i in '*.config' + mv kernel-2.6.24.4-i586.config .config ++ head -1 .config ++ cut -b 3- + Arch=i386 + make ARCH=i386 nonint_oldconfig .config:3365:warning: trying to assign nonexistent symbol DEBUG_IGNORE_QUIET .config:3390:warning: trying to reassign symbol USB_DEBUG CONFIG_TIPC_UNICLUSTER_FRIENDLY CONFIG_TIPC_MULTIPLE_LINKS CONFIG_TIPC_CONFIG_SERVICE CONFIG_TIPC_SOCKET_API CONFIG_TIPC_SYSTEM_MSGS make[1]: *** [nonint_oldconfig] Error 5 make: *** [nonint_oldconfig] Error 2 erro: Código de saída inválido do /var/tmp/rpm-tmp.73865 (%prep)
Erros de criação do RPM: Código de saída inválido do /var/tmp/rpm-tmp.73865 (%prep)
Due to my lack of experience with rpmbuild tool I fail to correctly interpret this. The text in portuguese just reads "codigo de saída inválido do"= "invalid exit code from" "Erros de criação do RPM"="Errors in creating RPM"
It seems to be having trouble on a target named nonint_oldconfig.
This is funny and unexpected, because I've already tried this same patch on a vanilla kernel (building it in the tradictional way) and it worked at first time.
I deeply appreciate if anyone who can suggest something to fix this....
Best, Oliveiros
On Tue, Apr 29, 2008 at 11:01:32AM +0100, Oliveiros Cristina wrote:
- make ARCH=i386 nonint_oldconfig
.config:3365:warning: trying to assign nonexistent symbol DEBUG_IGNORE_QUIET .config:3390:warning: trying to reassign symbol USB_DEBUG CONFIG_TIPC_UNICLUSTER_FRIENDLY CONFIG_TIPC_MULTIPLE_LINKS CONFIG_TIPC_CONFIG_SERVICE CONFIG_TIPC_SOCKET_API CONFIG_TIPC_SYSTEM_MSGS make[1]: *** [nonint_oldconfig] Error 5 make: *** [nonint_oldconfig] Error 2 erro: Código de saída inválido do /var/tmp/rpm-tmp.73865 (%prep)
This is complaining about unconfigured CONFIG options you added with your patch. You have to define them somewhere (either on/off). The quickest/easiest thing to do is add the 5 CONFIG_TIPC symbols to the config-generic file (follow the examples inside) and re-run rpmbuild.
Cheers, Don
Hello, Don.
After applying your suggestions, it built ok, thanks a million.
Now my next problem is that, although it builds OK, I cannot install it...
Here's what I am doing
[langolier@musas SPECS]$ su -c 'rpm -ivh /home/langolier/rpmbuild/RPMS/i686/kernel-2.6.24.4-64.kddm.fc8.i686.rpm ' Palavra passe: A preparar... ########################################### [100%] o pacote kernel-2.6.24.4-64.langolier.fc8 (que é mais recente que o kernel-2.6.24.4-64.kddm.fc8) já está instalado o pacote kernel-2.6.24.4-64.tipc1_7_5.fc8 (que é mais recente que o kernel-2.6.24.4-64.kddm.fc8) já está instalado [langolier@musas SPECS]$
It is complaining that the more recent packages are already installed. It means "The package kernel-2.6.24.4-64.langolier.fc8(with is more recent than the kernel-2.6.24.4-64.kddm.fc8) is already installed"
These two kernels are simply versions of the same kernel (2.6.24.4-64) without any patches....
Do you know how can I force the system to install this new kernel and boot it? Should I change /boot/grub/menu.lst manually myself? Or that's not recommended ?
Best, Oliveiros
2008/4/29 Don Zickus dzickus@redhat.com:
On Tue, Apr 29, 2008 at 11:01:32AM +0100, Oliveiros Cristina wrote:
- make ARCH=i386 nonint_oldconfig
.config:3365:warning: trying to assign nonexistent symbol
DEBUG_IGNORE_QUIET
.config:3390:warning: trying to reassign symbol USB_DEBUG CONFIG_TIPC_UNICLUSTER_FRIENDLY CONFIG_TIPC_MULTIPLE_LINKS CONFIG_TIPC_CONFIG_SERVICE CONFIG_TIPC_SOCKET_API CONFIG_TIPC_SYSTEM_MSGS make[1]: *** [nonint_oldconfig] Error 5 make: *** [nonint_oldconfig] Error 2 erro: Código de saída inválido do /var/tmp/rpm-tmp.73865 (%prep)
This is complaining about unconfigured CONFIG options you added with your patch. You have to define them somewhere (either on/off). The quickest/easiest thing to do is add the 5 CONFIG_TIPC symbols to the config-generic file (follow the examples inside) and re-run rpmbuild.
Cheers, Don
On Wed, 2008-04-30 at 10:02 +0100, Oliveiros Cristina wrote:
Hello, Don.
After applying your suggestions, it built ok, thanks a million.
Now my next problem is that, although it builds OK, I cannot install it...
Here's what I am doing
[langolier@musas SPECS]$ su -c 'rpm -ivh /home/langolier/rpmbuild/RPMS/i686/kernel-2.6.24.4-64.kddm.fc8.i686.rpm ' Palavra passe: A preparar... ########################################### [100%] o pacote kernel-2.6.24.4-64.langolier.fc8 (que é mais recente que o kernel-2.6.24.4-64.kddm.fc8) já está instalado o pacote kernel-2.6.24.4-64.tipc1_7_5.fc8 (que é mais recente que o kernel-2.6.24.4-64.kddm.fc8) já está instalado [langolier@musas SPECS]$
It is complaining that the more recent packages are already installed. It means "The package kernel-2.6.24.4-64.langolier.fc8(with is more recent than the kernel-2.6.24.4-64.kddm.fc8) is already installed"
These two kernels are simply versions of the same kernel (2.6.24.4-64) without any patches....
Do you know how can I force the system to install this new kernel and boot it? Should I change /boot/grub/menu.lst manually myself? Or that's not recommended ?
Best, Oliveiros
man rpm (see --oldpackage)
-Eric
kernel@lists.fedoraproject.org