kernels AT lists.unsafe.ru
Subject: lakostis kernels discuss list
List archive
Re: [Kernels] [Desktop] virtualbox 2.1.0 & branch5 & kernel-headers-2.6.28
- From: Алексей Шенцев <>
- To: ALT Linux Desktop development <>
- Cc: lakostis kernels discuss list <>
- Subject: Re: [Kernels] [Desktop] virtualbox 2.1.0 & branch5 & kernel-headers-2.6.28
- Date: Mon, 12 Jan 2009 16:17:31 +0300
On Monday 12 January 2009 15:51:11 Damir Shayhutdinov wrote:
> 12 января 2009 г. 13:39 пользователь Алексей Шенцев <> написал:
> > Drivers -
> > /home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE/src/VBox/Devices/Storage/DrvHo
> >stDVD.cpp /usr/include/linux/byteorder/swabb.h: In function '__u32
> > __fswahw32(__u32)': /usr/include/linux/byteorder/swabb.h:94: error: ISO
> > C++ forbids braced-groups
> >
> > The failing command:
> > @g++ -c -O2 -g -pipe -pedantic -Wall -Wextra
> > -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -Wno-long-long
> > -Wno-variadic-macros -march=i586 -O2 -mtune=generic
> > -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility-inlines-hidden
> > -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN
> > -DRT_USE_VISIBILITY_DEFAULT -m32
> > -I/home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE/src/VBox/Devices
> > -I/home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE/src/VBox/Devices/Network/sli
> >rp -I/home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE/include
> > -I/home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE/out/linux.x86/release -DVBOX
> > -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING -DRT_OS_LINUX
> > -D_FILE_OFFSET_BITS=64 -DRT_ARCH_X86 -D__X86__ -DIN_RING3
> > -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_IDE_R3 -DVBOX_WITH_NETFLT
> > -DVBOX_WITH_ALSA -DVBOX_WITH_PULSE
> > -Wp,-MD,/home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE/out/linux.x86/release/
> >obj/Drivers/Storage/DrvHostDVD.o.dep
> > -Wp,-MT,/home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE/out/linux.x86/release/
> >obj/Drivers/Storage/DrvHostDVD.o -Wp,-MP -o
> > /home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE/out/linux.x86/release/obj/Driv
> >ers/Storage/DrvHostDVD.o
> > /home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE/src/VBox/Devices/Storage/DrvHo
> >stDVD.cpp kmk[2]: *** Waiting for unfinished jobs....
> > kmk[2]: Leaving directory `/home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE'
> > kmk[1]: *** [pass_libraries_this] Error 2
> > kmk[1]: Leaving directory `/home/ashen/RPM/BUILD/VirtualBox-2.1.0_OSE'
> > kmk: *** [pass_libraries_order] Error 2
> >
> > Что не так? Чего не хватает?
>
> Попробуйте убрать -pedantic из флагов компиляции. Вообще эта опция для
> разработчиков, а не для мантейнеров.
Проблема оказалось в другом. Я собирал под ядром 2.6.28 от lakostis@.
Исходя из http://www.virtualbox.org/ticket/2936
а точнее из:
http://www.virtualbox.org/attachment/ticket/2936/VBox-kernel-headers-2.6.28.patch
сделал патч (см. вложение)
vb собрался.
diff спека прилагаю (см. вложение).
В общем это баг vb210 связанный с kernel-headers-2.6.28
На ядрах 2.6.27 & branch5 ещё не пробывал.
--
С уважением Шенцев Алексей Владимирович.
E-mail:
XMPP: ,
ICQ: 271053845
diff -ur VirtualBox-2.1.0_OSE.orign/src/VBox/Devices/Storage/DrvHostDVD.cpp VirtualBox-2.1.0_OSE/src/VBox/Devices/Storage/DrvHostDVD.cpp --- VirtualBox-2.1.0_OSE.orign/src/VBox/Devices/Storage/DrvHostDVD.cpp 2008-12-23 00:36:21 +0300 +++ VirtualBox-2.1.0_OSE/src/VBox/Devices/Storage/DrvHostDVD.cpp 2009-01-12 15:39:33 +0300 @@ -48,6 +48,7 @@ # define _LINUX_BYTEORDER_GENERIC_H /* This is another hack for not bothering with C++ unfriendly byteswap macros. */ # define _LINUX_BYTEORDER_SWAB_H +# define _LINUX_BYTEORDER_SWABB_H /* Those macros that are needed are defined in the header below */ # include "swab.h" # include <linux/cdrom.h>
--- virtualbox.spec 2009-01-12 16:16:19 +0300 +++ virtualbox.spec.2.6.28 2009-01-12 15:52:39 +0300 @@ -59,6 +59,7 @@ Patch23: virtualbox-use-intree-yasm.diff Patch24: %name-ose-64issue.diff Patch25: vbox-kbuild_unit_paths.diff +Patch26: virtualbox-kernel-headers-2.6.28-alt.path BuildPreReq: dev86 iasl gcc4.1-c++ libstdc++4.1-devel-static @@ -193,6 +194,7 @@ %patch23 %patch24 %patch25 +%patch26 -p1 %build export GCC_VERSION=4.1
- Re: [Kernels] [Desktop] virtualbox 2.1.0 & branch5 & kernel-headers-2.6.28, Алексей Шенцев, 01/12/2009
Archive powered by MHonArc 2.6.24.