How to retrieve aCC compiler version from dynamic library on HP-UX 11.00 ? (771 Views)
Reply
Advisor
billard
Posts: 33
Registered: ‎01-30-2002
Message 1 of 7 (771 Views)

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
Honored Contributor
Robert-Jan Goossens
Posts: 7,384
Registered: ‎04-04-2000
Message 2 of 7 (771 Views)

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
Honored Contributor
harry d brown jr
Posts: 8,418
Registered: ‎12-12-2000
Message 3 of 7 (771 Views)

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
Advisor
billard
Posts: 33
Registered: ‎01-30-2002
Message 4 of 7 (771 Views)

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
Esteemed Contributor
Gregory Fruth
Posts: 356
Registered: ‎05-14-1996
Message 5 of 7 (771 Views)

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.

Trusted Contributor
B. Hulst
Posts: 255
Registered: ‎12-04-2001
Message 6 of 7 (771 Views)

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
Acclaimed Contributor
Dennis Handly
Posts: 25,435
Registered: ‎03-06-2006
Message 7 of 7 (767 Views)

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

[ Edited ]

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 ...

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.