From owner-freebsd-questions@freebsd.org Wed Aug 5 14:59:14 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 B9E9B9B2F43; Wed, 5 Aug 2015 14:59:14 +0000 (UTC) (envelope-from ps06756@gmail.com) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (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 4318518A8; Wed, 5 Aug 2015 14:59:14 +0000 (UTC) (envelope-from ps06756@gmail.com) Received: by lbbpo9 with SMTP id po9so26204565lbb.2; Wed, 05 Aug 2015 07:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=PM00mkPveCgBYximDxpxiA7Y6asNaVazdJsE/iAQuDA=; b=R86e0uJKo14LwcnPtFQXoL6+A+3NvaqzehYSFlJTYlegMPYWc3JUtyNnfClOTGL24S 0jYmj/dy32JqZLCtkU/2YLmr4R5gq6TFuQBmh/9opI9Wdl4VOuBKllMaVQPfQq8XP0WM sE6gcSyDEWt0yF76wGV/WONAn9CAxzun3nlkDikidtQvI+7HW7mWFpbDuv5MAjz0fq4n 4D2CGNM028CJcSCzzr3oRkAR5kNvgwhHvYY6dWCw3M2kqdax1tP/jRbdzTjCzX2eJnoN zCcn79pTQZ1PZG30I9i+XfqRaSFJAUq7FHwrWROS4Jg4fNrIUEYmk/AK5lltuFhr6i/D 3E8g== X-Received: by 10.112.159.162 with SMTP id xd2mr9478257lbb.67.1438786752297; Wed, 05 Aug 2015 07:59:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.87.194 with HTTP; Wed, 5 Aug 2015 07:58:52 -0700 (PDT) In-Reply-To: <20150805141145.GA21009@ox> References: <20150805141145.GA21009@ox> From: Pratik Singhal Date: Wed, 5 Aug 2015 20:28:52 +0530 Message-ID: Subject: Re: Compilation error due to header not found To: Pratik Singhal , freebsd-hackers , FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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:59:14 -0000 Thanks a lot! for the hint! Although, I didn't make any direct changes in SRCS in Makefile, I used "device sound" in the config file used to compile the kernel and the channel_if.h file was generated. Thanks, Pratik Singhal On Wed, Aug 5, 2015 at 7:41 PM, 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 > -- Regards, Pratik Singhal