Operating System - HP-UX
1748205 Members
4560 Online
108759 Solutions
New Discussion юеВ

Re: How to retrieve aCC compiler version from dynamic library on HP-UX 11.00 ?

 
billard
Advisor

How to retrieve aCC compiler version from dynamic library on HP-UX 11.00 ?

Hello,

I would like to retrieve the version for the aCC compiler used to build dynamic library.

Indeed, I need to know if aCC version is 03.35 or higher because those versions include PHSS_26952 patch correcting slow memory leak in list push_back and pop_front methods.

Thanks in advance for your help.

Best regards.

Didier
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: How to retrieve aCC compiler version from dynamic library on HP-UX 11.00 ?

Hi Didier,

Try the what command on the library

# what /usr/lib/....

Regards,
Robert-Jan
harry d brown jr
Honored Contributor

Re: How to retrieve aCC compiler version from dynamic library on HP-UX 11.00 ?

swlist -l product B3913DB

live free or die
harry d brown jr
Live Free or Die
billard
Advisor

Re: How to retrieve aCC compiler version from dynamic library on HP-UX 11.00 ?

Hello every body,

First of all, thank you for your prompt replies.

Nevertheless, this does not exactly answer to my question:

the library I want to examine is one of our products thus when I use "what" command, the result does not indicate compiler version.

Regarding B3913DB HP product, this includes the compiler which is in fact aC++ C.03.33 installes as /opt/aCC/bin/aCC but using what command on this product, I find this:

/opt/aCC/bin/aCC:
$Revision: 92453-07 linker linker crt0.o B.11.30 020412 $
HP aC++ B3910B A.03.35
HP aC++ B3910B A.03.33 Language Support Library

This means that a patch has been installed afterwards on B3913DB product.

Nevertheless, what I want to know is the version number for the compiler which has been used to compile our source file in order to produce our library. I'd like to know if it is effectively aC++ C.03.35 or another compiler which has been installed somewhere else on our development environment.

Any help would be greatly appreciated.

Best regards.

Didier
Gregory Fruth
Esteemed Contributor

Re: How to retrieve aCC compiler version from dynamic library on HP-UX 11.00 ?

I don't believe the compiler info is encoded
into compiled objects; therefore libraries
and executables don't contain it either.
I think you'll have to look at the swinstall
log of the build machine to see if the
patch was installed before or after your
library was built.

B. Hulst
Trusted Contributor

Re: How to retrieve aCC compiler version from dynamic library on HP-UX 11.00 ?

Hi,

You can also try one of these:

strings | grep ".h"
strings | grep ".o"
strings | grep -i "version"
strings | grep -i "rev"

Regards,
Bob
Dennis Handly
Acclaimed Contributor

Re: How to retrieve aC++ compiler version from shared library on HP-UX 11.00?

The version and compiler options are put into each object file.

You can get a nice summary with footprints(1).

 

For older systems, SOM: odump -comp object-or-load-module ...

For older systems, ELF: elfdump -dc object-or-load-module ...