From nobody Wed Sep 15 12:12:52 2021 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 6BE8F17D7A7A for ; Wed, 15 Sep 2021 12:12:53 +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 4H8fHT2Z4Pz4vT2 for ; Wed, 15 Sep 2021 12:12:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 2EFAF5AA5 for ; Wed, 15 Sep 2021 12:12:53 +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 18FCCr2U021046 for ; Wed, 15 Sep 2021 12:12:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 18FCCr7R021045 for ports-bugs@FreeBSD.org; Wed, 15 Sep 2021 12:12:53 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 258512] net/ifdepd: fix build with clang 13 Date: Wed, 15 Sep 2021 12:12:52 +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: ports-bugs@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 cc 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=3D258512 Bug ID: 258512 Summary: net/ifdepd: fix build with clang 13 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org CC: alex@hugo.bmg.gv.at CC: alex@hugo.bmg.gv.at Flags: maintainer-feedback?(alex@hugo.bmg.gv.at) During an exp-run for llvm 13 (see bug 258209), it turned out that net/ifde= pd fails to build with clang 13: cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wnested-externs -Wpointer-arith -Winline -Wcast-qual -Wredundant-decls -c ifdepd.c -o ifdepd.o ifdepd.c:420:4: warning: misleading indentation; statement is not part of t= he previous 'if' [-Wmisleading-indentation] free(d_ints); ^ ifdepd.c:418:2: note: previous statement is here if (D) ^ ifdepd.c:434:4: warning: misleading indentation; statement is not part of t= he previous 'if' [-Wmisleading-indentation] free(s_ints); ^ ifdepd.c:432:2: note: previous statement is here if (S) ^ 2 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wnested-externs -Wpointer-arith -Winline -Wcast-qual -Wredundant-decls -o ifdepd ifdepd.o ld: error: undefined symbol: cleanup >>> referenced by ifdepd.c >>> ifdepd.o:(main) >>> referenced by ifdepd.c >>> ifdepd.o:(main) >>> referenced by ifdepd.c >>> ifdepd.o:(main) >>> referenced 1 more times cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 The warnings about misleading indentation are indicating an actual bug, whi= ch can be fixed by adding a few braces. The link error is because ifdepd uses = an inline function without either static or extern specifier. --=20 You are receiving this mail because: You are the assignee for the bug.=