Operating System - HP-UX
1830204 Members
13130 Online
109999 Solutions
New Discussion

building a new kernel getting errors

 
Ken Penland_1
Trusted Contributor

building a new kernel getting errors

Trying to rebuild the kernel using sam on an rp8400 running HPUX 11.i, I get the following error. Anyone have any ideas?

Cannot build a kernel using /usr/sbin/config. The standard output of
the command is shown below:
ld: Duplicate symbol "shminit" in files conf.SAM.o and
/usr/conf/lib/libvm.a[sysV_shm.o]
ld: Duplicate symbol "shm_fork_backout" in files conf.SAM.o and
/usr/conf/lib/libvm.a[sysV_shm.o]
ld: Duplicate symbol "detachshm" in files conf.SAM.o and
/usr/conf/lib/libvm.a[sysV_shm.o]
ld: Duplicate symbol "shm_fork" in files conf.SAM.o and
/usr/conf/lib/libvm.a[sysV_shm.o]
ld: Duplicate symbol "shmat" in files conf.SAM.o and
/usr/conf/lib/libvm.a[sysV_shm.o]
ld: Duplicate symbol "shmdt" in files conf.SAM.o and
/usr/conf/lib/libvm.a[sysV_shm.o]
ld: Duplicate symbol "oshmctl" in files conf.SAM.o and
/usr/conf/lib/libvm.a[sysV_shm.o]
ld: Duplicate symbol "shmctl" in files conf.SAM.o and
'
7 REPLIES 7
Kent Ostby
Honored Contributor

Re: building a new kernel getting errors

This problem is generally caused by setting the shmem variable to 0.

Change the value to 1 and the problem should go away.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Ken Penland_1
Trusted Contributor

Re: building a new kernel getting errors

Good one, now I get a different error. I thought perhaps you were on the right track, in that something I changed was causing the problem, so I backed out, and went in fresh, and only changed one thing to cause the rebuild, but it still failed

I only changed dbc_min_pct from 5 to 2

and I got the below...to be sure, I went in and changed buffpages by 1 number and it still came up with the following

Cannot build a kernel using /usr/sbin/config. The standard output of
the command is shown below:
ld: Unsatisfied protected symbol "ulm_ioctl" in file
"mod_wk.d/hpap/smod.o"
ld: Unsatisfied protected symbol "ulm_deregister" in file
"mod_wk.d/hpap/smod.o"
ld: Unsatisfied protected symbol "ulm_aio_strategy" in file
"mod_wk.d/hpap/smod.o"
ld: Unsatisfied protected symbol "ulm_open" in file
"mod_wk.d/hpap/smod.o"
ld: Unsatisfied protected symbol "ulm_close" in file
"mod_wk.d/hpap/smod.o"
ld: Unsatisfied protected symbol "ulm_aio_cancel" in file
"mod_wk.d/hpap/smod.o"
ld: Unsatisfied protected symbol "ulm_aio_mincnt" in file
"mod_wk.d/hpap/smod.o"
ld: Unsatisfied protected symbol "ulm_register" in file
'
Devender Khatana
Honored Contributor

Re: building a new kernel getting errors

Hi,

The value defined for dbc_min_pct in within the limit & surely is not the reason for the error. Possiblly there are some other values which are causing this.Can you load a template & then try to chnage dbc_min_pct to 2.

HTH,
Devender
Impossible itself mentions "I m possible"
Steven E. Protter
Exalted Contributor

Re: building a new kernel getting errors

Do you have a backup kernel and associated system files you can try out that you know work?

My thinking is something is missing in the /stand filesystem. If thats true your last good kernel won't re-compile anyway. You have a backup of /stand and/or its not full?

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
Sandman!
Honored Contributor

Re: building a new kernel getting errors

Try rebuilding the kernel from the command line interface instead of sam.

cheers!
Ken Penland_1
Trusted Contributor

Re: building a new kernel getting errors

same errors..doing it manually it goes through generating a bunch of modules, but shortly after it says "Loading kernel" it dumps the same errors.

Unfortunatly I cannot restore the kernel from a good backup because this technically is a new box. we are migrating from one system to another, this box had a vanilla load put on it, and all the data was restored to it, however oracle would not start up. We saw that the kernel params were not set correctly for oracle so went in to make the change when we noticed this problem. Looks like we will have to start over.

Thanks all
'
hao_3
Valued Contributor

Re: building a new kernel getting errors

mv /stand/build contents to other directory
then change kernel value again.
Good lucky