Date: Thu, 11 Dec 2014 17:55:08 +0100 From: christian <c47g@gmx.at> To: freebsd-ports@freebsd.org Subject: nvidia_sysctl.c:610:9: error: '__assert_19' declared as an array with a negative size Message-ID: <5489CC6C.4000402@gmx.at>
next in thread | raw e-mail | index | archive | help
Hi! I've just tried to compile x11/nvidia-driver-304 on a 9.3-STABLE (rev. 274494) machine and got those errors below. It looks like it's related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194523 which was closed as "fixed". Does that problem still exist on stable/9? Thanks, Christian. nvidia_sysctl.c:610:9: error: '__assert_19' declared as an array with a negative size SYSCTL_ADD_PROC(&sysctl_ctx, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/sysctl.h:476:2: note: expanded from macro 'SYSCTL_ADD_PROC' CTASSERT(((access) & CTLTYPE) != 0); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/systm.h:96:21: note: expanded from macro 'CTASSERT' #define CTASSERT(x) _Static_assert(x, "compile-time assertion failed") ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/cdefs.h:251:30: note: expanded from macro '_Static_assert' #define _Static_assert(x, y) __Static_assert(x, __COUNTER__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/cdefs.h:252:31: note: expanded from macro '__Static_assert' #define __Static_assert(x, y) ___Static_assert(x, y) ^~~~~~~~~~~~~~~~~~~~~~ @/sys/cdefs.h:253:60: note: expanded from macro '___Static_assert' #define ___Static_assert(x, y) typedef char __assert_ ## y[(x) ? 1 : -1] ^~~~~~~~~~~~ nvidia_sysctl.c:620:9: error: '__assert_20' declared as an array with a negative size SYSCTL_ADD_PROC(&sysctl_ctx, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/sysctl.h:476:2: note: expanded from macro 'SYSCTL_ADD_PROC' CTASSERT(((access) & CTLTYPE) != 0); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/systm.h:96:21: note: expanded from macro 'CTASSERT' #define CTASSERT(x) _Static_assert(x, "compile-time assertion failed") ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/cdefs.h:251:30: note: expanded from macro '_Static_assert' #define _Static_assert(x, y) __Static_assert(x, __COUNTER__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/cdefs.h:252:31: note: expanded from macro '__Static_assert' #define __Static_assert(x, y) ___Static_assert(x, y) ^~~~~~~~~~~~~~~~~~~~~~ @/sys/cdefs.h:253:60: note: expanded from macro '___Static_assert' #define ___Static_assert(x, y) typedef char __assert_ ## y[(x) ? 1 : -1] ^~~~~~~~~~~~ nvidia_sysctl.c:630:9: error: '__assert_21' declared as an array with a negative size SYSCTL_ADD_PROC(&sysctl_ctx, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/sysctl.h:476:2: note: expanded from macro 'SYSCTL_ADD_PROC' CTASSERT(((access) & CTLTYPE) != 0); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/systm.h:96:21: note: expanded from macro 'CTASSERT' #define CTASSERT(x) _Static_assert(x, "compile-time assertion failed") ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/cdefs.h:251:30: note: expanded from macro '_Static_assert' #define _Static_assert(x, y) __Static_assert(x, __COUNTER__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @/sys/cdefs.h:252:31: note: expanded from macro '__Static_assert' #define __Static_assert(x, y) ___Static_assert(x, y) ^~~~~~~~~~~~~~~~~~~~~~ @/sys/cdefs.h:253:60: note: expanded from macro '___Static_assert' #define ___Static_assert(x, y) typedef char __assert_ ## y[(x) ? 1 : -1] ^~~~~~~~~~~~ : :
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5489CC6C.4000402>