Operating System - HP-UX
1833729 Members
2200 Online
110063 Solutions
New Discussion

Re: Kernel compiling error

 
G.G.krishnamoorthy
Occasional Advisor

Kernel compiling error

System :k570
HP-UX ver:11.00

Whenever I try to rebuild the kernel, it fails with the following message.

root#mk_kernel -v -s /tmp/system_07102002 -o /tmp/new_kernel
Building a new kernel based on template file "/tmp/system_07102002"
WARNING: No such device, tunable, or cdio pa.
Ignoring the following line.
pa
Compiling conf.c...
Loading the kernel...
ld: Unsatisfied symbol "mod_stub_tab" in file /usr/conf/lib/libdlkm.a[modinit.o]

ld: Unsatisfied symbol "static_modules" in file /usr/conf/lib/libdlkm.a[modctl.o
]
ld: Unsatisfied symbol "cdevsw_shadow" in file /usr/conf/lib/libhp-ux.a[gio_modf
uncs.o]
ld: Unsatisfied symbol "bdevsw_shadow" in file /usr/conf/lib/libufs.a[ufs_vnops.
o]
4 errors.
*** Error exit code 1

Stop.
config: make did an exit(1)
config failure.
root#

Thanks in advance.

Krishna

Krishna
1 REPLY 1
Rita C Workman
Honored Contributor

Re: Kernel compiling error

Well it could be a number of things..but the point is your present kernel is 'out-of-sync' with the libraries. May have been caused by some patches loaded.

You could try going to a previous kernel and try building from that system file and see if that will build a new kernel. And this is probably the easiest thing to do, since your present kernel is bad. (Hope you kept good copies of those files). If that works than make a good backup of your system.

Another alternative (albeit difficult) is to try and fix the libraries manually...here's a thread where this was suggested:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5090e7e60861d511abcd0090277a778c,00.html

Your other alternative is to try going forward, but that will involve calling HP for support on trying to figure out exactly where your at and how to fix what changes apparently created this bad kernel.

Just a couple thoughts,
Rita