Closed Bug 124493 Opened 23 years ago Closed 23 years ago

Purify fails to instrument libnspr

Categories

(SeaMonkey :: Build Config, defect, P3)

Sun
Solaris
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.9

People

(Reporter: bryner, Assigned: netscape)

Details

Attachments

(1 file)

Not sure if this is a bug in purify, or what, but on attempting to run "gmake
pure" in xpfe/bootstrap, it bails out with this error:

Undefined                       first referenced
 symbol                             in file
sigtimedwait                       
/builds/bryner/mozilla/obj-purify/dist/bin/libnspr4.so_pure_p3_c0_106282307_58_32

... and several other symbols.  This can be fixed by linking with -lrt.  We may
want to do this only for the pure: target.

Version info:
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-04 2001/12/13
purify: Version 2002.05.00 Proto 0010 010628 Solaris 2
We already link against -lrt on Solaris >= 5.7.  Is Purify not picking up the
shared library dependency properly?  Would the proper fix be to start including
-lrt in the `nspr-config --libs` output for Solaris?
Right, libnspr4 already links against -lrt.  But for some reason, for purify to
instrument mozilla-bin, we need to also link that against -lrt.
I decided to fix this one at the source as we'll probably need this fix for
running purify on binaries other than mozilla-bin (like TestGtKEmbed & viewer).
 Values set in nsprpub/configure.in's OS_LIBS should show up in `nspr-config
--libs`.
Priority: -- → P3
Target Milestone: --- → mozilla0.9.9
Brian,

Could you submit a Purify bug report to Rational Software
or call their technical support about this problem?
Pavlov should do this, he's the one with the Solaris system.
Comment on attachment 70250 [details] [diff] [review]
Add -lrt or -lposix4 to nspr's OS_LIBS as necessary

r=bryner
Attachment #70250 - Flags: review+
a=asa (on behalf of drivers) for checkin to 0.9.9
Keywords: mozilla0.9.9+
Patch has been checked into the NSPR trunk and the NSPRPUB_PRE_4_2_CLIENT_BRANCH.

Checking in nsprpub/configure;
/cvsroot/mozilla/nsprpub/configure,v  <--  configure
new revision: 1.97; previous revision: 1.96
done
Checking in nsprpub/configure.in;
/cvsroot/mozilla/nsprpub/configure.in,v  <--  configure.in
new revision: 1.102; previous revision: 1.101
done

Checking in nsprpub/configure;
/cvsroot/mozilla/nsprpub/configure,v  <--  configure
new revision: 1.78.2.18; previous revision: 1.78.2.17
done
Checking in nsprpub/configure.in;
/cvsroot/mozilla/nsprpub/configure.in,v  <--  configure.in
new revision: 1.83.2.18; previous revision: 1.83.2.17
done
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: