From nobody Sat Feb 3 18:39:10 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 4TS1dB4jKvz589QK for ; Sat, 3 Feb 2024 18:39: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 4TS1dB2BpYz4rt1 for ; Sat, 3 Feb 2024 18:39: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=1706985550; 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=WBPffX314qxx8b57VuIiFttV73EILtPRjlPCaarcTvM=; b=uVd5qEMLZmgm5ub6d7VHYLoPjDk9ORAtAA1mJw7SLCHC/HTiUxo/KVnMnmdE/wCOtnlkRY cgtSYvqqQDf+LDyskTWc0OkAJ5Y4wluSS74NbMoKM2D8JjE2W7VaVU3JkQR4xT/bVvUBIH Gq3ycAW+3BB495Oza2Voxp+uy4DvMqM/b7CLcENCDhD4SihZDectNpt8hyzIaWUdhx5kEs gPLyYbwrrDiEOvqWD5naJ4/NUTf00VoBWxNCXY0sjr13DiNVi2L83tNQZ1BjCxV/pax3up 17Q8W9tXqRqKQLmKpkMEe+II6G/DCrODlHZECMWYkjM+OF0O2+JA6veF16x+QA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706985550; a=rsa-sha256; cv=none; b=ryIJHI4WPRkaFw1YQUdLUYu8DMJ9WbNAyl48l12yDBFFSWDd+ad5vJyaTaYb6BVVrbbJj/ d89poD+PWoPnNP+GAnD6sF7teZw9yNZsmGtFPgnvXem86S9wwPRIZJpIXiqsubPG0n3QY9 ra3e7Ch/0SicseyqlbZeG5U+VYj3DyRS/7jqGmEJLU4cOcrZ09OHw7KQeFsOMckorXgUOq mn5n2W8K4THUrcjFvqFOzy8XuNIC2w/tSQfHCOAinam4ak32UuxCac32FsyRB7JsLFyhY0 JfFjQ3boK+vq3F1fnJmdD0O1+CnQVHsMSLGwc9y5eeAk41jI1fFB0OxJ50/Z2w== 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 4TS1dB156vzPKQ for ; Sat, 3 Feb 2024 18:39: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 413IdAuf041684 for ; Sat, 3 Feb 2024 18:39:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 413IdATl041682 for ports-bugs@FreeBSD.org; Sat, 3 Feb 2024 18:39: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 276810] [exp-run] science/netcdf: rename '_FillValue' macro to 'NC_FillValue' Date: Sat, 03 Feb 2024 18:39:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@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 cc 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276810 Bug ID: 276810 Summary: [exp-run] science/netcdf: rename '_FillValue' macro to 'NC_FillValue' Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: dim@FreeBSD.org CC: ports-bugs@FreeBSD.org While investigating build failures for bug 276104 (clang 18 exp-run), I not= iced the following problem with science/netcdf-cxx, which is ultimately caused by its dependency, science/netcdf: libtool: compile: c++ -DHAVE_CONFIG_H -I. -I.. -fPIC -DPIC -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MT ncAtt.lo -MD -MP -MF .deps/ncAtt.Tpo -c ncAtt.cpp -fPIC -DPIC -o .libs/ncA= tt.o In file included from ncAtt.cpp:1: In file included from ./ncAtt.h:2: In file included from ./ncException.h:3: In file included from /usr/include/c++/v1/iostream:44: In file included from /usr/include/c++/v1/istream:170: In file included from /usr/include/c++/v1/ostream:187: In file included from /usr/include/c++/v1/bitset:133: /usr/include/c++/v1/__bit_reference:176:16: error: expected ',' or '>' in template-parameter-list 176 | template | ^ /usr/local/include/netcdf.h:113:25: note: expanded from macro '_FillValue' 113 | #define _FillValue "_FillValue" | ^ and lots more of these errors. The problem is that netcdf defines a macro named '_FillValue', but names starting with underscores are reserved for system headers. In this case, li= bc++ 18 uses the same identifier '_FillValue' for a template argument. But becau= se netcdf's definition expands to a literal string, this results in compile errors. I have submitted https://github.com/Unidata/netcdf-c/issues/2858 to ask upstream netcdf-c about this, but pending their answer, I would like to sug= gest an exp-run with the '_FillValue' macro being renamed to 'NC_FillValue', to = get an idea of the fallout. --=20 You are receiving this mail because: You are on the CC list for the bug.=