From nobody Sat Jul 13 10:51:55 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WLldl6vCCz5QWWv for ; Sat, 13 Jul 2024 10:51:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WLldl1SWRz478M for ; Sat, 13 Jul 2024 10:51:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720867915; a=rsa-sha256; cv=none; b=vc0LX6/Bze3+yWA3PQZEz4qar7ZGqOW0W1k8khQuUV0X2RbUqf1ItoOYPnCFAcOmsjEe+Y ymw64h83Bqg5hr90J9He1oRHtOLt4qxCjQ3mC7f90bs6ir/yN0io5+dsorRV3LCGq7Sigl An/VqjbSlahZyYlK9Zd9vPQFgcC1OOl1FcQcbHUZKmsMAGh4j80c4B4Juj4ED4q5c0X75C j/cVItxCzxOB0rT8seC1kvB+S+2g2+EtVVZYhDyIkcyuvJKeJwbWZOxEEQ3P6mz2ePnq5G dR85cvREeABBoeDDaKu/t2Isn8ve2P8FovYdn1usBt6EKQmYnO+LgxgIvfTDdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720867915; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0qWBzHeg9yWL2/IGx43kz8NM95tXLhB1usyNOumwTz0=; b=HRIZMklAssU1PGbLMC756EqnZx+aMa/+4mYFEOTR4FVrnB+j0UInwitpFegEqneyJOFM/E dKCCF0b4jZ/qx7BQFqH51LNCc3/Ir8ftWSMBhPNnFjYuC/zeAckCoYKePsNHS1w5ILgTcA 1R4n05LewtOSTwHdraLV+LF4pxrBI4ejO0r76iPyM2SCAfo+tP9Pyy9EVU55owq1UGz4Ys lTr4zAFxDLgTC2T67tCS8xGZ/elmRyj8xysT/GtsT1JgteirKpb39fsiZRZroAGBFJ5zAH g7EDeCoxahsZudiBtqnfRWuSdBSV3uB3ix4ej7+RfrU3JudqWN+p0gXJAKG0ow== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WLldl153HzNwY for ; Sat, 13 Jul 2024 10:51:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46DAptsN081434 for ; Sat, 13 Jul 2024 10:51:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46DAptx1081417 for ports-bugs@FreeBSD.org; Sat, 13 Jul 2024 10:51:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 280257] devel/rhtvision Date: Sat, 13 Jul 2024 10:51:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bmeyer@mesoft.com.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280257 Bug ID: 280257 Summary: devel/rhtvision Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: bmeyer@mesoft.com.au Problem: The rhtvision library when compiled with x11 support fails to comp= ile (i.e. OPTIONS_FILE_SET+=3DX11) Cause: The problem is in the file: tvision/classes/x11/x11src.cc Lines # 2542, 2543: int dif1=3Dabs(8*16-target); int dif2=3Dabs(10*20-target); These lines cause gcc (13) to fail with the error of: ../classes/x11/x11src.cc:2542:17: error: call of overloaded 'abs(unsigned i= nt)' is ambiguous 2542 | int dif1=3Dabs(8*16-target); | ~~~^~~~~~~~~~~~~ ../classes/x11/x11src.cc:2543:17: error: call of overloaded 'abs(unsigned i= nt)' is ambiguous 2543 | int dif2=3Dabs(10*20-target); | ~~~^~~~~~~~~~~~~~ The problem here is that as 'target' is defined on the previous line (#2541) as: unsigned target=3DfW*fH; This means that GCC will then recast the expression to that of an "unsigned int", and this is a problem as the abs function does not have an overload definition for that type (unsigned int).=20=20 What you have to do alter that line to that of either a 'int' or 'long int': int target=3DfW*fH; This then allows GCC to recast the data type to a type that the abs function *DOES* have an overload definition for (there are overload definitions for = both 'int' and a 'long int').=20=20 End result, code compiles and appears to work just fine. --=20 You are receiving this mail because: You are the assignee for the bug.=