From nobody Thu May 18 12:21:10 2023 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 4QMTbV750Zz4BVyJ for ; Thu, 18 May 2023 12:21:10 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QMTbV5qrwz42Y0 for ; Thu, 18 May 2023 12:21:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684412470; 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=8wVy4qXAyj70TtjEOLM8q4Pbv9IpVrWszWEhbQ+7Im8=; b=MCcQE07z69H1tEEpZ9tSjNIE6dTs9AAhsBk+iE9ls+G1jQb/CYSkGiZojKL3vmOgGGjQ3y Lrjc57pnkpM+uPrOSyQ7tAl4/yO3J3iW2SVRFjrRTQa43d0jlxyBIY7duy6s+GxdbHlKGd Q9vDHnSnjnyHEZUFU+KxQLVolDz6znq97rZ/axM6mztdKS83bSX63uXc1+tpcmiXRRlOdL KO6iCG+sVW+zYE0h9rn9cSMRAwiuSReNaCY2gYNP6Tur/AbsTfvMhiPy80QbdcO/G3vwjU FUSpHyfQQ+dH+Vs+UqFLhz3B35eLqTwULca6mWkBS3oA+4ya8TjBRZtsD0IQ4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684412470; a=rsa-sha256; cv=none; b=qIIG01w9KPLxTS8fvojMghOCZljdJo37EM6ifyT2C5Nf009dBwMzZ4FgvG1Q+zfbLCoc2Y oQDizujUyiJu2FhC0tWsEufFxz3h6fdr9375leKLIITdjWGCK1i1GK8+DpRIRoqXzeiJu2 rM47Qat4TxOyQ/+Z1Q5mh/z3EibBrmJNY/m825G0Cutp3NS1kYY2jPZhCqTCbJsedPQjbo mbaCZxj/KHs7fHhYa4AIxUTYI2l9tmZR9j8Jym+XFDuVBCZab4TmWKeHRNiI5aIUkCKjhT HZZ6UEXb+p6RIw1RiqHW1YLPg57dbBXZ1IH44Vz4nXwKM4HL91YTEXXXh2x9Ig== 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 4QMTbV4wDszlL3 for ; Thu, 18 May 2023 12:21:10 +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 34ICLA5Y003053 for ; Thu, 18 May 2023 12:21:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34ICLAjs003032 for ports-bugs@FreeBSD.org; Thu, 18 May 2023 12:21:10 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 271486] audio/espeak-ng: fix build with clang 16 Date: Thu, 18 May 2023 12:21:10 +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 Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: se@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271486 Bug ID: 271486 Summary: audio/espeak-ng: fix build with clang 16 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: se@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(se@FreeBSD.org) Assignee: se@FreeBSD.org Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because audio/espeak-ng's Makefile does not explicitly set its C++ standard, this leads to an error: src/speechPlayer/src/speechWaveGenerator.cpp:197:56: error: reference to 'sample' is ambiguous unsigned int generate(const unsigned int sampleCount, sample* sampleBuf) { ^ src/speechPlayer/src/sample.h:23:3: note: candidate found by name lookup = is 'sample' } sample; ^ /usr/include/c++/v1/__algorithm/sample.h:95:17: note: candidate found by = name lookup is 'std::sample' _SampleIterator sample(_PopulationIterator __first, ^ This is because speechWaveGenerator.cpp has "using namespace std;" at the top, so "sample" can match both "std::sample" (from ) and "struct sample" (from sample.h). Qualify "sample" as "::sample" to work around the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=