mcs equivalent in HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX mcs equivalent in HP-UX
# 1  
Old 04-20-2005
mcs equivalent in HP-UX

Hi,

I need to add some comments in the generated executables ( exes and .sl ).

I used to use mcs command in solaris.
What is the equivalent in HP.
On googling and searching the HP site, it gave me to a link of STK for HP from True64, which isn't working.

Is there any substitute or anything that will solve my purpose.

Please help.
# 2  
Old 04-20-2005
I'm disappointed with you, vibhor_agarwali. You've been here long enough to be aware of our rules. Please make sure that you have read our rules. And note:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.

I have closed the duplicate thread.
# 3  
Old 04-20-2005
Thanks,

But when you have your head under the hammer, nothing seems to be going right.
I need it urgently, thats why i tried all the things i could do.
# 4  
Old 04-20-2005
In 32 bit mode, HP-UX uses SOM. In 64 bit mode, HP-UX uses ELF. Tools to manipulate a ELF comment aren't going to work in 32 bit mode. Could that be the problem?

Edit: For reference...
Solaris mcs man page
Solaris STK mcs page
Tru64 STK mcs page

Last edited by Perderabo; 04-20-2005 at 09:21 AM.. Reason: Add links
# 5  
Old 04-20-2005
Well,

I already know the first and the third links.
Whats "Tru64 UNIX Migration Environment for HP-UX"?
I downloaded the STK from there, but it didn't run.
Error like "no supported tool for your environment" popped up

The elf command i think provides functions to manipulate the library during coding. ( as a matter of coincidence, i was just looking into it ).
If i am wrong here, please guide.

What i actually want to do is:
after the full development of executables, i want to add a release tag before delivering it to the clients, so that later on i can track the versions there.
I am not willing to touch the code for this.

Can i do this without touching the code?
# 6  
Old 04-28-2005
Okay so finally getting the feeling that there is nothing in HP like mcs.

But still I have to try and finally came upto something after so many days.
Some help needed for this.

ld has some options which may be useful for me:
+h file_name
It says it gives an internal name to the generated shared lib. Now what is this internal name?

It also states something about mapfile. I unable to figure out what is the use of mapfile.

I have a 2 step compilation process
First:
aCC -c flags ( produces .o )
Second:
aCC objs flags -o file

Now how can i add my +h option here.
I am passing flags to the linker using "flags" -> -Wl,+s,-a,default
Here i am trying to pass +h name but it gives me error.
I also tried -c file ( in which i had given the +h), it doesn't work either.

Please help
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need perl equivalent

Dear All, Good day, can any of you help me in the following problem: I need to find the perl equivalent for the following commandline grep characters |awk '{print \$2}'Expecting your reply and thanks in advance. Warm regards Fredrick. (4 Replies)
Discussion started by: Fredrick
4 Replies

2. HP-UX

pwdx equivalent on HP

In sun solaris, pwdx will give the print working directory. Suppose I have 5 databases running on different oracle versions. If I want to know what database is running on what oracle version, I just give pwdx <process id>. It will show the oracle home details. Could you give me the... (10 Replies)
Discussion started by: oracleuser
10 Replies
Login or Register to Ask a Question