[PATCH] emulators/virtualbox-ose-kmod in 10-current

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] emulators/virtualbox-ose-kmod in 10-current

Tomasz Sowa
Hi

Virtualbox-4.2.18 kernel module doesn't want to compile on 10-current:
/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.2.18/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/alloc-r0drv-freebsd.c:83:76:
error:
      too few arguments to function call, expected 10, have 9
                             cbAllocated, TRUE, VM_PROT_ALL,
VM_PROT_ALL, 0);
                                                                           ^
@/vm/vm_map.h:368:1: note: 'vm_map_find' declared here
int vm_map_find(vm_map_t, vm_object_t, vm_ooffset_t, vm_offset_t *,
vm_size_t,
^
1 error generated.
*** Error code 1


There was a change in vm_map_find() in revision r255426 (one parameter
has been added), patch:
http://www.ttmath.org/tmp/virtualbox-4_2_18.patch

applying:
# cd /usr/ports/emulators/virtualbox-ose-kmod
# make extract
# fetch http://www.ttmath.org/tmp/virtualbox-4_2_18.patch
# patch < virtualbox-4_2_18.patch
# make all install clean


--
Tomek



_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] emulators/virtualbox-ose-kmod in 10-current

Olivier Smedts
Hello,


2013/9/20 Tomasz Sowa <[hidden email]>

> Hi
>
> Virtualbox-4.2.18 kernel module doesn't want to compile on 10-current:
>
> /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.2.18/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/alloc-r0drv-freebsd.c:83:76:
> error:
>       too few arguments to function call, expected 10, have 9
>                              cbAllocated, TRUE, VM_PROT_ALL,
> VM_PROT_ALL, 0);
>
>  ^
> @/vm/vm_map.h:368:1: note: 'vm_map_find' declared here
> int vm_map_find(vm_map_t, vm_object_t, vm_ooffset_t, vm_offset_t *,
> vm_size_t,
> ^
> 1 error generated.
> *** Error code 1
>
>
> There was a change in vm_map_find() in revision r255426 (one parameter
> has been added), patch:
> http://www.ttmath.org/tmp/virtualbox-4_2_18.patch
>
> applying:
> # cd /usr/ports/emulators/virtualbox-ose-kmod
> # make extract
> # fetch http://www.ttmath.org/tmp/virtualbox-4_2_18.patch
> # patch < virtualbox-4_2_18.patch
> # make all install clean


There is already a PR :
www.freebsd.org/cgi/query-pr.cgi?pr=ports/181971

With one of thoses patchs the port compiles fine but I still have core
dumps at start under 10-ALPHA2. Maybe because of libstdc++ switch to libc++
?

vboxdrv: fAsync=0 offMin=0x219 offMax=0x4470
pid 1143 (VBoxSVC), uid 0: exited on signal 6 (core dumped)
VBoxManage: error: Failed to create the VirtualBox object!
VBoxManage: error: Code NS_ERROR_ABORT (0x80004004) - Operation aborted
(extended info not available)
VBoxManage: error: Most likely, the VirtualBox COM server is not running or
failed to start.

Is it working from fresh start for you ? Are you using WITH_GNUCXX= in
src.conf or make.conf ?

Cheers

--
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: [hidden email]        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] emulators/virtualbox-ose-kmod in 10-current

Tomasz Sowa
On 2013.09.20 14:11, Olivier Smedts wrote:

> There is already a PR :
> www.freebsd.org/cgi/query-pr.cgi?pr=ports/181971
> <http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/181971>

Thanks, I didn't see it.

> With one of thoses patchs the port compiles fine but I still have core
> dumps at start under 10-ALPHA2. Maybe because of libstdc++ switch to
> libc++ ?

I have got a symlink to libc++.so.1 to avoid problems when compiling
some ports:
/usr/lib# ln -s libc++.so.1 libstdc++.so

> Is it working from fresh start for you ? Are you using WITH_GNUCXX= in
> src.conf or make.conf ?

My installation works fine and I don't have anything special in src.conf
and make.conf:

$ cat /etc/make.conf
MALLOC_PRODUCTION=1
#WITH_NEW_XORG=yes
#WITH_KMS=yes
WITHOUT_NOUVEAU=YES
#WITHOUT_PKGNG=yes
#USE_GCC?=4.6+


--
Tomek

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] emulators/virtualbox-ose-kmod in 10-current

Mike Jakubik-2
Hello,

Are any of you able to compile virtualbox-ose-additions on CURRENT? I
get the following error.


/usr/bin/ld: cannot find -lsupc++
cc: error: linker command failed with exit code 1 (use -v to see invocation)
kmk: ***
[/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-4.2.18/out/freebsd.amd64/release/obj/VBoxClient/VBoxClient]
Error 1

Thanks.

On 09/26/13 16:28, Tomasz Sowa wrote:

> On 2013.09.20 14:11, Olivier Smedts wrote:
>
>> There is already a PR :
>> www.freebsd.org/cgi/query-pr.cgi?pr=ports/181971
>> <http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/181971>
> Thanks, I didn't see it.
>
>> With one of thoses patchs the port compiles fine but I still have core
>> dumps at start under 10-ALPHA2. Maybe because of libstdc++ switch to
>> libc++ ?
> I have got a symlink to libc++.so.1 to avoid problems when compiling
> some ports:
> /usr/lib# ln -s libc++.so.1 libstdc++.so
>
>> Is it working from fresh start for you ? Are you using WITH_GNUCXX= in
>> src.conf or make.conf ?
> My installation works fine and I don't have anything special in src.conf
> and make.conf:
>
> $ cat /etc/make.conf
> MALLOC_PRODUCTION=1
> #WITH_NEW_XORG=yes
> #WITH_KMS=yes
> WITHOUT_NOUVEAU=YES
> #WITHOUT_PKGNG=yes
> #USE_GCC?=4.6+
>
>

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"