!virtualbox-ose (virtualbox-ose-4.2.14) (bad C++ code)

Jung-uk Kim jkim at FreeBSD.org
Wed Jul 3 17:58:55 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-07-03 13:38:46 -0400, AN wrote:
> FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #73 r252430: Sun
> Jun 30 17:30:59 CDT 2013
> root at FBSD10:/usr/obj/usr/src/sys/MYKERNEL  amd64
> 
> VBox upgrade fails.
> 
> 
> 
> In file included from 
> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.14/src/VBox/Devices/Storage/DrvHostBase.cpp:105:
>
>  /usr/include/cam/cam_ccb.h: In function 'cam_status
> cam_ccb_status(ccb*)': /usr/include/cam/cam_ccb.h:1309: error:
> invalid conversion from 'unsigned int' to 'cam_status'
...

This problem was introduced with r252382.  Basically, C compilers
don't complain about this implicit casting but C++ compilers do not
like it at all.  Luckily, it is easy to fix.  Please see the attached
patch.

Jung-uk Kim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (FreeBSD)

iQEcBAEBAgAGBQJR1GYuAAoJECXpabHZMqHOOZMH/35zhOVHd+SL5h8b7B2t01sD
+KVY/aggL4GewjhBtzqZd+RZtopBK8RS3vrT8ZykTpy5ftRP14evJipBq1BtooV5
jLYl07DM1+BrUJlB+xCAGPCo9PSOD/VWiGVlj/gb+ix1AihXnkf0dNw0RQ0V5ul9
wLYvju1wrw8gr4ZjeASsX3I4lcARjn6nMzWGXDNjsnftRYDg/LSDbUft9KkcCE7A
TSAHlsA+8iTFh4vk1NTxPBVypoFW6ZAlivd3oihhd/5vgjuAkloh5pjNj04sJUsC
7G07XFTA9rruc11+qwQL1uJH7UgpzdcHXtuvnzQIozFD22+FA1k+Z1qHFct0KWw=
=0boR
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cam_ccb.diff
Type: text/x-patch
Size: 491 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130703/b5fbf865/attachment.bin>


More information about the freebsd-ports mailing list