From nobody Sun Apr 24 22:27:39 2022 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 B4F111A9B647 for ; Sun, 24 Apr 2022 22:27:39 +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 4KmjSq2kMkz3FSr for ; Sun, 24 Apr 2022 22:27:39 +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 33D6D6AE2 for ; Sun, 24 Apr 2022 22:27:39 +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 23OMRdS5047730 for ; Sun, 24 Apr 2022 22:27:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23OMRdf4047729 for ports-bugs@FreeBSD.org; Sun, 24 Apr 2022 22:27:39 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 263544] sysutils/pesign: Fails to build with GCC 11: error: 'free' called on a pointer to an unallocated object '"NSS Certificate DB"' [-Werror=free-nonheap-object] Date: Sun, 24 Apr 2022 22:27:39 +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: salvadore@freebsd.org 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 bug_file_loc op_sys bug_status bug_severity priority component assigned_to reporter blocked 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650839259; 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=N2ihpZbjWQP4z8SnQubBvhGpRAtd8jz+CTO2iSF1A1o=; b=Z0XpE3cTFfoVxy3H8ss/OzykiVHr+InySXMWdwH04DZt+ZUd4m9HqmKwJKyWrwMS7uDSr1 zoqJ/1PaGcA+1oe+77dL9tsR/AC6hDWrCTOVvmwEtl42uc1zy/rGBKTQ6nx0Egs1XJ0IPf JhjjzuwKvlN+fekwZSsRuHXO9OE9hW/xXXCzgPEdhg+Lqbx7wUACa5/fZmqr5JSIZsi0JO dIdXFSGxCZ01bLfMkTpeRsuXQccKkIGj9iJNVwFBU+eYMPNDDjbd3KohJWQfOh2wqDOulc h4TH2KkuD3rP0DntuW66Kkgdn/nBVjK4FysCo4+f4BPoXnjyL0cokd5WfWhhRg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650839259; a=rsa-sha256; cv=none; b=f7gVthYWKmnnzB0NXwvNtKuuKL7asQmw71j9AtsH0X1vTCoL/QZAgrmMsjomtzfkbsAkbS PFUC7rh35chyPwJvbHWSgrXJLjR4WcNcM+esqlTnxbhE+YBB3Wg4d3EeIXOMOZUinYcLNb V6HEYfvaVdSSyWWaDOJ17PsGHmCN6yJoaleANR+tYbeEfE35q9ZHKTH7RJEughJzYKQwKS Nmrhq97jTOfPMCZkjmhFYvmY0FEwEoaDuFXzuHcOJvGrjEEsMJQ11typD7lN5e37+Kmw9Y 0EesWhdcEml9xyYd93mHc+NB8laOoFKRb4KtO3wg+tEE4cYY+n54dlIKR5F0cg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263544 Bug ID: 263544 Summary: sysutils/pesign: Fails to build with GCC 11: error: 'free' called on a pointer to an unallocated object '"NSS Certificate DB"' [-Werror=3Dfree-nonheap-object] Product: Ports & Packages Version: Latest Hardware: Any URL: http://package18.nyi.freebsd.org/data/122amd64-default -foo/2021-09-18_18h41m21s/logs/errors/pesign-0.110_8.l og OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: salvadore@freebsd.org Blocks: 258378 Updating GCC_DEFAULT from GCC 10 to GCC 11 is blocked by the fact that buil= ding this port with GCC 11 gives the following error (full log in URL): gcc11 -I/wrkdirs/usr/ports/sysutils/pesign/work/pesign-0.110/include -O2 -p= ipe=20 -fstack-protector-strong -Wl,-rpath=3D/usr/local/lib/gcc11 -isystem /usr/local/include -fno-strict-aliasing -g -O0 -g -O0 -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants --std=3Dgnu99 -D_GNU_SOURCE -Wno-unused-result -Wno-unused-function -I../include/ -I/usr/local/include -I/usr/local/include/nss -I/usr/local/include/nspr -Werror -fPIC -isystem /usr/local/include -DCONFIG_amd64 -DCONFIG_amd64 -c authvar_context.c -o authvar_context.o authvar.c: In function 'main': authvar.c:344:17: error: 'free' called on a pointer to an unallocated object '"NSS Certificate DB"' [-Werror=3Dfree-nonheap-object] 344 | free(tokenname); | ^~~~~~~~~~~~~~~ authvar.c:217:15: note: assigned here 217 | char *tokenname =3D "NSS Certificate DB"; | ^~~~~~~~~ cc1: all warnings being treated as errors Also, it should be checked if USE_GCC is still needed and that the default clang compiler can't be used instead. Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258378 [Bug 258378] [exp-run] Update GCC_DEFAULT from 10 to 11 --=20 You are receiving this mail because: You are the assignee for the bug.=