From nobody Fri Jul 19 16:30:30 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 4WQZsg3MFhz5RvxQ for ; Fri, 19 Jul 2024 16:30:31 +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 4WQZsg28FVz56JJ for ; Fri, 19 Jul 2024 16:30:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721406631; a=rsa-sha256; cv=none; b=nlX+pEAF8NB46kjXXRXfMhowvbtepwBWvPMJVgXCwn0jkeZWV5khVky5mZW4e4bkPA65st 4o1emsfLN7AttQ5P4WlX9EwKmrpKf/IROPxbPwupWN5+6Uh3pAh1YITVByIa4cYO/kgM6j lnixAcBWBzou7uF/qoIyX47aDAfIugm3bqvQOu1Pn0vqWOG7DCTSYta6p1ngAXQ+z4sfUD V3cZa0+uldjq5bxInQBx0SlGqJsRPTGDJUnD5gT7g7RqXOHbVpRjRSqmCquNb31VWXLnnR v0882kxl+6LIHceRcV/E/Xqt/I8TfA3aiFSO8q+T0z9f1b3O+qOzuf/mb1Yv6A== 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=1721406631; 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: in-reply-to:in-reply-to:references:references; bh=W1T6Qz2HohpueEJx/EF1h0KRC1YWeoj2bBW5Ks1ppzk=; b=G716ExtcqkkjcLEg0/TwE0ZVYvBehB5R2KjBnR8JnFcmw0ErcFG/1D8XLUmb6iMSPFYRFb PGf1wdagV00p0puyfc6fSBFAt8JUjVAS1wONpn6KirI5egCfRNxDbrjdALWYw07AJJb1fI oMD1UiKO57u9fKS4nLnRBe1/qT2Qcu+tFWfy5q2MHEnUzR7bvKEKLQfoyGLsE63RNqqzjK 3NxBuKryQkXgxHuTRscFXPhJ4QO1V6ZXU+j35s1o6hcaPsl3i/BKra8LsPSEnIuE0nEII8 ddvfxJSErLqvs0PiabFvjEaDK/iQiQSpdld61a3xCqbDqsqrt5cG6zREAU4H0A== 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 4WQZsg1mk3zfwr for ; Fri, 19 Jul 2024 16:30:31 +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 46JGUVUK013659 for ; Fri, 19 Jul 2024 16:30:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46JGUVoX013658 for ports-bugs@FreeBSD.org; Fri, 19 Jul 2024 16:30:31 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 280298] net/miniupnpc: in 2.2.8 changed API for UPNP_GetValidIGD: build error net-p2p/transmission-components and other Date: Fri, 19 Jul 2024 16:30:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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 Only Me X-Bugzilla-Who: vvd@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D280298 --- Comment #50 from Vladimir Druzenko --- For example net-p2p/monero-cli use it: result =3D UPNP_GetValidIGD(deviceList, &urls, &igdData, lanAddress, si= zeof lanAddress); freeUPNPDevlist(deviceList); if (result > 0) { if (result =3D=3D 1) { std::ostringstream portString; portString << port; // Delete the port mapping before we create it, just in case we have dangling port mapping from the daemon not being shu t down correctly UPNP_DeletePortMapping(urls.controlURL, igdData.first.servicetype, portString.str().c_str(), "TCP", 0); int portMappingResult; portMappingResult =3D UPNP_AddPortMapping(urls.controlURL, igdData.first.servicetype, portString.str().c_str(), portString .str().c_str(), lanAddress, CRYPTONOTE_NAME, "TCP", 0, "0"); if (portMappingResult !=3D 0) { LOG_ERROR("UPNP_AddPortMapping failed, error: " << strupnperror(portMappingResult)); } else { MLOG_GREEN(el::Level::Info, "Added IGD port mapping."); } } else if (result =3D=3D 2) { MWARNING("IGD was found but reported as not connected."); } else if (result =3D=3D 3) { MWARNING("UPnP device was found but not recognized as IGD."); } else { MWARNING("UPNP_GetValidIGD returned an unknown result code."); } But this was changed: https://github.com/miniupnp/miniupnp/commit/c0a50ce33e3b99ce8a96fd43049bb5b= 53ffac62f#diff-5a0d7cff00628c2c64a617edb347c0f283e3a75e7df910e7e8438fc6db23= f610L108 Also better to check upstream patches/issues and get or post patch. --=20 You are receiving this mail because: You are the assignee for the bug.=