1825269 Members
6283 Online
109679 Solutions
New Discussion юеВ

Re: lib version

 
Simone Teles da Hora_5
Occasional Advisor

lib version

Hi,

How find out the system operation version of my lib and object (.a and .o) belongs?
there is a command or same like that?

[]┬┤s

STH
6 REPLIES 6
Vibhor Kumar Agarwal
Esteemed Contributor

Re: lib version

Try 2 commands

file and what.
Vibhor Kumar Agarwal
Simone Teles da Hora_5
Occasional Advisor

Re: lib version

doesn├В┬┤t work!!

file show me just version of PA-RISC, and what show me nothing !!

Vibhor Kumar Agarwal
Esteemed Contributor

Re: lib version

Yes "file" shows that only.

Then I hope that lib doesn't have the version tag associated with it.

Becasue if it had, then it would be displayed by the "what" command.

There might be any other option not in my knowledge
Vibhor Kumar Agarwal
Pradeep_29
Frequent Advisor

Re: lib version

"what" works for lib (.a) but not for object (.o). I believe object file does not contain version information.

What exactly you are looking for?
Simone Teles da Hora_5
Occasional Advisor

Re: lib version

I├В┬┤m migrating all of my system to 11i. And my developers can compiler .a or/and .o in 11.00.

H.Merijn Brand (procura
Honored Contributor

Re: lib version

'what' should work as well for .o (objects) as for .a (archives/libraries) as for .sl (shared libraries)

what just scans the binary for prefined patters, as used by the SCCS source code control system. Like tags.

Other systems that leave tags are cvs, svk, rcs, ...

If 'what' doesn't give you version info, you can see if your system has 'ident', which tries to grab other known version tags

If you do not have ident, it's easy to write that in perl:

--8<---[code]
#!/usr/bin/perl -n044

# $Header: perl version of ident (RCS) $
# $Date: 13 Oct 1999 $
# $Revision: v 1.0 $
# $Author: H.Merijn Brand $
# $Id: H/HM/HMBRAND $
# $State: Stable $

m/^( Author
| Date
| Header
| Id
| Locker
| Log
| RCSfile
| Revision
| Source
| State
):/x and print " $/$_\n";
[/code]-->8---

If all these fail, you can do

# strings file | less

(replace 'less' with your favourite pager)

Enjoy, Have FUN! H.merijn
Enjoy, Have FUN! H.Merijn