SUMMARY: HELP - Kernel build problem

From: Joe Spanicek <joe_at_resptk.bhp.com.au>
Date: Fri, 31 Oct 1997 09:21:18 +1100

Hi all,

Thanks to people who responded:

rosenblg_at_nyu.edu (Gary J. Rosenblum)
James Sainsbury <sainsb_j_at_shrub.chem.su.oz.au>
"Jason Neil"<Jason_Neil_at_citymax.co.uk>
Gary Jarrell <JarrellG_at_mail.dec.com>
"Dr. Tom Blinn, 603-884-0646" <tpb_at_zk3.dec.com>



The problem was compiling the kernel and getting the following error:

> cc -c -O2 -DLANGUAGE_C -g3 -G 4 -I -I. -I.. -I../include -DIDENT=GOOFY -DDEC2100_A50
> -DSWAPTYPE=1 -DUERF -DOSF -DCOMPAT_43 -DMACH -DUFS -DFFM_FS -DRT_SEM -DKERNEL -D_KERNEL -D_BSD
> -signed -Wg,-w2 -compress -no_excpt -Wg,-unroll,1 -Wb,-static -Wco,-nofloat -Olimit 3000
> -D__alpha -Umips -UMIPS -c vers.c
> rm -f vmunix vmunix.sys
> loading vmunix.sys
> ld:
> Error: Undefined:
> phys_to_kseg
> *** Exit 1 (ignored)



I tracked the problem down to "Open3D V4.5" not restoring original files back to normal
after un-installing it. The files that were affected are:

        In '/sys/BINARY' - 'pvp.mod' and 'tga.mod' which had the "phys_to_kseg" reference.
        
        In '/usr/shlib' - 'libX11.so', 'libos.so' and 'lib_dec_ffb.so' were missing.

I copied these from another identical system and everything works fine NOW.

Thanks for all the help.

Joe Spanicek



The following are responses from the above people in respective order:

-------------------------------------------------------------------------
> i believe that routine is part of pci_option_data.o, which is from the
> subset OSFBINCOM410. do you have that subset installed?
-------------------------------------------------------------------------
> phys_to_kseg
According to nm this symbol is defined in
        arch_alphapmap.mod

which is linked from
        pmap.o pmap_debug.o pmap_update.o

if this helps.

I would try using setld to delete the kernel objects and modules
(Kernel Software Development) and (Kernel Build Environmnet)
and reinstall (adding any appropriate patches).
-------------------------------------------------------------------------
maybe when you removed the open 3d components the actual files were removed
but not the entry in the config file. it tries to build the kernel but
can't find any of the build environment for open 3d and fails. does the
open 3d kit contain any kernel build components (use setld to find out) --
if so you can remove them from the config file and try the rebuild.
-------------------------------------------------------------------------
>>>boot -fl s -fi genvmunix
#bcheckrc
#cp /vmunix /vmunix.old
#sizer -n NEWSYS
#cd /sys/conf
#cp HOSTNAME HOSTNAME.old
(Compare /tmp/NEWSYS against your existing kernel and make any necessary changes)
#setld -i | grep -i open3d (To make sure that Open3d is deinstalled)
#more /sys/conf/HOSTNAME (to make sure that Open3D is not in the kernel)
#doconfig -c HOSTNAME
#cp /sys/HOSTNAME /vmunix
#reboot
-------------------------------------------------------------------------
Go into /sys/GOOFY and remove all the files. Then try a fresh

        doconfig -c GOOFY

Usually this will clean up problems like what you are seeing, unless the
Open3D kit modified some of the system inventory files and didn't put them
back the way they should have been. Booting with genvmunix won't fix the
problem if it's caused by Open3D; in that case, you might need to use the
fverify utility to figure out what kernel built inventory was trashed by
Open3D.
-------------------------------------------------------------------------
Received on Thu Oct 30 1997 - 23:35:07 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT