Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2008 11:36:08 +0200
From:      "Alexey Shuvaev" <shuvaev@physik.uni-wuerzburg.de>
To:        Michael Proto <mike@jellydonut.org>
Cc:        mbr@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: open-vm-tools fails on a recent sup to CURRENT
Message-ID:  <20081021093608.GA28266@wep4035.physik.uni-wuerzburg.de>
In-Reply-To: <1de79840810141617y27fb7779xfd8f334f8b7ff2e1@mail.gmail.com>
References:  <1de79840810141617y27fb7779xfd8f334f8b7ff2e1@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 14, 2008 at 07:17:29PM -0400, Michael Proto wrote:
> Has anyone started seeing failures of ports/emulators/open-vm-tools builds
> with a recent current? I csup-ed my source recently (as of 20080926),
> rebuilt world and my kernel, and open-vm-tools builds fail in the vmhgfs
> module with the following:
> 
> 
> ...
> cc1: warnings being treated as errors
> vfsops.c: In function 'HgfsVfsMount':
> vfsops.c:142: warning: implicit declaration of function 'suser'
> vfsops.c:142: warning: nested extern declaration of 'suser'
> *** Error code 1
> ...
> 
> I've tried setting CFLAGS optimizations to -Os (my default), -O, -O2 and no
> optimizations and it fails with the same error every time. Has anyone else
> using CURRENT in VMware seen this error recently? Any ideas?
> 
This is due to API change suser() -> priv_check().
Have a look at
http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11/nvidia-driver/Makefile
(revision 1.81) for example.
I am not sure about "PRIV_DRIVER" argument, but you can try to replace
"suser(CURTHREAD)" to "priv_check(CURTHREAD, PRIV_DRIVER)"
in the open-vm-tools sources.

Alexey.



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