Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2013 21:17:57 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   x11/nvidia-driver fails to build due to error: [...] 'unsigned long long' to parameter of type 'cap_rights_t *' (aka 'struct cap_rights *') ...
Message-ID:  <20130905211757.0d867d58@thor.walstatt.dyndns.org>

next in thread | raw e-mail | index | archive | help
--Sig_/INC3nQA=QnPL1_CvjG+A3mT
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable


Updating sources of CURRENT after r255211 makes the building/updating
of port x11/nvidia-driver make fail with the rror shown below:=20

--- nvidia_linux.o ---
nvidia_linux.c:42:37: error: incompatible integer to pointer conversion
passing 'unsigned long long' to parameter of type 'cap_rights_t *' (aka
'struct cap_rights *') [-Werror,-Wint-conversion] if ((error =3D fget(td,
args->fd, CAP_IOCTL, &fp)) !=3D 0) ^~~~~~~~~ @/sys/capability.h:197:20:
note: expanded from macro 'CAP_IOCTL' #define CAP_IOCTL
CAPRIGHT(1, 0x0000000000000080ULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/capability.h:53:28: note: expanded from macro 'CAPRIGHT'
#define CAPRIGHT(idx, bit)      ((1ULL << (57 + (idx))) | (bit))
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/file.h:220:51: note: passing argument to parameter 'rightsp' here
int fget(struct thread *td, int fd, cap_rights_t *rightsp, struct file
**fpp);


What happened?

Regards,

Oliver

--Sig_/INC3nQA=QnPL1_CvjG+A3mT
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (FreeBSD)

iQEcBAEBAgAGBQJSKNjqAAoJEOgBcD7A/5N8N9gIAKMTJKrhub9+KKNSDS8lAp1Q
C4TinVL8kyCQnCOe+e8FQoW5h9rtPPigpusotaT8wqJMBD/jdVp/A7nhMuq16pjg
SGg2wlhbwoXVvCDp22vbXol76fPyD7cU0WoPwXyO6dPT081k8Obg+PrQa9QbpB5n
YGdKqDm1cJJLzGO8c91WrRaIIPC78oF2ZJD6H2tYKCapYqB6nELgpQjI/pls1656
CqB3sYZ0LrhovhWBRgExg5hh0JK4VF6z/ofJlHDstKfkizfBMrLyqilr9BavZOUo
hDlYawTtqa7LQNrqmLxFO+yTADi3Ad9Tq3Bkw8zI5BFrAgJ1iusAL0s59lZv9sA=
=j+Gz
-----END PGP SIGNATURE-----

--Sig_/INC3nQA=QnPL1_CvjG+A3mT--



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