Operating System - HP-UX
1834757 Members
3060 Online
110070 Solutions
New Discussion

Re: conf.c in /stand/build

 
Tom Spence_1
Regular Advisor

conf.c in /stand/build

Hello,

I was going to patch 'tcppred' on HP 9000/877 with 10.20 after I downloaded the bundle from hp website.

I started running 'create_depot_hp-ux_10' then ran swinstall (it will automatically go to SAM). I submit and run for patch. It already installed the files which is fine but somehow it stopped at 'Compling conf.c'. I have no idea why. I was worried about KERNEL could mess up but lucky there is nothing wrong after I pushed the power button (off then on). It is up. But it didn't compile the file conf.c in /stand/build so should I type like this 'make conf' then what? mk_kernel command? I just want to make sure before I do anything. Thanks.
Thinking Snow!
23 REPLIES 23
eran maor
Honored Contributor

Re: conf.c in /stand/build

Hi

conf.c file contian info that the kernel needs to compile .

if you had a problem with the complile of the kernel i will advise you :

first check if you can compile your kernel in command line :

# mk_kernel -s /stand/system .

if the compile doesnt work you need to give us the error that we can check it .

also check :

swlist -l fileset -a state | grep PH
to see if there if you have patches in state of install or currpt .

please check only new patches that you install .
love computers
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

Eran,

I am glad to have you...

Ok, what I did follow you but got error, here is:

root:/ #mk_kernel -s /stand/system .
mk_kernel: Incorrect number of arguments.
Usage: mk_kernel [-v] [-o ] [-s ]
root:/ #
Thinking Snow!
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

Eran,

Whoa, what a mess after I type 'swlist -l fileset -a state | grep PH' and it came out with many WARNING and ERROR... How can I clean it up?

Tom
Thinking Snow!
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

I explained you that I was in swinstall SAM and stop at 'Compiling conf.c'. Ok, let me give you the list of files/directories, here is:

/stand:
-rw-r--r-- 1 root sys 191 Jun 10 1996 bootconf
drwxr-xr-x 2 root root 1024 Aug 31 1999 build
-rw-r--r-- 1 root root 6092 Jun 10 1996 ioconfig
-r--r--r-- 1 root sys 82 Jun 10 1996 kernrel
drwxr-xr-x 2 root root 8192 Jun 10 1996 lost+found
-rw------- 1 root root 12 Jan 28 06:11 rootconf
-rw-r--r-- 1 root sys 636 Jan 27 21:34 system
-rw-r--r-- 1 root sys 636 Jan 27 21:34 system.prev
-rwxr-xr-x 1 root sys 7515484 Aug 31 1999 vmunix
-rwxr-xr-x 1 root sys 7515484 Feb 19 1999 vmunix.prev

/stand/build:
-rw-r--r-- 1 root sys 34577 Aug 31 1999 conf.SAM.c
-rw-r--r-- 1 root sys 32476 Aug 31 1999 conf.SAM.o
-rw-r--r-- 1 root root 34577 Jan 27 21:36 conf.c
-rw-r--r-- 1 root sys 0 Jan 27 21:36 conf.o
-rw-r--r-- 1 root sys 31720 Feb 19 1999 conf.o.old
-rwxr--r-- 1 root sys 2960 Aug 31 1999 config.SAM.mk
-rwxr--r-- 1 root root 2969 Jan 27 21:36 config.mk
-rw-r--r-- 1 root root 138 Jun 10 1996 space.h
-rw-r--r-- 1 root sys 772 Feb 19 1999 system.smp

Hope it helps.

Tom
Thinking Snow!
eran maor
Honored Contributor

Re: conf.c in /stand/build

Hi Again

go to /stand

and do the command mk_kernel
see if you have a problem with building the kernel .

if you have a problem with compiling the kernel we can switch to a vmunix.prev and system.prev .

if you are telling that you have a lot of problem with the install patches that you install you can try to run after fixing the problem of the kernel the command :
swconfig \*

i thing that mybe all te patches that you install didnt do a config but for that i need to see the error that you are getting when doing swlist -l fileset

also i very hope that you have a ignite backup of the system .

somtime it is much easier to restore a bad system from a ignite backup and dont feal with the trubleshoot of the problem .
love computers
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

 
Thinking Snow!
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

You mean?

root:/stand #mk_kernel -s /stand/system .

OR

root:/stand #mk_kernel -s /stand/system (without '.')

Tom
Thinking Snow!
eran maor
Honored Contributor

Re: conf.c in /stand/build

Hi

i mean :
mk_kernel -s /stand/system

without the .

also i can see that your sd-ux database is currpt .

i will advise you to try to used this prod. to try to solve the problem , tell me if it work on not .

1. As root, go to the directory /var/adm/sw/products:
cd /var/adm/sw/products

2. Remove the INDEX file.
rm /var/adm/sw/products/INDEX

3. Create a file called void.psf in the /tmp directory:
vi /tmp/void.psf

4. Add these lines:
product
tag void
fileset
tag void

5. Create a software package for the product void:
swpackage -s /tmp/void.psf

6. Install void and generate a new INDEX file:
swinstall void

