[Slackbuilds-users] virtualbox-ose.SlacBuild on Multilib install

Chris Abela chris.abela at maltats.com
Thu Oct 1 06:30:58 UTC 2009


Hi Heinz,

Thank you for the instant reply. On my part, I am overwhelmed with other
chores as usual and virtualbox takes long to compile.

I confirm that gsoap from www.slackbuilds.org plays fine with
virtualbox-ose, but there was an update to 2.7.14. I always tweak the
SlackBuilds to the latest source when the script looks standard enough but
this time round, it did not pay.

I also confirm that editing LIBDIRSUFFIX is not necessary. I take your word
that it is "certainly wrong".

However, I have to confirm that unless I have finally gone crazy,
VBOXUSERS=no is not respected by the SlackBuild. Moreover, setting
HARDENING=no and VBOXUSERS=no crashes the SlackBuild when the patches kick
in. The README seems to indicate setting that HARDENING=no and VBOXUSERS=no
is not foreseen.

The error virtualbox-ose.SlackBuild with WEBSERVICES=yes and gsoap-2.7.14
gives is the following:

/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/webservice/soapC-4
.cpp:20122: error: ISO C++ forbids variable length array
kmk[2]: ***
[/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/vboxsoap/gen/webs
ervice/soapC-5.o] Error 1
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 -O2
-mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing
-fvisibility-inlines-hidden -fvisibility=hidden
-DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -m64 -I/usr
-I/usr/share/gsoap/import
-I/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/webservice
-I/tmp/SBo/VirtualBox-3.0.4_OSE/src/VBox/Main/webservice
-I/tmp/SBo/VirtualBox-3.0.4_OSE/include
-I/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release
-DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DVBOX -DVBOX_OSE
-DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING
-DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\"
-DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\"
-DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"\"
-DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRT_OS_LINUX
-D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DIN_RING3
-DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64
-Wp,-MD,/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/vboxsoap/g
en/webservice/soapC-5.o.dep
-Wp,-MT,/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/vboxsoap/g
en/webservice/soapC-5.o -Wp,-MP -o
/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/vboxsoap/gen/webse
rvice/soapC-5.o
/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/webservice/soapC-5
.cpp
kmk[2]: *** Waiting for unfinished jobs....
kmk[2]: ***
[/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/vboxsoap/gen/webs
ervice/soapC-4.o] Error 1
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 -O2
-mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing
-fvisibility-inlines-hidden -fvisibility=hidden
-DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -m64 -I/usr
-I/usr/share/gsoap/import
-I/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/webservice
-I/tmp/SBo/VirtualBox-3.0.4_OSE/src/VBox/Main/webservice
-I/tmp/SBo/VirtualBox-3.0.4_OSE/include
-I/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release
-DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DVBOX -DVBOX_OSE
-DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING
-DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\"
-DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\"
-DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"\"
-DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRT_OS_LINUX
-D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DIN_RING3
-DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64
-Wp,-MD,/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/vboxsoap/g
en/webservice/soapC-4.o.dep
-Wp,-MT,/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/vboxsoap/g
en/webservice/soapC-4.o -Wp,-MP -o
/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/vboxsoap/gen/webse
rvice/soapC-4.o
/tmp/SBo/VirtualBox-3.0.4_OSE/out/linux.amd64/release/obj/webservice/soapC-4
.cpp
kmk[2]: Leaving directory `/tmp/SBo/VirtualBox-3.0.4_OSE'
kmk[2]: Entering directory `/tmp/SBo/VirtualBox-3.0.4_OSE'
kmk[2]: *** Exiting with status 2
kmk[1]: *** [pass_libraries_this] Error 2
kmk[1]: Leaving directory `/tmp/SBo/VirtualBox-3.0.4_OSE'
kmk: *** [pass_libraries_order] Error 2
`

Chris


-----Original Message-----
From: slackbuilds-users-bounces at slackbuilds.org
[mailto:slackbuilds-users-bounces at slackbuilds.org] On Behalf Of Heinz
Wiesinger
Sent: 30 September 2009 14:22
To: SlackBuilds.org Users List
Subject: Re: [Slackbuilds-users] virtualbox-ose.SlacBuild on Multilib
install

On Wednesday 30 September 2009 13:59:08 Chris Abela wrote:
> Hi All,
> 
> Not being competent as Alien Bob or Heinz Wiesinger, I must say that I
only
> managed to install virtualbox-ose-x86_64-1_Sbo.tgz on Slack64 after a
heavy
> trial and error session. For those who are planning to make such an
> installation the following notes might help. If anyone can explain or
> improve them, please go ahead.
> 
> 1. Install Multilib according to Eric's wiki.

Actually, you don't need a full multiplib setup. The gcc and glibc packages 
are sufficient.

> 2. Do not bother installing gsoap. I did not manage to install the
> webservice option, no matter what.

It works fine here. What's the error you get?

> 3. Edit LIBDIRSUFFIX="64" to LIBDIRSUFFIX="" in the SlackBuild.

Now, this is certainly wrong. Do *NOT* do this!

> 4. DO NOT source /etc/profile.d/32dev.sh.
> 5. groupadd -g 215 vboxusers , # export VBOXUSERS=NO is not respected.

If VBOXUSERS is not respected, you are using Hardening. You have to 
additionally pass HARDENING=no to the script. I personally wouldn't do this
in 
a production environment though.

> 6. Naturally, do not: # export WEBSERVISE=yes
> 5. Run the virtualbox-ose.SlackBuild as usual.
> 6. Run the virtualbox-kernel.SlacBuild as usual.
> 7. installpkg the packages as usual.
> Then usual VirtualBox stuff (that all Slacker know, but might forget)
> follows
> 8. Edit /etc/groups to include your users in the vboxusers group.
> 9. # chmod 755 /etc/rc.d/rc.vboxdvr # DON'T ASK!

rc.vboxdrv :)

> 10. Edit /etc/rc.d/rc.local and /etc/rc.d/rc.local_shutdown according to
>  the README
> 11. # /etc/rc.d/rc.vboxdrv start
> 12 If you are running Fluxbox (my present WM), edit .fluxbox/menu with
> [exec] (VirtualBox) {VirtualBox} somewhere appropriate.

Grs,
Heinz



More information about the SlackBuilds-users mailing list