Operating System - HP-UX
1755624 Members
3328 Online
108836 Solutions
New Discussion юеВ

Getting error while building a depot file on HP-UX IA64 11.31

 
Praving5
Advisor

Getting error while building a depot file on HP-UX IA64 11.31

Hi All,
I wanted to make depot file for one of my software releases. I am getting the below error:

# make hpux-ia64
(cd lib; make -f Makefile.ia64)
Archiving libpwplus.a ...
ar cru libpwplus.a cfckpw.o cfgrules.o getrpw.o hashpw.o load.o log.o test.o testfnc.o util.o
ar: libpwplus.a not in archive format
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.


Any idea on what this can be?

Thanks in advance and with regards,
Pravin
21 REPLIES 21
Dennis Handly
Acclaimed Contributor

Re: Getting error while building an archive lib on HP-UX IA64 11.31

(I see no depots here, just an archive lib.)

>ar: libpwplus.a not in archive format

You need to remove this file and start fresh.

Praving5
Advisor

Re: Getting error while building a depot file on HP-UX IA64 11.31

Hi Denis,

Thanks for the reply.
You mean i delete libpwplus.a file and put it back?

Dennis Handly
Acclaimed Contributor

Re: Getting error while building an archive lib on HP-UX IA64 11.31

>You mean I delete libpwplus.a file

Yes, remove it and then make.

Dennis Handly
Acclaimed Contributor

Re: Getting error while building an archive lib on HP-UX IA64 11.31

In fact your archive lib make rule should have that rm there:
libpwplus.a: cfckpw.o ...
         rm -f $@
         ar cru $@ cfckpw.o ...

Praving5
Advisor

Re: Getting error while building a depot file on HP-UX IA64 11.31

Thanks Dennis.

make hpux-ia64 works now :)

But after that when i get to do

> make package.HPUXB1122

it throws below error:

* Software selections:
*


* Beginning Selection Phase.
* Reading the Product Specification File (PSF)
"swpackage_ia64.psf".
", at line 21.lue defined for the keyword "
", at line 22.lue defined for the keyword "vendor
ERROR: Incomplete definition for the Product Specification File (PSF)
"swpackage_ia64.psf", beginning at line 21. The following
attributes are not defined:
products the products contained in the PSF
The attribute(s) must be defined before the parsing can
continue.

======= 11/12/08 17:59:07 EST END swpackage SESSION

*** Error exit code 1

Stop.


Any idea what can this be....
Praving5
Advisor

Re: Getting error while building a depot file on HP-UX IA64 11.31

Oh.. I just saw.. that had ^M characters.. Removed it.. working i suppose.. yet to test...
Praving5
Advisor

Re: Getting error while building a depot file on HP-UX IA64 11.31

Something new now...

The depot file is made successfully. But when I try to install it, it gives below:

# swinstall -s /var/pwplus-4.0.hpux-ia64.depot PWplus

======= 11/12/08 18:19:07 EST BEGIN swinstall SESSION
(non-interactive) (jobid=rx26-154-0079)

* Session started for user "root@rx26-154".

* Beginning Selection
* Target connection succeeded for "rx26-154:/".
ERROR: Could not apply the software selection "PWplus" because there
are no product variations that are compatible with the
destination host(s).
* Software selection failed for
"rx26-154:/var/pwplus-4.0.hpux-ia64.depot".
ERROR: No software has been selected.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.
Praving5
Advisor

Re: Getting error while building a depot file on HP-UX IA64 11.31

Can this be because I made this depot file for 11.23 I suppose and trying to install it on 11.31.

But, as long as it is IA 64 this should work?
Dennis Handly
Acclaimed Contributor

Re: Getting error while building a depot file on HP-UX IA64 11.31

>Can this be because I made this depot file for 11.23 I suppose and trying to install it on 11.31?

Very possibly.

>as long as it is IPF this should work?

If you are doing swpackage, you should package it so it works on 11.23 and 11.31.

What does this show for your depot?
swlist -l fileset -a software_spec -a architecture -a machine_type \
-a os_release -s /var/pwplus-4.0.hpux-ia64.depot