Bug 40379

Summary: ../../dev/sound/pcm/channel.h:69: channel_if.h: No such file or directory
Product: Base System Reporter: Paul Werkowski <pw>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Paul Werkowski 2002-07-09 14:20:01 UTC
Added this line to a copy of GENERIC config file

      device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15

Kernel fails to build due to missing file
 /sys/dev/sound/pcm/channel_if.h

Fix: 

Unknown
How-To-Repeat:       See Full Description
Comment 1 Peter Pentchev 2002-07-09 16:08:37 UTC
On Tue, Jul 09, 2002 at 06:17:31AM -0700, Paul Werkowski wrote:
> 
> >Number:         40379
> >Category:       kern
> >Synopsis:       ../../dev/sound/pcm/channel.h:69: channel_if.h: No such file or directory
> >Originator:     Paul Werkowski
> >Release:        4.6
> >Organization:
> Sonetech Corporation
> >Environment:
> FreeBSD mht.sc.com 4.6-RELEASE-p1 FreeBSD 4.6-RELEASE-p1 #0: Fri Jul  5 07:03:13 EDT 2002     root@mht.sc.com:/usr/obj/usr/src/sys/GENERIC  i386
> 
> >Description:
> Added this line to a copy of GENERIC config file
> 
>       device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15
> 
> Kernel fails to build due to missing file
>  /sys/dev/sound/pcm/channel_if.h

What commands did you execute after adding the line to the GENERIC
config file?  Did you use 'make buildkernel' from the /usr/src
directory, or did you do it the old-fashioned way, using config(8)?
If you did it with config(8), are you sure that you ran 'make depend'
before the real 'make'?

G'luck,
Peter

-- 
Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
"yields falsehood, when appended to its quotation." yields falsehood, when appended to its quotation.
Comment 2 Paul Werkowski 2002-07-09 16:48:31 UTC
 
| What commands did you execute after adding the line to the GENERIC
| config file?  Did you use 'make buildkernel' from the /usr/src
| directory, or did you do it the old-fashioned way, using config(8)?
| If you did it with config(8), are you sure that you ran 'make depend'
| before the real 'make'?
| 

I tried both the new and old ways. Yes I did do make depend, and
that is where the build failed. I also tried removing the offending
#include but that just led to failure at link time.

There is no channel_if.h in the source. There are channel_if.m files
though.

Paul
Comment 3 Mark Peek freebsd_committer freebsd_triage 2002-07-15 03:48:19 UTC
Try adding this to your configuration file:

	device pcm

And then rerun config, etc.


Mark
Comment 4 Peter Pentchev freebsd_committer freebsd_triage 2002-07-17 13:54:20 UTC
State Changed
From-To: open->feedback

Does Mark Peek's suggestion of adding 'device pcm' to your kernel config 
file solve the problem?
Comment 5 Peter Pentchev freebsd_committer freebsd_triage 2002-07-17 17:27:09 UTC
State Changed
From-To: feedback->closed

The submitter confirms that adding 'device pcm' fixes the problem.