Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Mar 2000 21:14:35 -0800
From:      Anthony Bourov <abourov@alt.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Q: Having problems with upgrading old aout kernel.
Message-ID:  <4.2.0.58.20000304190520.0099da30@mail3.addr.com>

next in thread | raw e-mail | index | archive | help
Hi,

I have a server running 3.0-RELEASE aout kernel, and due to the many 
security and stability issues I need to upgrade it to the latest stable. 
This is a live system, and I would like to take the safest approach 
possible. What I have tried to do is this:
Grab the latest STABLE source tree from 
ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-stable/src.tar
and using the "make upgrade" or "make aout-to-elf" command. I am guessing 
the version difference is too much, or something is wrong as I get problems 
during the build. First it was bailing out at "bin/df" (which on it's own 
builds fine) which I simply removed from the build tree, but then later on 
in the build it complains about my "X11R6" library, I included a portion of 
make's output at the bottom of this message.
Can I avoid this problem? Is there a different way to do this which is also 
safe? What if I do the build on a different server (one which has the 
latest OS) then copy the "obj" directory and do the install?

Thank you very much for any help you can offer,
Anthony Bourov

PS: Please reply to my email address as I often miss articles on the 
mailing list.

Here is partial output from "make upgrade" where is stops (scroll to the 
bottom, I may have included too much):
===> usr.bin/doscmd
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/doscmd_loader.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/crt0.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/AsyncIO.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/ParseBuffer.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/bios.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/callback.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/cpu.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/dos.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/cmos.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/config.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/cwd.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/debug.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/disktab.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/doscmd.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/ems.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/emuint.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/exe.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/i386-pinsn.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/int.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/int10.c
/usr/src/usr.bin/doscmd/int10.c: In function `int10':
/usr/src/usr.bin/doscmd/int10.c:146: warning: passing arg 4 of 
`unknown_int3' fr
om incompatible pointer type
/usr/src/usr.bin/doscmd/int10.c:185: warning: passing arg 5 of 
`unknown_int4' fr
om incompatible pointer type
/usr/src/usr.bin/doscmd/int10.c:190: warning: passing arg 4 of 
`unknown_int3' fr
om incompatible pointer type
/usr/src/usr.bin/doscmd/int10.c:204: warning: passing arg 4 of 
`unknown_int3' fr
om incompatible pointer type
/usr/src/usr.bin/doscmd/int10.c:269: warning: passing arg 1 of `dump_regs' from
incompatible pointer type
/usr/src/usr.bin/doscmd/int10.c:274: warning: passing arg 3 of 
`unknown_int2' fr
om incompatible pointer type
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/int13.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/int14.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/int16.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/int17.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/int1a.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/int2f.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/intff.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/mem.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/mouse.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/net.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/port.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/setver.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/signal.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/timer.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/trace.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/trap.c
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/tty.c
/usr/src/usr.bin/doscmd/tty.c: In function `debug_event':
/usr/src/usr.bin/doscmd/tty.c:737: warning: passing arg 1 of `dump_regs' 
from in
compatible pointer type
/usr/src/usr.bin/doscmd/tty.c: In function `tty_read':
/usr/src/usr.bin/doscmd/tty.c:1745: warning: passing arg 1 of `fake_int' 
from in
compatible pointer type
/usr/src/usr.bin/doscmd/tty.c: In function `tty_peek':
/usr/src/usr.bin/doscmd/tty.c:1787: warning: passing arg 1 of `fake_int' 
from in
compatible pointer type
/usr/src/usr.bin/doscmd/tty.c: In function `video_init':
/usr/src/usr.bin/doscmd/tty.c:2000: warning: passing arg 2 of 
`register_callback
' from incompatible pointer type
/usr/src/usr.bin/doscmd/tty.c: In function `video_bios_init':
/usr/src/usr.bin/doscmd/tty.c:2212: warning: passing arg 2 of 
`register_callback
' from incompatible pointer type
cc -nostdinc -O -pipe -I. -I/usr/X11R6/include 
-DDISASSEMBLER   -I/usr/obj/aout/
usr/src/tmp/usr/include -c /usr/src/usr.bin/doscmd/xms.c
ld -N -Bstatic -T 110000 -o doscmd.kernel   crt0.o AsyncIO.o ParseBuffer.o 
bios.
o callback.o cpu.o dos.o cmos.o config.o cwd.o debug.o disktab.o doscmd.o ems.o
emuint.o exe.o i386-pinsn.o int.o int10.o int13.o int14.o int16.o int17.o 
int1a.
o int2f.o intff.o mem.o mouse.o net.o port.o setver.o signal.o timer.o 
trace.o t
rap.o tty.o xms.o -L/usr/X11R6/lib -lX11 
-L/usr/obj/aout/usr/src/tmp/usr/lib/aou
t -lgcc -lc
ld: /usr/X11R6/lib/libX11.a(): bad magic
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.2.0.58.20000304190520.0099da30>