Closed Bug 341111 Opened 18 years ago Closed 18 years ago

NSS 3.11.1 libnssckbi.so built with Forte 6 update 2 doesn't have version strings.

Categories

(NSS :: Libraries, defect)

3.11.1
Sun
Solaris
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
3.11.2

People

(Reporter: wtc, Unassigned)

Details

Attachments

(1 file)

I found that our NSS_3_11_1_RTM libnssckbi.so built with
Forte 6 update 2 on Solaris 9 SPARC (32-bit and 64-bit,
debug and optimized) doesn't have the 'what' and 'ident'
version strings.

Christophe, does your libnssckbi.so have the same problem?
Please try these commands:

  what libnssckbi.so | grep NSS
  ident libnssckbi.so | grep NSS
I just built NSS_3_11_1_RTM on Solaris 9 SPARC with
Sun Studio 11.  libnssckbi.so in debug builds (32
and 64 bits) has the version string, but libnssckbi.so
in optimized builds (32 and 64 bits) doesn't have the
version string.
We build on Sun Studio 11.

OPT/32:
$ what libnssckbi.so | grep NSS
$ ident libnssckbi.so | grep NSS
ident warning: no id keywords in libnssckbi.so

DBG/32:
$ what libnssckbi.so | grep NSS
$ ident libnssckbi.so | grep NSS

OPT/64:
$ what libnssckbi.so | grep NSS
$ ident libnssckbi.so | grep NSS
ident warning: no id keywords in libnssckbi.so

DBG/64:
$ what libnssckbi.so | grep NSS
$ ident libnssckbi.so | grep NSS
(In reply to comment #2)
> We build on Sun Studio 11.

So, according to your output, we get a warning on optimized builds,
and NO OUTPUT AT ALL on debug builds?  
The expression "not ready for prime time" comes to mind.
Attached patch Proposed patchSplinter Review
We need to add a dummy reference to the __nss_builtins_rcsid
and __nss_builtins_sccsid strings.  Otherwise, the compiler
may optimize away these two version strings.  Please see
lib/ssl/sslcon.c and lib/ssl/sslver.c for an example of this
dummy reference.  (Search for "rcsid" in those two files.)
Attachment #225290 - Flags: superreview?(nelson)
Attachment #225290 - Flags: review?(christophe.ravel.bugs)
Nelson, many NSS source files have RCS id strings but they
are ifdef'd with the DEBUG macro.  This is why the RCS 'ident'
command only warns about the lack of RCS id keywords in our
optimized builds.
Comment on attachment 225290 [details] [diff] [review]
Proposed patch

I have to pass the review to somebody else (my knowledge in C is too far away now).
Alexei, do you want to take the review ?
Attachment #225290 - Flags: review?(christophe.ravel.bugs) → review?(alexei.volkov)
Comment on attachment 225290 [details] [diff] [review]
Proposed patch

looks just like the way we do it in other shared libs.
r=nelson
Attachment #225290 - Flags: superreview?(nelson) → superreview+
I checked in the proposed patch on the NSS trunk (3.12)
and NSS_3_11_BRANCH (3.11.2).
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.11.2
Comment on attachment 225290 [details] [diff] [review]
Proposed patch

I didn't see this request until recently because review request was sent to alexei.volkov@sun.com account. The account is now deleted by bugzilla admin.
Attachment #225290 - Flags: review?(alexei.volkov.bugs) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: