1835085 Members
3168 Online
110073 Solutions
New Discussion

Re: Kernel

 
tigm7103105q1
Contributor

Kernel

Hi!! I'm Marcos...
I have a problem when i want to create a new kernel in hp-ux 10.20 model K580.

I want to change parameter SHMMAX, but when I run the folowing sintaxis:

# mk_kernel -s system -o /tmp/new_kernel

The Operating System send output:


Compiling conf.c...
cc: warning 480: The +ESsfc option is available only with the C/ANSI C
product; ignored
Loading the kernel...
/usr/ccs/bin/ld: Unsatisfied symbols:
lv_updatevgda
lv_readvgda
lv_sa_process_holdq
lv_sa_qrmcheck
lv_readvgdats
lv_sa_configop
lv_createvgda
lv_sa_write
lv_writevgda
lv_sa_setstale
lv_sa_done
lv_sa_config
lv_sa_missing
lv_sa_whladv
lv_sa_createvgsa
lv_sa_chk_config_opt_done
*** error exit code 1
Stop.
config: make did an exit<1>


What happen with this system.

NOTE: I have another system, and I dont have problem with this one.

I hope to help me
7 REPLIES 7
Rajeev  Shukla
Honored Contributor

Re: Kernel

Dont have much idea why this is happening but just one idea.
How about if you change the parameter through SAM and then create a new kernal(all through SAM) Does that also give you same error?

monasingh_1
Trusted Contributor

Re: Kernel

Yo could try following:

Important: create the make_recovery before doing any thing further.
save the current kernel parameters values on paper.

01. save a copy of /stand dir somewhere, save a copy of /stand/vmunix /stand/vmunix.org for safety. Reboot with vmunix.prev , delete everything from /stand/build dir, go to sam, delete all unnecessary driver from kernel and try to rebuild the kernel.See if it goes through.

02. Save /stand to some place for safety. Boot with your current vmunix or may be try with vmunix.prev, del everything under /stand/build dir. get the latest general rel 10.20 SW patch bundle available from HP,s site. Try to load the SW bundle. from the bundle, select and load all PHSS patches first, It will select some kernel patches automatically,build kernel an reboot. let it do that but do not select any PHKL patches yourself. See if it works.

03. If it goes through, then load the rest of Bundle and then reset your kernel parameters again..
hope this work..
Jose Mosquera
Honored Contributor

Re: Kernel

Hi,

Looks like you are attemtping to compile with a NOT 'gcc' or 'ANSI/C' compiler. The standard 'C' compiler that comes with the operating system is just about useless.

Try downloading from HP porting center check dependencies to each one):

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.2/
http://hpux.connect.org.uk/hppd/hpux/Gnu/make-3.79.1/

Rgds.
Zeev Schultz
Honored Contributor

Re: Kernel

Check the CCOPTS variable.Could also add
-w like this:
export CCOPTS="-w +ESsfc +ESssf"
To work around,cancel CCOPTS.ES* options are ANSI specific.
So computers don't think yet. At least not chess computers. - Seymour Cray
Zeev Schultz
Honored Contributor

Re: Kernel

By the way,Jose Maria,the standard bundled compiler IMHO is the only one that used to compile HP_UX kernels.
See:
ll /usr/bin/cc (-> /opt/ansi/bin/cc #ok.we got hp ansi cc compiler).
Ok,fine.Now lets grep for cc in /stand/build:
grep cc /stand/build/config*

config.SAM.mk: ${ORDER} +Accept TypeMismatch -a archive
config.SAM.mk:CKRN= /usr/ccs/bin
config.SAM.mk:CC= $(CKRN)/cc
config.mk: ${ORDER} +Accept TypeMismatch -a archive
config.mk:CKRN= /usr/ccs/bin
config.mk:CC= $(CKRN)/cc
config.mod:CKRN= /usr/ccs/bin
config.mod:CC= $(CKRN)/cc

Well,well:
ll /usr/ccs/bin/cc :-> ./cc_bundled.
If you don't have HP Ansi C compiler (or fixed link to gcc).cc will point to cc_bundled.The one that used to compile kernel.

So computers don't think yet. At least not chess computers. - Seymour Cray
Zeev Schultz
Honored Contributor

Re: Kernel

Marcos, I assume is some /usr/conf/lib file?Usually,unsatisfied symbols problem comes from bad/missing patches installations/dependencies.

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Ross Zubritski
Trusted Contributor

Re: Kernel

Hi Marcos.

Did you try to change the param. and regen. with SAM?

Regards,

RZ