Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 2015 14:14:28 +0200
From:      Carlos J Puga Medina <cpm@fbsd.es>
To:        freebsd-ports <freebsd-ports@freebsd.org>, alexvpetrov@gmail.com
Cc:        jbeich <jbeich@freebsd.org>, koobs@FreeBSD.org, dinoex@FreeBSD.org
Subject:   Re: error build net-p2p/transmission-cli after update net/miniupnpc
Message-ID:  <1444824868.41374.2.camel@fbsd.es>

next in thread | raw e-mail | index | archive | help

--=-/OyXyK4rogz0kSCij7qr
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable


> upnp.c:91:51: error: too few arguments to function call, expected 7,
> have 6=20
> ret =3D upnpDiscover (msec, NULL, NULL, 0, 0, &err);

The following patch solved the problem for me:

% cat /usr/ports/net-p2p/transmission-cli/files/patch
-libtransmission_upnp.c=20
--- libtransmission/upnp.c.orig	2015-10-14 12:00:18 UTC
+++ libtransmission/upnp.c
@@ -88,7 +88,7 @@ tr_upnpDiscover (int msec)
=20
 #if (MINIUPNPC_API_VERSION >=3D 8) /* adds ipv6 and error args */
   int err =3D UPNPDISCOVER_SUCCESS;
-  ret =3D upnpDiscover (msec, NULL, NULL, 0, 0, &err);
+  ret =3D upnpDiscover (msec, NULL, NULL, 0, 0, 0, &err);
   have_err =3D err !=3D UPNPDISCOVER_SUCCESS;
 #else
   ret =3D upnpDiscover (msec, NULL, NULL, 0);

Cheers,
--=20
Carlos Jacobo Puga Medina <cpm@fbsd.es>
PGP fingerprint =3D C60E 9497 5302 793B CC2D  BB89 A1F3 5D66 E6D0 5453

--=-/OyXyK4rogz0kSCij7qr
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAABAgAGBQJWHkckAAoJEKHzXWbm0FRT6NMH/2jJYUuzWeoKLAKKzC0wIL1e
uey9+lD1+p8r0ssY0sjzhFAyhrLJtRtUvmW4G7gxcI1zFNcJJh5Ni8iImWbr2KJP
R9p0+jq4m63JHIG7Da7LFSrEftBFA2psc0TVjcBA7HZUG82tIkZgQ9VAI2q1BPtI
WPLYTFu0CAQeEZoQ6LcP8P5UYlMWWClejD6riVV3yXEAHM+pRrlkFGBp0WQYc0Rq
fIZMwI5TfsY6ryNUcr37zNcd0LBeOFAcNkrpUvmnUYd0fNUG/CgkzWKyfh/2uTrd
slbI5Y9UZvvySr3XVPnIDN8nf3pA/UzLLsSHbT1ZLFVSTJlUORznhLbdOSgPs5s=
=NxMP
-----END PGP SIGNATURE-----

--=-/OyXyK4rogz0kSCij7qr--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1444824868.41374.2.camel>