Date: Tue, 21 May 2019 14:41:50 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 238024] x11/nvidia-driver: 390.87: on CURRENT fails to compile in nvidia-modeset-freebsd.c: not a prototype Message-ID: <bug-238024-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238024 Bug ID: 238024 Summary: x11/nvidia-driver: 390.87: on CURRENT fails to compile in nvidia-modeset-freebsd.c: not a prototype Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: danfe@FreeBSD.org Reporter: ohartmann@walstatt.org Assignee: danfe@FreeBSD.org Flags: maintainer-feedback?(danfe@FreeBSD.org) On recent CURRENT (FreeBSD 13.0-CURRENT #79 r347977: Sun May 19 20:52:00 CE= ST 2019 amd64) having /usr/src at revision 348051, port x11/nvidia-driver (por= ts tree at revision 502220) fails to compile with the error shown below: [...] =3D=3D=3D> src/nvidia-modeset (all) machine -> /usr/src/sys/amd64/include x86 -> /usr/src/sys/x86/include cc -O2 -pipe -march=3Dnative -fno-strict-aliasing -DNV_VERSION_STRING=3D\"= 390.87\" -Werror=3Dundef -march=3Dnative -Werror -D_KERNEL -DKLD_MODULE -nostdinc=20 -Imachine -I/usr/src/sys/sys -I../common/inc -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include -fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include -MD=20 -MF.depend.nvidia-modeset-freebsd.o -MTnvidia-modeset-freebsd.o -mcmodel=3D= kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tabl= es -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -mno-aes -mno-avx -std=3Diso9899:1999 -c nvidia-modeset-freebsd.c -o nvidia-modeset-freebsd.o nvidia-modeset-freebsd.c:233:5: error: implicit declaration of function 'mtx_lock' is invalid in C99 [-Werror,-Wimplicit-function-declaration] mtx_lock(&popen->events.lock); ^ nvidia-modeset-freebsd.c:233:5: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] nvidia-modeset-freebsd.c:239:5: error: implicit declaration of function 'mtx_unlock' is invalid in C99 [-Werror,-Wimplicit-function-declaration] mtx_unlock(&popen->events.lock); ^ nvidia-modeset-freebsd.c:239:5: note: did you mean 'mtx_lock'? nvidia-modeset-freebsd.c:233:5: note: 'mtx_lock' declared here mtx_lock(&popen->events.lock); ^ nvidia-modeset-freebsd.c:239:5: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] mtx_unlock(&popen->events.lock); ^ nvidia-modeset-freebsd.c:257:9: error: implicit declaration of function 'mtx_init' is invalid in C99 [-Werror,-Wimplicit-function-declaration] mtx_init(&ref_ptr->lock, "nvkms-ref-ptr-lock", NULL, MTX_SPIN); ^ nvidia-modeset-freebsd.c:257:9: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] nvidia-modeset-freebsd.c:257:62: error: use of undeclared identifier 'MTX_S= PIN' mtx_init(&ref_ptr->lock, "nvkms-ref-ptr-lock", NULL, MTX_SPIN); --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238024-7788>