Compilation error due to header not found

Ian Lepore ian at
Wed Aug 5 15:01:32 UTC 2015

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

More information about the freebsd-questions mailing list