Operating System - HP-UX
1849302 Members
6233 Online
104042 Solutions
New Discussion

Unable to regen kernel on HP-UX 11.11

 
Mr. John Kerr
Occasional Advisor

Unable to regen kernel on HP-UX 11.11

When trying to regen our kernel i get the error below:

Cannot build a kernel using /usr/sbin/config. The standard output of the command is shown below

(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 491: error 1504:
A zero or negative array size is illegal. config: make did an exit
the command exited with exitcode -71
I hear and I forget. I see and I remember. I do and I understand
10 REPLIES 10
Dietmar Konermann
Honored Contributor

Re: Unable to regen kernel on HP-UX 11.11

# head -491 /usr/conf/space.h.d/core-hpux.h | tail -1
struct pty_s str_pty[NSTRPTY]; /* Stream PTY's data structure pool */

Is nstrpty defined in your /stand/system file? Looks like leaving it empty causes this symptom.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Mr. John Kerr
Occasional Advisor

Re: Unable to regen kernel on HP-UX 11.11

Hi,

NSTRPTY is in /stand/system and is set to 60.
I hear and I forget. I see and I remember. I do and I understand
Dietmar Konermann
Honored Contributor

Re: Unable to regen kernel on HP-UX 11.11

Please gzip your /stand/build/conf.c and attach it to this thread. I will have a look.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Dietmar Konermann
Honored Contributor

Re: Unable to regen kernel on HP-UX 11.11

BTW, I hope "nstrpty" is defined in your /stand/system... *not* "NSTRPTY".
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Mr. John Kerr
Occasional Advisor

Re: Unable to regen kernel on HP-UX 11.11

Hi,

I have attached a copy of /stand/build/conf.c

regards
I hear and I forget. I see and I remember. I do and I understand
Dietmar Konermann
Honored Contributor

Re: Unable to regen kernel on HP-UX 11.11

John,

your conf.c looks quite normal. Comppiles fine here. Could you please check if you find "#define NSTRPTY 60" in you /stand/build/tune.h.

Do you get any warning when you call mk_kernel?

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Mr. John Kerr
Occasional Advisor

Re: Unable to regen kernel on HP-UX 11.11

Hi,

In /stand/build/tune.h the entyry is

#define NSTRPTY 0

regards
I hear and I forget. I see and I remember. I do and I understand
Dietmar Konermann
Honored Contributor

Re: Unable to regen kernel on HP-UX 11.11

Hm, that is typically the case if nstrpty is missing in /stand/system. Weird.

I would suggest the following:

1) Double-Check /stand/system, e.g. undesired line feeds or unprintable characters. The command vis(1) may help here.

2) Remove the current build environment to get it re-created from scratch.
# rm -r /stand/build

3) Retry to build the kernel
# mk_kernel

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Mr. John Kerr
Occasional Advisor

Re: Unable to regen kernel on HP-UX 11.11

Hi,

I have managed to run mk_kernel ok, i can now generate the kernel, thanks for your help.
I hear and I forget. I see and I remember. I do and I understand
Monica_17
Advisor

Re: Unable to regen kernel on HP-UX 11.11

Hi John,
How did you got this working, Did you follow the procedure told by Deitmar?

Let me know as I am facing same problem.
Thanks,
Monica