x11/nvidia-driver fails to build due to error: [...] 'unsigned long long' to parameter of type 'cap_rights_t *' (aka 'struct cap_rights *') ...

O. Hartmann ohartman at zedat.fu-berlin.de
Thu Sep 5 19:18:05 UTC 2013


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

--- 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 = fget(td,
args->fd, CAP_IOCTL, &fp)) != 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130905/99167b42/attachment.sig>


More information about the freebsd-ports mailing list