Operating System - HP-UX
1845486 Members
2940 Online
110244 Solutions
New Discussion

HP-UX 11.22 kernel compilation problem.

 
Ilia Dyoka
Occasional Contributor

HP-UX 11.22 kernel compilation problem.

Hi, All.
We have rx2600 with HP-UX 11.22. When I try rebuild kernel ( even with default kernel parameters) I get error:

# /usr/sbin/mk_kernel -o /stand/vmunix (pid: 20818)
WARNING: No such device, tunable, or cdio ehci.
Ignoring the following line.
ehci
WARNING: No such device, tunable, or cdio side_ba.
Ignoring the following line.
side_ba
WARNING: No such device, tunable, or cdio ide_ch.
Ignoring the following line.
ide_ch
Generating module: gvid_info...
(Bundled) cc: warning 922: "+Oshortdata=0" is unsupported in the bundled compiler, ignored.
Generating module: drmfgl...
(Bundled) cc: warning 922: "+Oshortdata=0" is unsupported in the bundled compiler, ignored.
Generating module: gvid_him_fgl...
(Bundled) cc: warning 922: "+Oshortdata=0" is unsupported in the bundled compiler, ignored.
Generating module: gvid_him_rad...
(Bundled) cc: warning 922: "+Oshortdata=0" is unsupported in the bundled compiler, ignored.
/usr/bin/mkdir -p .
Compiling /stand/build/conf.c...
Error 21: "/usr/conf/space.h.d/core-hpux.h", line 268 # ')' expected before ',' to close scope.
60, 0, TIF_MINVALID, 0,
^
Error 21: "/usr/conf/space.h.d/core-hpux.h", line 268 # ')' expected before ',' to close scope.
60, 0, TIF_MINVALID, 0,
^
Error 21: "/usr/conf/space.h.d/core-hpux.h", line 268 # ')' expected before ',' to close scope.
60, 0, TIF_MINVALID, 0,
^
Error 21: "/usr/conf/space.h.d/core-hpux.h", line 268 # ')' expected before ',' to close scope.
60, 0, TIF_MINVALID, 0,
^
Error 21: "/usr/conf/space.h.d/core-hpux.h", line 268 # ')' expected before ',' to close scope.
60, 0, TIF_MINVALID, 0,
^
Error 21: "/usr/conf/space.h.d/core-hpux.h", line 286 # ')' expected before ',' to close scope.
14, 0, TIF_MINVALID, 0,
^
Error 21: "/usr/conf/space.h.d/core-hpux.h", line 286 # ')' expected before ',' to close scope.
14, 0, TIF_MINVALID, 0,
^
Error 21: "/usr/conf/space.h.d/core-hpux.h", line 303 # ')' expected before ',' to close scope.
14, 0, TIF_MINVALID, 0,
^
Error 21: "/usr/conf/space.h.d/core-hpux.h", line 303 # ')' expected before ',' to close scope.
14, 0, TIF_MINVALID, 0,
^
Error 24: "/usr/conf/space.h.d/core-hpux.h", line 776 # '(' expected instead of ';'.
int ncsize = NCSIZE;
^
Error 445: "/usr/conf/space.h.d/core-hpux.h", line 776 # Cannot recover from earlier errors.
int ncsize = NCSIZE;
^^^^^^
*** Error exit code 2

Stop.
config: make did an exit(1)
exit code 0
1 REPLY 1
John Wood_4
Frequent Advisor

Re: HP-UX 11.22 kernel compilation problem.

I had the same sort of error with HP-UX 11.22:

Error 21: "/usr/conf/space.h.d/core-hpux.h", line 286 # ')' expected before ',' to close scope.
14, 0, TIF_MINVALID, 0,

when trying to tune the kernel parameters for Oracle. The problem seems due to having spaces in kernel parameter formulae. In my case my solution was to edit /stand/system and change
nfile (15*NPROC + 2048) /* Bad */
to
nfile (15*NPROC+2048) /* Good */

though I may have also edited /usr/conf/space.h.d/core-hpux.h

I did find a problem report (JAGae63410) against kmtune & kcweb that implies that they should be stripping white-space (which the JAG says SAM does for you on PA-RISC).