From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 27 12:50:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EEB6353E for ; Fri, 27 Sep 2013 12:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CEA7D2A34 for ; Fri, 27 Sep 2013 12:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8RCo0Fu071610 for ; Fri, 27 Sep 2013 12:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8RCo0T4071608; Fri, 27 Sep 2013 12:50:00 GMT (envelope-from gnats) Resent-Date: Fri, 27 Sep 2013 12:50:00 GMT Resent-Message-Id: <201309271250.r8RCo0T4071608@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "O. Hartmann" Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 48941408 for ; Fri, 27 Sep 2013 12:47:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 36BDC2A10 for ; Fri, 27 Sep 2013 12:47:55 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8RClt1W011749 for ; Fri, 27 Sep 2013 12:47:55 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8RClt97011746; Fri, 27 Sep 2013 12:47:55 GMT (envelope-from nobody) Message-Id: <201309271247.r8RClt97011746@oldred.freebsd.org> Date: Fri, 27 Sep 2013 12:47:55 GMT From: "O. Hartmann" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182443: graphics/opencv: X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Sep 2013 12:50:01 -0000 >Number: 182443 >Category: ports >Synopsis: graphics/opencv: >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 27 12:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: O. Hartmann >Release: FreeBSD 10.0-CURRENT amd64 >Organization: FU Berlin >Environment: FreeBSD 10.0-ALPHA2 #0 r255817: Mon Sep 23 18:35:39 CEST 2013 amd64 >Description: The port graphics/opencv fails on CURRENT with the following error message: [...] 12 warnings generated. [ 1%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/loadsave.o [ 2%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/precomp.o [ 2%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/utils.o [ 2%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window.o [ 2%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.o /usr/ports/graphics/opencv/work/OpenCV-2.3.1/modules/highgui/src/window_QT.cpp:316:5: error: use of undeclared identifier 'usleep' usleep(1000); >How-To-Repeat: Install graphics/opencv on 10.0-CURRENT. >Fix: After patching and after the error occurs, patch manually the file modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp via --- work/OpenCV-2.3.1/modules/highgui/src/window_QT.cpp.orig 2013-09-27 14:38:36.000000000 +0200 +++ work/OpenCV-2.3.1/modules/highgui/src/window_QT.cpp 2013-09-27 14:39:21.000000000 +0200 @@ -46,6 +46,8 @@ #ifdef _WIN32 #include #define usleep Sleep +#else +#include #endif #ifndef M_PI This patch was suggested by T. Nackos via eMail. I tried to patch via a patchfile, but since the C++ sourcefile is obviously created dynamically, it fails. >Release-Note: >Audit-Trail: >Unformatted: