1753701 Members
5020 Online
108799 Solutions
New Discussion юеВ

Re: hp-ux strip command

 
WW415503
New Member

hp-ux strip command

Hello,

I'm getting the below error while striping the archived version of certiom libraries.

Running /usr/bin/strip -r libcrvs_pic.a
Ignoring options "-r" for files: libcrvs_pic.a

strip: libcrvs_pic.a: relocation entries; cannot strip
ERROR: can't run /usr/bin/strip -r libcrvs_pic.a - error 256
Build failed, exit code 1

Please suggest!

Thanks in Advance.
Regards,
Usha
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: hp-ux strip command

You can NOT strip archive libs. You can only strip objects (with -l) or load modules.
What are you really trying to do?

WW415503
New Member

Re: hp-ux strip command

Hi Dennis,

Thanks very much for the mail.
Nice to see you!

Im building the certiom libraries on hp-ux IA64 platform.

I was able to build and strip the libraries on Sun sparc using the sun C compiler and gstrip (/v/toolchain/SunOS-5.9-sparc/binutils-2.16.1/bin/gstrip).

Im trying to the same stuff on HP IA64.I was able to build using hp c compiler but failed to strip the libs using hp-ux strip.
>> Should i be using gstrip here also ?
>> hp-ux strip command cannot strip archive libs ?

Thanks,
Usha


Dennis Handly
Acclaimed Contributor

Re: hp-ux strip command

>I was able to build using HP C compiler but failed to strip the libs using strip.

As I said, you should use "strip -l" on the objects.

>Should I be using gstrip here also?
>strip command cannot strip archive libs?

Why? What are you trying to strip?
As I said, strip(1) only works on objects and load modules.

Dennis Handly
Acclaimed Contributor

Re: hp-ux strip command

It appears you can use "strip -l" on archives on Integrity:
strip: Warning - symbol directory deleted from archive libstd_v2.a
execute `ar ts libstd_v2.a` to restore symbol directory.

What does "strip -V" show? I'm using B.12.46.