Closed Bug 1405268 Opened 7 years ago Closed 7 years ago

shlibsign fails on Solaris due missing htole64 symbol

Categories

(NSS :: Libraries, defect, P3)

3.33
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1420060

People

(Reporter: petr.sumbera, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170921064520

Steps to reproduce:

 0:01.46 /usr/bin/gmake -C . -j2 -s -w install
 0:01.48 gmake: Entering directory '/scratch/firefox/obj-x86_64-pc-solaris2.11'
 0:01.62 gmake[1]: Entering directory '/scratch/firefox/obj-x86_64-pc-solaris2.11/browser/installer'
 0:24.75 Executing /scratch/firefox/obj-x86_64-pc-solaris2.11/dist/bin/shlibsign 	
 0:24.79 C_Initialize failed: 0x00000030, CKR_DEVICE_ERROR
 0:24.79 NSPR error code: -5977: Failure to load dynamic library
 0:24.79 Initiailzing softoken failed: 0x00000030, CKR_DEVICE_ERROR
 0:24.79 NSPR error code: -5977: Failure to load dynamic library
 0:24.79 moduleSpec configdir='' certPrefix='' keyPrefix='' secmod='' flags=noCertDB, noModDB

It turned out that dlopen() fails and dlerrror() returns:
ld.so.1: shlibsign: relocation error: file /scratch/firefox/obj-x86_64-pc-solaris2.11/security/nss/lib/ssl/ssl_ssl3/libfreebl3.so: symbol htole64: referenced symbol not found

The issue is that htole64 is not defined on Solaris and security/nss/lib/freebl/verified/kremlib.h needs to define it for Solaris.
Attached patch Bug1405268.patchSplinter Review
Attachment #8914707 - Flags: review?(franziskuskiefer)
Assignee: nobody → nobody
Status: UNCONFIRMED → NEW
Component: Untriaged → Libraries
Ever confirmed: true
Priority: -- → P3
Product: Firefox → NSS
Version: Trunk → 3.33
Comment on attachment 8914707 [details] [diff] [review]
Bug1405268.patch

Review of attachment 8914707 [details] [diff] [review]:
-----------------------------------------------------------------

This file is auto-generated and shouldn't be modified manually. I take this upstream in [1].

[1] https://github.com/FStarLang/kremlin/pull/61
Attachment #8914707 - Flags: review?(franziskuskiefer)
This should be fixed by https://bugzilla.mozilla.org/show_bug.cgi?id=1419173
Can you please confirm ? Thanks
Flags: needinfo?(petr.sumbera)
Actually I just realized that there was an issue in my fix. I'm looking into it (bug 1419009).
Flags: needinfo?(petr.sumbera)
The issue was that I used variants with 'IN' like: LE_IN64. These are expecting pointer not the value. They are working on unaligned memory (e.g. network data stream). Instead I should use just LE_64.
Petr, can you confirm that his is fixed? Note that it didn't land in Firefox yet but only in NSS.
Flags: needinfo?(petr.sumbera)
I can confirm it's now fixed (it's now even in FF sources).
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(petr.sumbera)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: