Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2013 17:53:32 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   port 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:  <20130905175332.1373a535@thor.walstatt.dyndns.org>

next in thread | raw e-mail | index | archive | help
--Sig_/Wvm0g69_n7K=SHPLZoZNv8/
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);


Regards,

Oliver

--Sig_/Wvm0g69_n7K=SHPLZoZNv8/
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

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

iQEcBAEBAgAGBQJSKKkBAAoJEOgBcD7A/5N8VSoH/2g2CAjgVDpT7Rci4r2H3ZQ/
MN0MHCASayT9za/TvFc1s37rze4lKcMy/FKDpPhN4bWzw/vXXQ5x9202Jyq6UoAf
/fktm0vtCQgTVi6r9lw+xCKvhSc8u8LxHTmbocfTuaxKun/BydoDlqDYzCEFf3BC
HGNYrdPvXh9PiMed22pltUCJN6Sl4cuYMpYt8bOQoNN+Xcrb89bjK/0qcKncYG+m
nHhEER9Ne1DKx+TZ97kAUJNNG0BWMt+rG8HJ4n854xS2SXhF9GqEif6OOvIqCAeD
xpqzRwIEvjtoQGTcJ1qQgby6tbhgyvZRquRu7waoG1fK+V5oSMRCFywRYaEYunA=
=SAlh
-----END PGP SIGNATURE-----

--Sig_/Wvm0g69_n7K=SHPLZoZNv8/--



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