From owner-freebsd-hackers@freebsd.org Wed Aug 5 15:01:32 2015 Return-Path: Delivered-To: freebsd-hackers@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 624F79B40EB for ; Wed, 5 Aug 2015 15:01:32 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from erouter6.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) by mx1.freebsd.org (Postfix) with SMTP id 44A031C1D for ; Wed, 5 Aug 2015 15:01:31 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Wed, 5 Aug 2015 14:59:06 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t75F1TLU020651; Wed, 5 Aug 2015 09:01:29 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1438786889.70393.149.camel@freebsd.org> Subject: Re: Compilation error due to header not found From: Ian Lepore To: Navdeep Parhar Cc: Pratik Singhal , freebsd-hackers , FreeBSD Questions Date: Wed, 05 Aug 2015 09:01:29 -0600 In-Reply-To: <20150805141145.GA21009@ox> References: <20150805141145.GA21009@ox> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2015 15:01:32 -0000 On Wed, 2015-08-05 at 07:11 -0700, Navdeep Parhar wrote: > 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 That's the solution if it's a module build that's failing. If the driver is compiled into the kernel, maybe you just need to add "device sound" to your config. -- Ian