Recompiling kernel and buildworld problems

2002-11-13 Thread Jason Borkowsky


I am trying to both update my kernel sources with the latest patches by
using cvsup and also rebuild my kernel. I am following the EXACT
instructions in the FreeBSD handbook, but can't get anything to work.
Anybody have any idea why.

For updating the kernel with the latest sources, I configured and ran
cvsup and got all updates successfully (I am going from RELENG_4_6_2
to RELENG_4_6-p4). I then remove all files under /usr/obj, cd to /usr/src,
and run a make buildworld as in the handbook. When I do this, I get the
following error:

gen-perf.o: In function Gen_Perf::Gen_Perf()':
gen-perf.o(.text+0x195): undefined reference to _Unwind_Resume'

main.o: In function main':
main.o(.text+0x6c): undefined reference to _Unwind_Resume'
main.o(.eh_frame+0x12): undefined reference to __gxx_personality_v0'
options.o(.eh_frame+0x11): undefined reference to __gxx_personality_v0'
read-line.o: In function Read_Line::readln_aux(int)':
read-line.o(.text+0xb8): undefined reference to operator new[](unsigned)'
read-line.o(.eh_frame+0x11): undefined reference to __gxx_personality_v0'
*** Error code 1

Stop in /usr/src/gnu/usr.bin/gperf.
*** Error code 1

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

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

Stop in /usr/src.


Then, if I go to rebuild my kernel instead, I follow what they have in the
handbook again:

1.Change to the /usr/src directory.

 # cd /usr/src

   2.Compile the kernel.

 # make buildkernel KERNCONF=MYKERNEL

# cd /usr/src
# make buildkernel KERNCONF=/usr/src/sys/i386/conf/MYKERNEL
 ERROR: Missing kernel configuration file(s)
(/usr/src/sys/i386/conf/MYKERNEL).
*** Error code 1

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

Stop in /usr/src.


It tells me my kernel configuration file is missing. But, yet, here it is:

# more /usr/src/sys/i386/conf/MYKERNEL

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.43 2002/05/23 17:04:01
obrien Exp $

machine i386
cpu I686_CPU
ident   TCPNS
maxusers32
...etc...


Anybody know what I am doing wrong that I can't get anything to work? Any
help appreciated. Thanks!


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



Re: Recompiling kernel and buildworld problems

2002-11-13 Thread Jason Borkowsky

 Doublecheck your cvs tags in the supfile and try again.
 As for 2nd issue, methinks the kernel gets built from the source
 code under /usr/obj during buildworld...mergemaster
 sequence.

That may explain the second. As for the first, my tag is RELENG_4_6, and it
downloaded a lot of files (took about 45 minutes for the download to
finish), so it seems to be a valid tag. Let me know if I can supply any more
info. Thanks!


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



Headless FreeBSD box - Serial Redirection Not Working

2002-09-19 Thread Jason Borkowsky


Greetings! I have FreeBSD 4.6.2-RELEASE running on a rackmount chassis, and
I want to convert it to a headless box, with all console output redirected
to the serial port. I have followed the directions in the FreeBSD handbook
as follows:

In my kernel, I have the flag 0x10 set on serial port 1 to make it a
console:

device  sio0at isa? port IO_COM1 flags 0x10 irq 4


In my /boot.config file, I have the -P option set to probe for keyboard on
booting, and then redirect the console appropriately.

Now when I go to reboot the machine (with the keyboard removed), I see the
following on my dumb terminal on the serial port

/boot.config: -P
Keyboard: no

I then get the message saying Press [ENTER] to boot kernel or any other key
to enter single user mode. I press enter, then I see:

Booting kernel...

I then do not get any more display on the serial port, and there is no
display on the monitor, either. However, the box boots fine and I can get
into it via telnet. The problem is I lost my console display on both the
serial port and the monitor. Any idea why it stopped displaying to the
serial port after leaving the boot loader and starting to boot the kernel?
Thanks!


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