Operating System - HP-UX
1834415 Members
2117 Online
110067 Solutions
New Discussion

swinstall fails at mk_kernel

 
SOLVED
Go to solution
Michael Deely
Advisor

swinstall fails at mk_kernel

Trying to install QPK1100 (B.11.00.64.4). Getting the following failure/error in the swinstall.log file:


NOTE: Building a new kernel based on template file "/stand/system"
Generating module: krm...
Compiling /stand/build/conf.c...
Loading the kernel...
ld: Unsatisfied symbol "prf_klog_getcount" in file /usr/conf/lib/libhp-ux.a[klog.o]
ld: Unsatisfied symbol "prf_klog_getstring" in file /usr/conf/lib/libhp-ux.a[klog.o]
ld: Unsatisfied symbol "pwrite" in file /usr/conf/lib/libhp-ux.a[scall_stubs.o]
ld: Unsatisfied symbol "lock_claim" in file /usr/conf/lib/liblvm.a[lv_hp.o]
ld: Unsatisfied symbol "set_timedout" in file /usr/conf/lib/libhp-ux.a[safety_time.o]
ld: Unsatisfied symbol "pread" in file /usr/conf/lib/libhp-ux.a[scall_stubs.o]
ld: Unsatisfied symbol "lock_disown" in file /usr/conf/lib/liblvm.a[lv_hp.o]
7 errors.
*** Error exit code 1

Stop.
make failure.
ERROR: The command "/usr/sbin/mk_kernel", which is used to rebuild
the kernel, has failed. Because kernel-related filesets were
installed, this command must be executed by "swinstall",
without failures, before the load can continue. Check the
above output for details about the failure.
NOTE: The Install Phase has suspended. Check the above output for
reasons.


Any ideas? Maybe need to restore /usr/conf/lib/liblvm.a?
6 REPLIES 6
Sundar_7
Honored Contributor

Re: swinstall fails at mk_kernel

Try to rebuild the kernel manually from the command line and see if that helps

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# mk_kernel -s system
# kmupdate
# mv /stand/system /stand/system.prev
# mv system ../
# cd /
# /usr/sbin/shutdown -r -y 0
Learn What to do ,How to do and more importantly When to do ?
Michael Deely
Advisor

Re: swinstall fails at mk_kernel

Same thing:

<<>>> mk_kernel -s system
Generating module: krm...
Compiling conf.c...
Loading the kernel...
ld: Unsatisfied symbol "prf_klog_getcount" in file /usr/conf/lib/libhp-ux.a[klog.o]
ld: Unsatisfied symbol "prf_klog_getstring" in file /usr/conf/lib/libhp-ux.a[klog.o]
ld: Unsatisfied symbol "pwrite" in file /usr/conf/lib/libhp-ux.a[scall_stubs.o]
ld: Unsatisfied symbol "lock_claim" in file /usr/conf/lib/liblvm.a[lv_hp.o]
ld: Unsatisfied symbol "set_timedout" in file /usr/conf/lib/libhp-ux.a[safety_time.o]
ld: Unsatisfied symbol "pread" in file /usr/conf/lib/libhp-ux.a[scall_stubs.o]
ld: Unsatisfied symbol "lock_disown" in file /usr/conf/lib/liblvm.a[lv_hp.o]
7 errors.
*** Error exit code 1

Stop.
config: make did an exit(1)
Sundar_7
Honored Contributor

Re: swinstall fails at mk_kernel

Sometimes this could possibly refer to a corrupt patch

# check_patches

and refer the /tmp/check_patches.report file

# swlist -l fileset -a state | grep -v configured | grep -v "^#"

Do you see any ouput ?
Learn What to do ,How to do and more importantly When to do ?
Michael Deely
Advisor

Re: swinstall fails at mk_kernel

from check_patches.report:

The following patch filesets are in the corrupt state:

PHSS_29646.OVOPC-SOL-CLT
PHSS_29767.OVOPC-LIN-CLT

<<>>> swlist -l fileset -a state | grep -v configured | grep -v "^>

HPSecurityBul253.INETSVCS-RUN installed
PHKL_18543.C-INC installed
PHKL_18543.CORE-KRN installed
PHKL_18543.CORE2-KRN installed
PHKL_18543.KERN2-RUN installed
PHKL_18543.VXFS-ADV-KRN installed
PHKL_18543.VXFS-BASE-KRN installed
PHKL_18543.VXFS-PRG installed
PHKL_20016.CORE2-KRN installed
PHKL_26404.CORE2-KRN installed
PHKL_28171.KERN2-RUN installed
PHKL_28314.CORE2-KRN installed
PHKL_28552.VXFS-ADV-KRN installed
PHKL_28632.VXFS-BASE-KRN installed
PHKL_28800.C-INC installed
PHKL_28800.CORE2-KRN installed
PHKL_28800.KERN2-RUN installed
PHKL_28944.CORE2-KRN installed
PHKL_29011.CORE2-KRN installed
PHKL_29080.C-INC installed
PHKL_29080.CORE-KRN installed
PHKL_29080.CORE2-KRN installed
PHKL_29080.KERN2-RUN installed
PHKL_29247.C-INC installed
PHKL_29247.CORE-KRN installed
PHKL_29247.CORE2-KRN installed
PHKL_29247.KERN2-RUN installed
PHKL_29256.C-INC installed
PHKL_29256.CORE-KRN installed
PHKL_29256.CORE2-KRN installed
PHKL_29346.CORE2-KRN installed
PHKL_29467.CORE2-KRN installed
PHKL_29494.CORE2-KRN installed
PHKL_29494.KERN2-RUN installed
PHKL_29648.C-INC installed
PHKL_29648.CORE-KRN installed
PHKL_29648.CORE2-KRN installed
PHNE_29519.CORE2-KRN installed
PHSS_29646.OVOPC-SOL-CLT corrupt
PHSS_29767.OVOPC-LIN-CLT corrupt
SPI-DATAPROTECTOR-OVO.SPI-DP-SRV-HP corrupt
UXBKP-B-03-00.UXBKP-B-03-00 installed


Sundar_7
Honored Contributor
Solution

Re: swinstall fails at mk_kernel

Try removing the corrupt patches first. Since they are SubSystem Patches, I dont believe that would require a kernel rebuild.
Learn What to do ,How to do and more importantly When to do ?