7. Test swlist

8. Remove the void product just created:
swremove void
rm void.psf
swremove -d void
love computers
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

GREAT! swlist works perfect!!! Now, one problem with mk_kernel, here is:

root:/stand #mk_kernel -s /stand/system
Compiling /stand/build/conf.c...
ar: malformed archive (at 584660)
*** Error exit code 1

Stop.
config: make did an exit(1)
root:/stand #
Thinking Snow!
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

 
Thinking Snow!
eran maor
Honored Contributor

Re: conf.c in /stand/build

Hi

can you do this :

mv /stand/vmunix /stand/vmunix.bad

mv /stand/vmunix.prev /stand/vmunix

and then try to compile the kernel with :

mk_kernel -s /stand/vmunix

and give the the result .

it seem that you dont have a problem with the patches now just with one patch that we can take care after fixing the kernel
love computers
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

mk_kernel -s /stand/vmunix

OR you mean

mk_kernel -s /stand/system



I typed:

mk_kernel -s /stand/vmunix and got million ERROR!!!

Tom
Thinking Snow!
eran maor
Honored Contributor

Re: conf.c in /stand/build

oops

i mean mk_kernel -s /stand/system

love computers
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

root:/stand #mk_kernel -s /stand/system
Compiling /stand/build/conf.c...
ar: malformed archive (at 584660)
*** Error exit code 1

Stop.
config: make did an exit(1)
root:/stand #

------------------------------------------------------------

Wow my old co-worker left his job that cause HP a little mess up! That's why I work on it.
Thinking Snow!
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

Eran,

Time for me to go home now but I will check with you tomorrow morning at 6 AM (That's my normal work hour). Hope to hear from you tomorrow all day till solve the problem with vmunix. Million thanks.

Tom
Thinking Snow!
eran maor
Honored Contributor

Re: conf.c in /stand/build

Hi Tomass

i have to say that i have never seen this error when compiling a hp-ux kernel and also i tried to find data in the itrc and google but no luck .

i can check it tomorrow at work because i m at home now ( it is now 22:13 ) .

so you can wait with the system , because your system is running but you need to take care on this problem that will not let you to compile a kernel ( and then not installing patches or problem with reboot ) .

i promiss that tomorrow i will give you an answer , also if i cant solve it .
love computers
Dietmar Konermann
Honored Contributor

Re: conf.c in /stand/build

The problem is not the compile stage of conf.c. Instead ar(1) is failing to extract objects from an archive, most likely from /usr/conf/lib/libhp-ux.a.

You may try to restore this from backup, but of course this may lead to an inconstistent state. On 10.20 most of the kernel patches go to this library, so you would actually downgrade your kernel objects.

Since you have lots of other problems, i.e. a corrupted IPD (swlist warnings), I would really consider a complete recovery from backup... this is usually faster than fixing all those problems. Maybe, you have only seen the tip of the iceberg yet.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
eran maor
Honored Contributor

Re: conf.c in /stand/build

Hi Again

as Dietmar said , it is not a conf.c problem .

i saw i doc that explain to to trubleshoot it .

check to see what is the status of the /usr/conf/lib/libhp-ux.a

do : what /usr/conf/lib/libhp-ux.a to see if you can see the Revision of the lib .

if you have a problem you need to restore it .

i also thing that the best thing to do is to restore the system from a ignite backup .

also you can thing about upgrade the 10.20 to 11.00 because 10.20 will be not supported in 4 month .

one more thing , it will be nice that you will assign point to the pepole that is replying to you , you can also assign 0-3 point is the answer didnt assist you .
love computers
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

Dietmar and Eran,

root:/ #what /usr/conf/lib/libhp-ux.a
/usr/conf/lib/libhp-ux.a:
root:/ #

Ahh, there is mess up and nothing show me of any Revision!!! I checked the other server (HP 9000/750 10.20) and type 'what libhp-ux.a' and got a lot of Revision...

Can I copy the file (libhp-ux.a) from HP 9000/750 to 9000/877?

Tom
Thinking Snow!
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

 
Thinking Snow!
eran maor
Honored Contributor

Re: conf.c in /stand/build

Hi

the issue that this lib is not update and will cause you after switching to a diff. file problem .

do you have a valid backup of the system .

ignite will be the best but also a reguler backup , because this will be the easy trubleshoot that we can do .
love computers
Tom Spence_1
Regular Advisor

Re: conf.c in /stand/build

Hi Eran and Dietmar,

I already have a good backup but too late cuz it already overwrite on the backup. We are using TSM...

I decided to look for the libhp-ux.a from hp patch. I found the patch id is PHKL_16751, will it help to solve the problem with libhp-ux.a? Let me know about this. Thanks.

Tom
Thinking Snow!
Dietmar Konermann
Honored Contributor

Re: conf.c in /stand/build

Hi, Thomas!

If you don't have a backup you could really try to get the file from PHKL_16751 as a basis.

BUT, don't expect your problems to be solved then. When you look at the "what" outputs of that archive you posted above, you will understand that lots of patches need to be re-installed to get it into a consistent state.

And to be honest, it may get complicated to do that re-installation before the IPD problem is solved.

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