From owner-freebsd-questions@freebsd.org Wed Aug 5 14:11:53 2015 Return-Path: Delivered-To: freebsd-questions@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 03C439B2279; Wed, 5 Aug 2015 14:11:53 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) (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 C7E761C5B; Wed, 5 Aug 2015 14:11:52 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by pabxd6 with SMTP id xd6so19523841pab.2; Wed, 05 Aug 2015 07:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=eDIP0CHkI8/ess4po80AqZxKQq2xmOvGr2GmWQaAcpE=; b=JIqPtlHUra+JzXunFSxc+e7/JWu+QNnot16VSNzaE/lx9Jiienfx/iab4+wrf0sHmD X7wlPCbWa23FyCG2ty+LS0n2M22nWInCqy3bxeubgXtwJ4Fo4GbGRvZJHv+pjEZXe7ST kYLd4a4ORYm3X+Z5Yzauw7rVr//UsWs+tgeor3szuZsqEHUwHJOqgzjFHU5z2UPo84Xs DMllKxObHlubng0+TRdQCHzzAzf5p20rKi0L1+wH780N9Tz1ihbEvjhgOdwhGcAUih73 boIPSmvy8kVeyv//tZSVWZ+tWLnNfEYY0V20o/K/44w1Zqw365GyGLTAn66zRYT+Hoyc 3Wvw== X-Received: by 10.68.203.195 with SMTP id ks3mr19681437pbc.123.1438783912369; Wed, 05 Aug 2015 07:11:52 -0700 (PDT) Received: from ox ([2601:641:c000:600:3c6d:108a:30a4:3887]) by smtp.gmail.com with ESMTPSA id ya3sm3063732pbb.71.2015.08.05.07.11.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Aug 2015 07:11:51 -0700 (PDT) Date: Wed, 5 Aug 2015 07:11:45 -0700 From: Navdeep Parhar To: Pratik Singhal Cc: freebsd-hackers , FreeBSD Questions Subject: Re: Compilation error due to header not found Message-ID: <20150805141145.GA21009@ox> Mail-Followup-To: Pratik Singhal , freebsd-hackers , FreeBSD Questions References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2015 14:11:53 -0000 On Wed, Aug 05, 2015 at 06:13:03PM +0530, Pratik Singhal wrote: > Hello all, I have used the file "dev/sound/pcm/sound.h" in a kernel driver > made for ac97 codec for Allwinner A10. This file further includes the file > "dev/sound/pcm/channel.h" which further includes the file "channel_if.h". > > I have checked in ~HEAD and the file channel_if.h doesn't exist in that > particular directory and as a result, I am getting a compilation error when > I compile the kernel complaining about the missing file "channel_if.h" . > > How can I resolve this error ? There is a channel_if.m in the tree. The build system should be able to create channel_if.h from that if you list channel_if.h in SRCS in your Makefile. Regards, Navdeep