Operating System - HP-UX
1844614 Members
2828 Online
110233 Solutions
New Discussion

Re: Unable to build kernel in Sam

 
james gould
Frequent Advisor

Unable to build kernel in Sam

Made a kernel change t o Max_Thread_Proc from 256 to 1000 and get the following error:
Cannot build a kernel using /usr/sbin/config. The standard output of
the command is shown below:

Cc /usr/conf/sys/types.h line 457 error 1000
Unexpected symbol “fd_mask”

Stop.
config: make did an exit(1)
The command exited with exitcode -71.

4 REPLIES 4
Sundar_7
Honored Contributor

Re: Unable to build kernel in Sam

Oh well, good ol' SAM. Try it from the command line

# cd /stand/build
# rm *
# /usr/lbin/sysadm/system_prep -s system
# kmtune -s max_thread_proc=1000 -S system
# mk_kernel -s system
# kmupdate
# cp -p /stand/system /stand/system.prev
# cp -p system /stand
# cd /
# /usr/sbin/shutdown -r -y 0
Learn What to do ,How to do and more importantly When to do ?
Dennis Handly
Acclaimed Contributor

Re: Unable to build kernel in Sam

>Sundar: Try it from the command line

This may fail the same way?

It appears there is something wrong with the header files or with -Ds passed in to compile.
Sundar_7
Honored Contributor

Re: Unable to build kernel in Sam

Trust me, this will most probably work from the command line.

The key is to remove the old files from /stand/build before trying to rebuild.
Learn What to do ,How to do and more importantly When to do ?
james gould
Frequent Advisor

Re: Unable to build kernel in Sam

Tried to run this manually and still get the same error. Removed everything in /stand/build and used the manual commands outline here and still get the same error message.