Re: building kernel problem w/ linux_proto.h

2002-01-06 Thread Brian T . Schellenberger

On Sunday 06 January 2002 10:28 am, parv wrote:
> hi,
>
> i cvsup'd old sources (4-stable oct 13 2001) to current (4-stable
> 2002.01.05.15.45.19).  at this point i am stuck at errors w/
> linux_proto.h  -- which had been reported at least since nov. 2001
> to this month.
>
> first i ran make cleandir in /usr/src, removed /usr/obj/*, and tried
> to build kernel.  after first snag, i searched the internet  which
> indicated to read src/UPDATING.
>
> well, first i did "make modules-clean" in
> src/sys/compile/$KERNCONF as i do not have MODULES_WITH_WORLD=yes in
> /etc/make.conf.  after that when i tried again, it failed.  so i
> tried again after running "make cleandir" in src/sys/modules/linux
> w/o any success.
>
> at this point would above two steps help if i revert to earlier
> sources, and then back to current -stable?  any other pointers?


This is probably a more subtle fix than this, but the following is what 
finally worked for me:

rm -r /usr/obj
rm -r /usr/src
cvsup /root/sup/conf
ln -s /root/BTS /usr/src/sys/i386/conf

CAUTION1: This wipes out your kernel configuration.  I keep mine in /root all 
the time (I back up /root but not /usr/src), so I could just re-link it after 
the wipe (my kernel config is called BTS).  If you don't, stuff it away 
someplace safe.
CAUTION2: Without a broadband, this would be tiresome--it causes the entire 
source to be re-downloaded from the net.
NOTE: There is almost certainly a more subtle solution.  But if you have a 
fast connection, just doing the above is probably a lot easier & less 
frustrating than tracking it down.




-- 
Brian T. Schellenberger . . . . . . .   [EMAIL PROTECTED] (work)
Brian, the man from Babble-On . . . .   [EMAIL PROTECTED] (personal)
http://www.babbleon.org

---> Free Dmitry Sklyarov!  (let him go home)  <---

http://www.eff.org http://www.programming-freedom.org 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: building kernel problem w/ linux_proto.h

2002-01-06 Thread Jay Sachs

The UPDATING instructions also didn't work for me, though I did this 
over a month ago. I seem to recall that

   rm -rf /usr/src/sys/modules/linux /usr/src/sys/compat/linux

followed by a cvsup; make buildworld && make buildkernel got things 
going again. A bit of a sledgehammer, I admit.

jay

parv wrote:

> in message <[EMAIL PROTECTED]>, 
> wrote M. Warner Losh thusly...
> 
>>In message: <[EMAIL PROTECTED]>
>>parv <[EMAIL PROTECTED]> writes:
>>
> ...
> 
>>:   well, first i did "make modules-clean" in src/sys/compile/$KERNCONF
>>:   as i do not have MODULES_WITH_WORLD=yes in /etc/make.conf.  after
>>:   that when i tried again, it failed.  so i tried again after running
>>:   "make cleandir" in src/sys/modules/linux w/o any success.
>>
>>If you are building the kernel by hand, try rm -rf modules in
>>src/sys/compile/$KERNCONF.
>>
> 
> yes, sometimes i build kernel by hand; and since 4-stable, i build
> kernel w/ world every time via KERNCONF.
> 
> i did try that; didn't work.  then i tried after obliterating the
> src/sys/compile/$KERNCONF, that didn't work either.  unless,
> somebody has any other option, i will try w/ clean cvsup'd "src"
> tree.
> 
> before i do that, is there anything else that i could do manually?
> 
>  - parv
> 
> 




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: building kernel problem w/ linux_proto.h

2002-01-06 Thread parv

in message <[EMAIL PROTECTED]>, 
wrote Brian T. Schellenberger thusly...
>
> On Sunday 06 January 2002 10:28 am, parv wrote:
> > hi,
> >
> > i cvsup'd old sources (4-stable oct 13 2001) to current (4-stable
> > 2002.01.05.15.45.19).  at this point i am stuck at errors w/
> > linux_proto.h
...
> > first i ran make cleandir in /usr/src, removed /usr/obj/*, and tried
> > to build kernel.  after first snag, i searched the internet  which
> > indicated to read src/UPDATING.
> >
> > well, first i did "make modules-clean" in
> > src/sys/compile/$KERNCONF as i do not have MODULES_WITH_WORLD=yes in
> > /etc/make.conf.  after that when i tried again, it failed.  so i
> > tried again after running "make cleandir" in src/sys/modules/linux
> > w/o any success.
> 
> This is probably a more subtle fix than this, but the following is what 
> finally worked for me:
> 
> rm -r /usr/obj
> rm -r /usr/src
> cvsup /root/sup/conf
> ln -s /root/BTS /usr/src/sys/i386/conf
...
> CAUTION2: Without a broadband, this would be tiresome--it causes the entire 
> source to be re-downloaded from the net.

you know what, that's exactly what i am doing right now... it
started at 2.43p edt, and currently cvsup is downloading
src/contrib/ncurses; time now is 6.23p.  a long way to go on dial up
connection.


> NOTE: There is almost certainly a more subtle solution.  But if you have a 
> fast connection, just doing the above is probably a lot easier & less 
> frustrating than tracking it down.

i would sure hope that somebody else will track it down, as doing
fresh cvsup of src tree needs patience, at least on dial up
connection.

thanks brian.


 - parv

-- 
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message