Operating System - HP-UX
1834017 Members
2518 Online
110063 Solutions
New Discussion

Kernel build fails - unsatisfied symbols

 
SOLVED
Go to solution
TMcB
Super Advisor

Kernel build fails - unsatisfied symbols

When I try to rebuild the kernel either in SAM or mk_kernel, I get the following message :

# mk_kernel
Compiling /stand/build/conf.c...
Loading the kernel...
/usr/ccs/bin/ld: Unsatisfied symbols:
kpageoutcnt (data)

This is version 10.20 (800). I have checked the swlist, and everything appears to be configured.
11 REPLIES 11
Rainer von Bongartz
Honored Contributor

Re: Kernel build fails - unsatisfied symbols



Terry,

had this problem some time ago.
didn't find out what the problem really was but the following workaraound helped.

look in /stand/build and move all files *.o away and try building your kernel.

helped for me....

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Bill McNAMARA_1
Honored Contributor

Re: Kernel build fails - unsatisfied symbols

There is a SAM patch PHKL_18 something or other that is noted in special instruction to be deleted... it causes kernel rebuild failures.

Bill
It works for me (tm)
TMcB
Super Advisor

Re: Kernel build fails - unsatisfied symbols


I tried removing /stand/build/*.o. This left the following files :
conf.c config.mk space.h vmunix_test
Unfortunately, I still receive this error message.

I also tried removing all files in /stand/build - still same problem
Herve BRANGIER
Respected Contributor

Re: Kernel build fails - unsatisfied symbols

Hi,

It's look like an error in tunable parameters
section of /stand/system : when you modify this
file with an error and make your mk_kernel you
have this type of error.
Look this file, I think that kpageoutcnt may
be in this section and I think it's not a
parameter....

HTH

Herv?

Bill McNAMARA_1
Honored Contributor

Re: Kernel build fails - unsatisfied symbols

Follow the link and make sure you don't have the following patch installed.


http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3782-90728/B3782-90728_top.html&con=/hpux/onlinedocs/B3782-90728/00/00/29-con.html&toc=/hpux/onlinedocs/B3782-90728/00/00/29-toc.html&searchterms=kernel%7ctuning%7c10.20%7ckpageoutcnt&queryid=20010626-074854

Secondly, make sure that the kernel tunable you are modifying is valid.
Edit the tunable from SAM who will make sure it stays in an acceptable range.

If SAM doesn't present the tunable, either it is an undocummented or unsupported tunable.
Have a look on docs.hp.com for an overview of kernel tunables.

Later,
Bill
It works for me (tm)
TMcB
Super Advisor

Re: Kernel build fails - unsatisfied symbols

The only tunable parameters listed in /stand/system are :
* Tunable parameters

maxswapchunks 512
nstrpty 60

There is no mention of kpageoutcnt (data).
I don;t even know what this is.

Thanks

What I am actually trying to do is increase the swap size, and I get this error message.
To make sure it wasn't just a problem with swap, I tried changing another paramater (through SAM) but it won't let me rebuild any changes.

Thanks
Bill McNAMARA_1
Honored Contributor

Re: Kernel build fails - unsatisfied symbols

kernel tunables are done with kmtune
set getsysconf too for more info.
see /usr/sbin/km*
for more on tunables from command line.

Bill (sorry gotta rush home!)
It works for me (tm)
Vincent Fleming
Honored Contributor

Re: Kernel build fails - unsatisfied symbols

I haven't got a 10.X system handy, but on 11i kpageoutcnt appears in /usr/conf/lib/libvm.a, which is the virtual memory kernel routines. There are only 2 references to this variable, one from libfs.a (filesystems) and the other from within libvm.a.

I can't tell you what patches to apply, but if you can ensure that libvm.a is intact and the ld command line includes libvm.a when the link occurs, it should fix your problem.

You should look for patches that include libvm.a.

Good luck.
No matter where you go, there you are.
melvyn burnard
Honored Contributor
Solution

Re: Kernel build fails - unsatisfied symbols

do you have PHKL_19756 and PHKL_16751 installed on this system?
If so was the 16751 patch reinstalled AFTER the 19756?
if this is true, you may need to remove PHKL_19756, and then add in 19756 again as there were origionally dependency issues with these two patches.
quote:
Kernel build may still fail because of the following unsatisfied symbol:

kpageoutcnt (data)

Somehow the patch containing that symbol dislikes reinstalls. Just install a
newer version of this patch. The newest versions at the moment are:

[PHKL_19755/PACHRDME/English] s700 10.20 Buffer cache fixes for hangs
and performance
[PHKL_19756/PACHRDME/English] s800 10.20 Buffer cache fixes for hangs
and performance

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
TMcB
Super Advisor

Re: Kernel build fails - unsatisfied symbols

PHKL_19756 and PHKL_16751 were both installed. I removed PHKL_19756 and rebooted - this has done the trick.

I looked at the patches - the most recent of this seems to be PHKL_23174.
I downloaded this, but when I went to run it it a checksum error occured.
Do I need this installed as the system is working OK now without it?

Thanks to everyone for your help.
melvyn burnard
Honored Contributor

Re: Kernel build fails - unsatisfied symbols

PHKL_23174 has fixes foir two panic scenarios.
If you havethe checksum error, I would suggest that the patch did not download correctly.
You have the options of:
1) do nothing and see if yoy get the panics as per the patch text
2) try downloading the patch again
3) requst the patch be sent from your local HP Response Centre via tape.

HTH
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!