From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 17:25:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6ED9D16A49E for ; Fri, 8 Dec 2006 17:25:16 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8568A43D91 for ; Fri, 8 Dec 2006 17:21:12 +0000 (GMT) (envelope-from af300wsm@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so748254uge for ; Fri, 08 Dec 2006 09:21:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=BzwrRINljeJIXlnZKfM5bKO4WSc9xoOuUtfpzBT5p2SUkGpOnFmIKCWAMPGXNJ2BC7GqAYiknyqpX8tyhxjnK+PqVdnIottrAB6WGWpwe45ZvEyrVTLPaz0bPv21mNnjKOCTBRAGKgngDi9/4Hile9PhhGZpS/sZaUBg+Wn4hbs= Received: by 10.78.201.10 with SMTP id y10mr127816huf.1165598507972; Fri, 08 Dec 2006 09:21:47 -0800 (PST) Received: by 10.78.156.13 with HTTP; Fri, 8 Dec 2006 09:21:47 -0800 (PST) Message-ID: <340a29540612080921i7d202e4dn7f8378c5341aeca2@mail.gmail.com> Date: Fri, 8 Dec 2006 10:21:47 -0700 From: "Andrew Falanga" To: freebsd-questions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: compilation problems with some code from Linux X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 17:25:16 -0000 Hi, I'm trying to port some code from Linux to FreeBSD and I've got an issue that revolves around something I've never dealt with before. The code includes the following header: #include Apparently, program is attempting to make use of the xucred structure defined in there, because the rest of the stuff in the file seems to be for the kernel. However, when I try to compile, gcc continually bails with the following error (among others), "NGROUPS was not declared in this scope." The NGROUPS appears to be a macro, but it's not defined earlier on. Would anyone here know where it's defined so I can include that file too? Secondly, I'm also getting errors because gcc can't find either. True enough, there isn't any vfs.h file in /usr/include/sys. Since this file is in Linux, what should I include for FreeBSD? Thanks, Andy