Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 2003 19:59:00 -0700
From:      "Derrick Ryalls" <ryallsd@datasphereweb.com>
To:        "'Kris Kerwin'" <snoopy248th@ameritech.net>, <freebsd-questions@freebsd.org>
Subject:   RE: Newbie Right of Passage -- Kernel Compilation Problems :-)
Message-ID:  <007a01c341d8$3bac6100$0200a8c0@bartxp>
In-Reply-To: <200307031829.15638.snoopy248th@ameritech.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hello all,
>=20
> I have forwarded a message that's about two weeks old from=20
> the -newbies list. =20
> As you'll see, the problem is related to kernel compilation.
>=20
> One bit of update to this old message:
>=20
> I got wise to it (slightly), and decided that despite the=20
> fact that I didn't=20
> have an ISA card, it might be intuitive to add the line:
>=20
> 	device		isa
>=20
> to my kernel config file, seeing as how the file 'npx.c' is=20
> contained in a=20
> directory named 'isa.'  Thinking I had some sort of sourcecode level=20
> dependency solved, I proudly attempted to recompile.  Fate=20
> had other ideas,=20
> and the compile failed again, this time before reaching=20
> npx.c.  Here's the=20
> error:
>=20
> 	In file included from=20
> /usr/target/src/sys/dev/sound/pcm/sound.h                          =20
> :98,
>                  from=20
> /usr/target/src/sys/dev/sound/isa/sbc.c:2                    =20
>               =20
> 8:
> /usr/target/src/sys/dev/sound/pcm/channel.h:69:24:=20
> channel_if.h                                   =20
> : No such file or directory
> mkdep: compile failed

Do you have device pcm in your kernel?  I think that was the solution
for me with that error

>=20
> Clearly, this smacks of problems with the isa driver.
>=20
> Again, thanks for your help.
>=20
> Kris Kerwin
>=20
>=20
> ----------  Forwarded Message  ----------
>=20
> Subject: Newbie Right of Passage -- Kernel Compilation Problems :-)
> Date: Tuesday 17 June 2003 10:56 pm
> From: Kris Kerwin <snoopy248th@Ameritech.Net>
> To: freebsd-newbies@freebsd.org
>=20
> Hello all,
>=20
> This might be more of a question for the freebsd-questions=20
> mailing list, but, knowing my luck, I probably just made a=20
> newbie mistake.  :-)
>=20
> While compiling my kernel (using the 5.1-RELEASE source), I=20
> ran into an error while trying to compile=20
> /usr/src/sys/i386/isa/npx.c.  I did my homework, and learned=20
> that NPX is one of those device drivers that you really can't=20
> live without (it takes care of Floating Point Math), so, I=20
> can't just comment that line out of my kernel config.
>=20
> The error?  I cut the output of 'make buildkernel =
KERNCONF=3DMYKERNEL':
>=20
> 	cc1: warnings being treated as errors
> 	/usr/target/src/sys/i386/isa/npx.c:1075: warning:=20
> `npx_driver' defined but not used
> 	/usr/target/src/sys/i386/isa/npx.c:1081: warning:=20
> `npx_devclass' defined but not used
>=20
> I resynced my source tree, and tried to recompile;  no joy,=20
> same errors.
>=20
> I tried running with the -k argument to ignore errors, and it=20
> told me at the end of the compile that making 'all' failed.
>=20
> I tried the traditional '/usr/sbin/config' 'make depend'=20
> 'make' 'make install', still got teh same errors.
>=20
> I tried looking at the source for npx.c itself, and couldn't=20
> make heads or tales of it.  :-) ... I'm more of an end-user=20
> than a developer, the only tutorial I've done is 'Hello=20
> World!'  I did 'grep -n' the file and searched for those two=20
> functions, and did find them, but wasn't sure if I should=20
> risk commenting them out.  My luck, my mistake was made long=20
> before it got to the source code.
>=20
> As of yet, I havn't been able to find an FAQ with an answer=20
> to this one, and no amount of googling the rest of the=20
> internet or freebsd.org has been able to help me either.
>=20
> Any ideas?  Did I just make another goof?  Thanks for all of=20
> your help.
>=20
> Kris Kerwin
>=20
> _______________________________________________
> freebsd-newbies@freebsd.org mailing list=20
> http://lists.freebsd.org/mailman/listinfo/free>; bsd-newbies
> To=20
> unsubscribe, send any mail to=20
> "freebsd-newbies-unsubscribe@freebsd.org"
>=20
> -------------------------------------------------------
>=20
> _______________________________________________
> freebsd-questions@freebsd.org mailing list=20
> http://lists.freebsd.org/mailman/listinfo/free>; bsd-questions
>=20
> To unsubscribe, send any mail to=20
> "freebsd-questions-unsubscribe@freebsd.org"
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007a01c341d8$3bac6100$0200a8c0>