From owner-freebsd-ports@freebsd.org Tue Jan 12 04:38:55 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58DA7A6D0A5 for ; Tue, 12 Jan 2016 04:38:55 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com [IPv6:2607:f8b0:400c:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A8BA10BE for ; Tue, 12 Jan 2016 04:38:55 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: by mail-vk0-x232.google.com with SMTP id n1so82058291vkb.3 for ; Mon, 11 Jan 2016 20:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GOXxyJ3K1l8tAi+1+ngnUts5ke2F5/B9B+qXD0nBAUs=; b=nBlazblBCusMWOnP2kVdRPnwo5Ia+H8QUj9r4Tdq27lIciHCandz5iWE2kQVq/ib2R Snw6e9cHhbTD8R0NrwDM4CAr1RWEwsx5lZeL90txwioZhUWb9XizmWfloSgilVygQgTA aSfWYQUHVf0JVdQ0kHpF9fVAZtwrsDLwIo4KP6rG6EILWJDBqG8kK4NIw5ege5xTJ8Pp COJDhC4p1quCwNClMQFeS+PdUzs7bWSekYWpraCc9o7lA3Z71empyLlqpUhNWj2rZz1c QEWjG+UxkI3wgzQ9WQASRc3oCgmWkK70kENL7Trp/ehCTwcfvPv0yoIThFGhEJeitEx2 gnwA== MIME-Version: 1.0 X-Received: by 10.31.134.11 with SMTP id i11mr92332364vkd.152.1452573533898; Mon, 11 Jan 2016 20:38:53 -0800 (PST) Received: by 10.31.194.14 with HTTP; Mon, 11 Jan 2016 20:38:53 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Jan 2016 23:38:53 -0500 Message-ID: Subject: Re: x11/nvidia-driver issues compiling on 9.X From: Ultima To: Jan Beich Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2016 04:38:55 -0000 Thank you Jan Beich. That was it!. Also thanks for providing all the detailed information. Vary helpful =] On Sun, Jan 10, 2016 at 11:59 PM, Jan Beich wrote: > Ultima writes: > > > nvidia-modeset-freebsd.c:563:29: error: sys/caprights.h: No such file or > > directory > > Drop the line. is implicitly included on 10+ systems. > > > nvidia-modeset-freebsd.c:593: warning: implicit declaration of function > > 'cap_rights_init' > > See how nv-freebsd.h and nvidia_linux.c fixed this issue and also use > slightly more correct __FreeBSD_version. > > // before r255219 > status = fget(curthread, fd, CAP_IOCTL, &fp); > > // after r255219 > cap_rights_t rights; > status = fget(curthread, fd, cap_rights_init(&rights, CAP_IOCTL), &fp); > > https://svnweb.freebsd.org/changeset/base/255219 >