Operating System - HP-UX
1753394 Members
7120 Online
108792 Solutions
New Discussion

Having trouble with archive libraries on HP-UX Machine

 
Hemalatha G
New Member

Having trouble with archive libraries on HP-UX Machine

Hi,
This query is with respect to the issue raised by Shiv. Please check below given link for more details.

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1458561

As per Dennis suggestion, I have tried to repair archive using below command
usr/ccs/bin/ar -rs libOcpUtil.a,

But still I’m getting same below error while compiling executable:

ld: (Warning) Cannot load library symnbol table in /tfsw/ocp/src/baseline/util/libOcpUtil.a, it might be missing or corrupted. Skipping library /tfsw/ocp/src/
baseline/util/libOcpUtil.a.

Please suggest what else can be done to compile executable?
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Having trouble with archive libraries on HP-UX Machine

Hmm, I'm not able to create a corrupt archive lib so I can test -rs.

You can always extract the objects and recreate the archive:
mkdir SUB
cd SUB
/usr/ccs/bin/ar -x ../libX.a
/usr/ccs/bin/ar -cr ../libY.a *.o
cd ..
rm -rf SUB