Audio on Ultra 1?

Pyun YongHyeon yongari at kt-is.co.kr
Thu Nov 4 22:43:16 PST 2004


On Fri, Nov 05, 2004 at 01:54:06AM +0100, Torfinn Ingolfsen wrote:
 > On Thu, 4 Nov 2004 19:52:11 +0900
 > Pyun YongHyeon <yongari at kt-is.co.kr> wrote:
 > 
 > > Did you patch against fresh src tree?
 > 
 > Yes, I cvsup'ed (RELENG_5) before I patched.
 > 
 > > Strange to me. Would you try the following?
 > 
 > Ok, I'm using your new patch now (the one regenerated for RELENG_5).
 > Let's see... No, the same problem as before:
 > 
 > In file included from ../../../dev/sound/pcm/sound.h:93,
 >                  from ../../../dev/sound/sbus/cs4231.c:53:
 > ../../../dev/sound/pcm/channel.h:69:24: channel_if.h: No such file or
 > directory../../../dev/sound/sbus/cs4231.c:60:22: mixer_if.h: No such
 > file or directory mkdep: compile failed
 > *** Error code 1
 > 

That's really strange to me.
The file channel_if.h and mixer_if.h should be created by dependency.
If you look the output of "make buildkernel" carefully  you may have
noticed the following one.
...
--------------------------------------------------------------
>>> stage 3.1: making dependencies
--------------------------------------------------------------
...
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/pci/pci_if.m -c
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/pci/pcib_if.m -c
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/sound/pcm/ac97_if.m -c
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/sound/pcm/channel_if.m -c
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/sound/pcm/feeder_if.m -c
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/sound/pcm/mixer_if.m -c
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/isa/isa_if.m -c
....

At that time the channel_if.h and mixer_if.h is created by the awk script.
Would you try the following?

#cd /usr/src/sys/sparc64/conf
#config YOUR_CONFIG
#cd ../compile/YOUR_CONFIG
#make depend
Then check whether the channel_if.h and mixer_if.h exist.
If there exist the two file, your build environments seems to be
corrupted. You may want to recover this.
   #make cleandir && make cleandir
   #cd /usr/obj
   #rm -rf *
   #cd /usr/src


If there exist two files there, I have no idea. In that case, I have
to reinstall RELENG_5 on my system. It'll take a couple of days since
it's too slow in order to build everything from source. 

 > What am i doing wrong?
 > I cvsuped from cvsup.no.freebsd.org, could that be it?
I don't know.

Ah, another possibility.
 Did you have the following two options in your kernel?
	options	sound
	options snd_audiocs
 or if you prefer to play with kernel modules, remove above two
   options and use kldload(8).
	#kldload snd_audiocs
-- 
Regards,
Pyun YongHyeon
http://www.kr.freebsd.org/~yongari	|	yongari at freebsd.org


More information about the freebsd-sparc64 mailing list