From owner-freebsd-ports@FreeBSD.ORG Wed Jul 3 23:38:02 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4E4F982C; Wed, 3 Jul 2013 23:38:02 +0000 (UTC) (envelope-from zeising@daemonic.se) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 043BF1EB9; Wed, 3 Jul 2013 23:38:02 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 92A5A40007; Thu, 4 Jul 2013 01:38:00 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 886064001B; Thu, 4 Jul 2013 01:38:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (mx.daemonic.se [IPv6:2001:470:dca9:0:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 5AFB540007; Thu, 4 Jul 2013 01:37:59 +0200 (CEST) Received: from mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) by mx.daemonic.se (Postfix) with ESMTPS id 3blzJj5dg9z8hVn; Thu, 4 Jul 2013 01:37:57 +0200 (CEST) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mx.daemonic.se ([10.1.0.3]) (using TLS with cipher CAMELLIA256-SHA) by mailscanner.daemonic.se (mailscanner.daemonic.se [10.1.0.6]) (amavisd-new, port 10025) with ESMTPS id LNAVmyZllk3m; Thu, 4 Jul 2013 01:37:55 +0200 (CEST) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2001:470:dca9:0:1::4]) by mx.daemonic.se (Postfix) with ESMTPS id 3blzJg2TzGz8hVm; Thu, 4 Jul 2013 01:37:55 +0200 (CEST) Received: from tifa.daemonic.se (tifa.daemonic.se [10.32.0.6]) by mail.daemonic.se (Postfix) with ESMTPSA id 3blzJd3bRmz9Ctq; Thu, 4 Jul 2013 01:37:53 +0200 (CEST) Received: from tifa.daemonic.se (localhost [IPv6:::1]) by tifa.daemonic.se (Postfix) with ESMTP id 48A8922819; Thu, 4 Jul 2013 01:37:46 +0200 (CEST) Message-ID: <51D4B5C9.8070809@daemonic.se> Date: Thu, 04 Jul 2013 01:37:45 +0200 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: Jung-uk Kim Subject: Re: !virtualbox-ose (virtualbox-ose-4.2.14) (bad C++ code) References: <51D4662E.9050503@FreeBSD.org> In-Reply-To: <51D4662E.9050503@FreeBSD.org> Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: vbox@freebsd.org, AN , "scottl@FreeBSD.org" , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jul 2013 23:38:02 -0000 On 07/03/13 19:58, Jung-uk Kim wrote: > 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@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. Hi! I'm getting a similar error when compiling sysutils/smartmontools, however your proposed patch does not work, at least not when compiling with clang. Regards! -- Niclas Zeising