Operating System - HP-UX
1846469 Members
4016 Online
110256 Solutions
New Discussion

error during kernel's creation

 
maurizio_6
Occasional Contributor

error during kernel's creation

Hi,
when i run sam, for kernel configuration or when i run the km_kernel command, the system give me this error:


Generating module: krm...
Compiling conf.c...
Generating module: emcp...
Generating module: mp...
Generating module: cg...
Generating module: pn...
Loading the kernel...
Generating kernel symbol table...
Usage: bstab input_data symbol_cnt strtbl_size kernel_file output_file
*** Error exit code 1

Stop.
config: make did an exit(1)

What the meaning for it?

Regards
Maurizio
1 REPLY 1
Patrick Wallek
Honored Contributor

Re: error during kernel's creation

The following is from the ITRC Technical Knowledge Base:

HP-UX mk_kernel fails with "Ignoring -s option" error

date: 12/12/02

document description: HP-UX mk_kernel fails with "Ignoring -s option" error

document id: 2200287563

PROBLEM

The following error occurs when attempting to regenerate a kernel on an HP-UX 11.0 system:

# mk_kernel
Generating module: krm...
/usr/ccs/bin/ld: (Warning) Ignoring -s option. -r will override -s
/usr/ccs/bin/ld: (Warning) Ignoring -s option. -r will override -s
Compiling /stand/build/conf.c...
Loading the kernel...
Generating kernel symbol table...

Usage: bstab input_data symbol_cnt strtbl_size kernel_file output_file

*** Error exit code 1
Stop.
config: make did an exit(1)

What is causing this problem and how can it be corrected?

CONFIGURATION

Operating System - HP-UX
Version - 11.0

RESOLUTION

This problem was caused by the environment parameter LDOPTS that was defined with a "-s" included. This will strip the symbols of the executable and produce the error described above.

To correct this problem, unset LDOPTS before doing a mk_kernel(1M). For example:

# unset LDOPTS

# mk_kernel
Generating module: krm...
Compiling /stand/build/conf.c...
Loading the kernel...
Generating kernel symbol table...