System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Kernel Rebuild fails wit exitcode -71

SOLVED
Go to solution
catastro
Super Advisor

Kernel Rebuild fails wit exitcode -71

Hi there. I am trying to make some changes on my kernel parameters and I end up with the following error:

Cannot build a kernel using /usr/sbin/config. The standard output of the command is shown below: /usr/sbin/config: Syntax error at line 1 : `(' is not expected. The command exitted with exitcode -71.

I attach the sam.log file when I tried to do this and as I show in the bdf output I have enough space on my lvols.
Also I already executed the swinv and I am planning to install the patches the inventory said this evening, but I don´t know if they will work.
I already installed the patch PHCO_36562 and did not say anything bad about the installation or postinstallation (I guess because it didn't need to rebuild the kernel).
I have been looking at the posts that have kernel rebuild errors but didn't find any clue on why is this happening (maybe I'm getting blind by now).
Any help would be great and thanksfull.

# uname -a
HP-UX baleares B.11.11 U 9000/800 1107474671 unlimited-user license
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 167680 37120 82% /
/dev/vg00/lvol1 298928 40456 228576 15% /stand
/dev/vg00/lvol8 4710400 3276096 1423312 70% /var
/dev/vg00/lvol9 204800 2684 189597 1% /var/spool
/dev/vg00/mail 2048000 268636 1668187 14% /var/mail
/dev/vg00/lvol7 1867776 1353216 510576 73% /usr
/dev/vg00/lvol4 204800 11832 191488 6% /tmp
/dev/vg00/ora817 2605056 2123226 452970 82% /ora8
/dev/vg00/lvol6 2342912 1965720 374272 84% /opt
/dev/vg00/lvol5 24576 2424 21984 10% /home

11 REPLIES
catastro
Super Advisor

Re: Kernel Rebuild fails wit exitcode -71

I attach as well the kmtune output
Dennis Handly
Acclaimed Contributor
Solution

Re: Kernel Rebuild fails wit exitcode -71

:^A/usr/sbin/config: Syntax error at line 1 : `(' is not expected.^

Typically this means someone tried to use the shell on a binary file:
sh /usr/bin/pwd

Is /usr/sbin/config suppose to be a binary?
catastro
Super Advisor

Re: Kernel Rebuild fails wit exitcode -71

Hi Dennis. I get this:

# sh /usr/bin/pwd
sh: /usr/bin/pwd: Execute permission denied.
# ll /usr/bin/pwd
-r-xr-xr-x 1 bin bin 12288 Nov 14 2000 /usr/bin/pwd
# ls /usr/sbin/config
/usr/sbin/config
# ll /usr/sbin/config
-r-xr-xr-x 1 bin bin 7610 Jan 13 2006 /usr/sbin/config

What do you mean with "Typically this means someone tried to use the shell on a binary file"?
catastro
Super Advisor

Re: Kernel Rebuild fails wit exitcode -71

I get with the check_patches application the report I attach. I tried to configure woth swconfig these patches but they are all skipped.
I am not sure if this has to be with all this thing is happening here.

# /usr/contrib/bin/check_patches
Obtaining information on installed patches
Checking installed version of /usr/sbin/swconfig
Checking for invalid patches
Checking object module checksums for active patch fileset 813 of 813
Checking patch filesets for active patch 415 of 415
Checking state for patch fileset 1443 of 1443
Checking patch_state for patch fileset 1443 of 1443
Running swverify on all patch filesets, this may take several minutes
RESULT: Problems found, review /tmp/check_patches.report for details.
Dennis Handly
Acclaimed Contributor

Re: Kernel Rebuild fails wit exitcode -71

># sh /usr/bin/pwd
sh: /usr/bin/pwd: Execute permission denied.

Hmm, maybe it only happens with ksh or it depends on the file.

>-r-xr-xr-x 7610 Jan 13 2006 /usr/sbin/config

Hmm, this is too small to be a binary.

>What do you mean with "Typically this means someone tried to use the shell on a binary file"?

Try: ksh /usr/bin/ksh

>I tried to configure with swconfig these patches but they are all skipped.

It probably isn't important.
Did you only do the ones at the end?
swconfig PHKL_28512 PHKL_31905 PHKL_32126 PHKL_32927 \
PHKL_33844 PHKL_34153 PHKL_35037 PHKL_35421 PHNE_30103

smatador
Honored Contributor

Re: Kernel Rebuild fails wit exitcode -71

Hi,

Check if config is a binary with
file /usr/sbin/config.
catastro
Super Advisor

Re: Kernel Rebuild fails wit exitcode -71

Hi Dennis. With respect to the patches, I already tried with all of them, not only the last ones.

About the /usr/sbin/config file, in another 11.11 system, I have a bigget file than this one.

On this system (it fails to rebuild the kernel)
# ll /usr/sbin/config
-r-xr-xr-x 1 bin bin 7610 Jan 13 2006 /usr/sbin/config

On my other one (works perfectly)
desar:/root# ll /usr/sbin/config
-r-xr-xr-x 1 bin bin 98304 Nov 14 2000 /usr/sbin/config

With the ksh matter, I get the systax error that sam tells me:

# ksh /usr/bin/ksh
/usr/bin/ksh[156]: ^Y@#: not found
/usr/bin/ksh[156]: syntax error at line 1 : `(' unexpected
catastro
Super Advisor

Re: Kernel Rebuild fails wit exitcode -71

Hi smatador. Another difference with my working system:

On my working system I have this:
desar:/root# file /usr/sbin/config
/usr/sbin/config: PA-RISC1.1 shared executable dynamically linked

And on my system is not working this:
# file /usr/sbin/config
/usr/sbin/config: commands text
smatador
Honored Contributor

Re: Kernel Rebuild fails wit exitcode -71

Hi
greet difference, corruption of the config file
On my working system I have this:
desar:/root# file /usr/sbin/config
/usr/sbin/config: PA-RISC1.1 shared executable dynamically linked

And on my system is not working this:
# file /usr/sbin/config
/usr/sbin/config: commands text

in fact you config file is modify
cp /usr/sbin/config /usr/sbin/config.old
to check after that what is it with
vi /usr/sbin/config.old
and for the moment
copy the desar /usr/sbin/config file on your system.

try after the check_patch
catastro
Super Advisor

Re: Kernel Rebuild fails wit exitcode -71

Thanks for your help to both of us.
At the end was the fact that smatador was pointing, that the /usr/sbin/config was corrupted.
I got it form another server and everything worked out just fine.
I was able to modify the kernel parameters and to update the system patches as well.
Thanks a lot to both of them...
Dennis Handly
Acclaimed Contributor

Re: Kernel Rebuild fails wit exitcode -71

>ME: maybe it only happens with ksh or it depends on the file.

Ah, it depends on the shell and architecture:
$ ksh /usr/bin/pwd
/usr/bin/pwd: syntax error at line 1 : `(' unexpected
$ sh /usr/bin/pwd
sh: /usr/bin/pwd: Execute permission denied.
$ csh /usr/bin/pwd
à ,X: Event not found.
$ csh /usr/bin/pwd
Too many ('s.