The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 problem with building new kernel.
Author: Nelson 
Date:   20-08-00 11:34

Hi, there:

I was trying to rebuild the kernel in order to run the natd.

According to the natd manual, I added 2 lines into the
option section:

options IPFIREWALL
options IPDIVERT

and began to rebuild MYKERNEL.

The following is abstracted from the error message:
-------------------------------------------------------------------------
3.c ../../libkern/moddi3.c ../../libkern/qdivrem.c ../../libkern/
udivdi3.c ../
../libkern/umoddi3.c ioconf.c param.c vnode_if.c config.c ../../i386/i386/genass
ym.c
../../pci/if_xl.c:128: miibus_if.h: No such file or directory
mkdep: compile failed

*** Error code 1

Stop in /usr/src/sys/compile/MYKERNEL.
----------------------------------------------------------------------

Could anyone throw me a hint or something?
(I am running 4.0 release.)

Thanks a lot!!

Nelson


Reply To This Message
 
 RE: problem with building new kernel.
Author: Nelson 
Date:   20-08-00 21:56

Hello, there:

The problem is that I commented out a line in configuration file:

#device miibus . (this line is needed for 3com 3c905
ethernet card.)

Now the "make depend" passed this error but I got a new one:
-----------------------------------------------------------------------------
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
rm -f .depend
mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I- -I. -I@ -I@/../includ
e -I/usr/include /usr/src/sys/modules/accf_http/../../netinet/accf_http.c
===> agp
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
make: don't know how to make agp_if.c. Stop
*** Error code 2

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/src/sys/compile/MYKERNEL.
------------------------------------------------------------------------------

Any hint will be very appreciated!!

Thanks,

Nelson

Reply To This Message
 
 RE: problem with building new kernel.
Author: elliot 
Date:   27-08-00 12:03

if a make clean; make depend; make
doesn't work, then i'm not sure what to tell you

Reply To This Message
 
 RE: problem with building new kernel.
Author: Dan Langille 
Date:   28-08-00 12:56

Also, make sure you do a config -r if you have trouble.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org