Operating System - HP-UX
1838378 Members
4365 Online
110125 Solutions
New Discussion

Re: HP-UX 11.11 Kernel Recompile Error

 
Joe Keegan_3
Occasional Contributor

HP-UX 11.11 Kernel Recompile Error

Well it looks like itâ s my turn to see if the Forums can help me.

I have an HP-UX 11.11 system that fails when I try and recompile the kernel.

# uname -a
HP-UX qa12-hp B.11.11 U 9000/800 543720538 unlimited-user license
# /usr/lbin/sysadm/system_prep -s system
# mk_kernel -s system
Generating module: krm...
kmckintfc: cannot find file -- mod_wk.d/krm/mod.o
*** Error exit code 1

Stop.
config: make did an exit(1)

The recompile also fails via SAM.

I have looked through the forums and have tried to check everything that people have suggested. Just to run through the things I have checked

# bdf | grep stand
/dev/vg00/lvol1 255253 22432 207295 10% /stand
# ls -ld /usr/conf
dr-xr-xr-x 23 bin bin 1024 Apr 12 14:57 /usr/conf
# ls -l /usr/bin/cc
lrwxrwxrwx 1 root sys 15 Jun 11 12:11 /usr/bin/cc -> /usr/ccs/bin/cc
# ls -l /usr/bin/ld
lr-xr-xr-t 1 root sys 15 Apr 12 14:50 /usr/bin/ld -> /usr/ccs/bin/ld

Now there does seem to be one patch that is corrupt state, but I am not sure if itâ s effecting the recompile, nor how to get in â un-corruptâ

# swlist -l fileset -a state|grep -v -i -e configured -e \#

PHSS_30262.MOTIF-SHLIB corrupt
PHSS_30262.X11-FONT-AUX corrupt
PHSS_30262.X11-FONT-MIN corrupt
PHSS_30262.X11-TCH-B-MSG corrupt

I tried running swverify and swconfig to resolve the corrupt state with no luck. The filesets itâ s complaining about are installed.

Iâ m mostly a Solaris guy, but have been picking up on HP-UX, any help on resolving this issue would really be apprecia
9 REPLIES 9
Robert-Jan Goossens
Honored Contributor

Re: HP-UX 11.11 Kernel Recompile Error

Hi Joe,

I think you get these errors because you do not have the latest "linker tools" patch. But i'm not completly shore.

http://www1.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHSS_30049&context=hpux:800:11:11

check what version is installed.
# swlist -l patch | grep -i linker

Hope this helps,
Robert-Jan
Robert-Jan Goossens
Honored Contributor

Re: HP-UX 11.11 Kernel Recompile Error

by the way, PHSS_30262 has a few depending patches.

PHCO_25569
PHCO_30030

Could you check if they are installed ?

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: HP-UX 11.11 Kernel Recompile Error

I would check the system for this file:

kmckintfc: cannot find file -- mod_wk.d/krm/mod.o

Then I would swremove all of the corrupt patches, and reinstall, resolving all issues with that set and dependencies.

Once this is resolved, i bet the missing file will be present. if not, restore it and try again.

Rule of thumb: NEVER leave corrupt patches or software on your system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Joe Keegan_3
Occasional Contributor

Re: HP-UX 11.11 Kernel Recompile Error

Thanks all for the responses,

I installed PHSS_30049 with no effect. I did previously make sure PHCO_25569 & PHCO_30030 were installed, sorry I omitted that.

I uninstalled PHSS_30262 and tried to reinstall it, but it was encountering errors in the install. I tried installing the latest version of PHSS_30262, which is PHSS_30787, and I was successful.

# swlist | grep PH
PHCO_25569 1.0 libc cumulative header file patch
PHCO_27780 1.0 HP-UX Patch Tools
PHCO_29960 1.0 Pthread enhancement and fixes
PHCO_30030 1.0 libc cumulative patch
PHSS_26946 1.0 HP aC++ -AA runtime libraries (aCC A.03.37)
PHSS_28756 1.0 HP aC++ Compiler (A.03.45)
PHSS_30049 1.0 ld(1) and linker tools cumulative patch
PHSS_30504 B.11.11.23 Xserver cumulative patch
PHSS_30787 1.0 X/Motif Runtime Patch
# swlist -l fileset -a state|grep -v -i -e configured -e \#

#

check_patches now runs clean , minus an error regarding the version of swconfig.

Recompiling still fails, but with a different error. Itâ s complaining about another file.

# mk_kernel -s system
Generating module: krm...
ld: I/O error, file "mod_wk.d/krm/mod_conf.o": No such file or directory
Fatal error.
*** Error exit code 1

Stop.
config: make did an exit(1)

Iâ m assuming that mod.o and mod_conf.o are created during the recompile and are not simply copied from some source directory?

Any other ideas?

Thanks
Sridhar Bhaskarla
Honored Contributor

Re: HP-UX 11.11 Kernel Recompile Error

Hi,

krm is part of EMS. So, make sure you have OnlineDiag bundle installed and then generate the kernel.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Robert-Jan Goossens
Honored Contributor

Re: HP-UX 11.11 Kernel Recompile Error

Cheryl Griffin
Honored Contributor

Re: HP-UX 11.11 Kernel Recompile Error

What is the output from:
# swlist -l fileset |grep linker

You should see something similar to:
PHSS_28435 s700_800 11.11 linker startup code / SLLIC ELF support

Also if you have PHCO_27780 installed, run check_patches and check the /var/adm/sw/swagent.log for messages.


"Downtime is a Crime."
Joe Keegan_3
Occasional Contributor

Re: HP-UX 11.11 Kernel Recompile Error

Thank you all for the continued help, unfortunately I have not seem to have made much progress. The mk_kernel command is still failing with the same error.

I have loaded all the patches suggested here and they are all loaded correctly.

# swlist | grep PH
PHCO_25569 1.0 libc cumulative header file patch
PHCO_25887 1.0 Software Distributor Cumulative Patch
PHCO_27780 1.0 HP-UX Patch Tools
PHCO_29960 1.0 Pthread enhancement and fixes
PHCO_30030 1.0 libc cumulative patch
PHSS_26946 1.0 HP aC++ -AA runtime libraries (aCC A.03.37)
PHSS_28435 1.0 linker startup code / SLLIC ELF support
PHSS_28756 1.0 HP aC++ Compiler (A.03.45)
PHSS_30049 1.0 ld(1) and linker tools cumulative patch
PHSS_30504 B.11.11.23 Xserver cumulative patch
PHSS_30787 1.0 X/Motif Runtime Patch
# swlist -l fileset -a state|grep -v -i -e configured -e \#

EMS-KRMonitor.KRMON-RUN installed
# /usr/contrib/bin/check_patches
Obtaining information on installed patches
Checking installed version of /usr/sbin/swconfig
Checking for invalid patches
Checking object module checksums for active patch fileset 135 of 135
Checking patch filesets for active patch 40 of 40
Checking state for patch fileset 161 of 161
Checking patch_state for patch fileset 161 of 161
Running swverify on all patch filesets, this may take several minutes
RESULT: No problems found, review /tmp/check_patches.report for details.

I did see an error while trying to load the latest version OnLineDiag,

â ERROR: Cannot configure a dlkm driver.â

I tried to look for information on this error and I only found this document http://www.software.hp.com/products/IUX/faq.html#d0e1233.

While the doc refers to Ignite-UX, it might be related, or maybe not.

It states â The reason for this is when the recovery archive was created the kernel the system was running was not created correctly (the DLKM information was out of sync). You should always use kmupdate to move a new kernel into place after creating it with mk_kernel, this will move the DLKM information into place when the new vmunix is moved into place at the next shutdown.

To solve this problem create a kernel in the way described above then recreate the recovery tape or network recovery archive. You should not see this message the next time you use the new tape or network recovery archive (the old tape or network recovery archive will always show this problem).â

Unfortunately I canâ t do itâ s solution since I can not generate a Kernel in the first place.

Also, I couldnâ t find Doc Id: S3100003004. I did a search for the string and the doc ID, both in itrc and Google with no luck.

Any other ideas? Iâ m starting to think to reinstall the OS, but the system is used quite a bit. Than
Joe Keegan_3
Occasional Contributor

Re: HP-UX 11.11 Kernel Recompile Error

Just FYI, I reinstalled the OS and that fixed it.

Thanks all for your help.

Joe